Class: Azure::Cosmosdb::Mgmt::V2020_06_01_preview::Models::SqlRoleAssignmentCreateUpdateParameters

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#principal_idString

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.

Returns:

  • (String)

    The unique identifier for the associated AAD principal



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_idString

Definition.

Returns:

  • (String)

    The unique identifier for the associated Role



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

#scopeString

granted through this Role Assignment.

Returns:

  • (String)

    The data plane resource path for which access is being



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

.mapperObject

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