Class: Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::SqlRoleAssignmentCreateUpdateParameters
- Inherits:
-
Object
- Object
- Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::SqlRoleAssignmentCreateUpdateParameters
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb
Overview
Parameters to create and update an Azure Cosmos DB SQL Role Assignment.
Instance Attribute Summary collapse
-
#principal_id ⇒ String
in the AAD graph to which access is being granted through this Role Assignment.
-
#role_definition_id ⇒ String
Definition.
-
#scope ⇒ String
granted through this Role Assignment.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SqlRoleAssignmentCreateUpdateParameters class as Ruby Hash.
Instance Attribute Details
#principal_id ⇒ String
in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
27 28 29 |
# File 'lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb', line 27 def principal_id @principal_id end |
#role_definition_id ⇒ String
Definition.
17 18 19 |
# File 'lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb', line 17 def role_definition_id @role_definition_id end |
#scope ⇒ String
granted through this Role Assignment.
21 22 23 |
# File 'lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb', line 21 def scope @scope end |
Class Method Details
.mapper ⇒ Object
Mapper for SqlRoleAssignmentCreateUpdateParameters class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/2020-06-01-preview/generated/azure_mgmt_cosmosdb/models/sql_role_assignment_create_update_parameters.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SqlRoleAssignmentCreateUpdateParameters', type: { name: 'Composite', class_name: 'SqlRoleAssignmentCreateUpdateParameters', model_properties: { role_definition_id: { client_side_validation: true, required: false, serialized_name: 'properties.roleDefinitionId', type: { name: 'String' } }, scope: { client_side_validation: true, required: false, serialized_name: 'properties.scope', type: { name: 'String' } }, principal_id: { client_side_validation: true, required: false, serialized_name: 'properties.principalId', type: { name: 'String' } } } } } end |