Class: Azure::KeyVault::V7_2_preview::Models::RoleAssignmentPropertiesWithScope

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb

Overview

Role assignment properties with scope.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#principal_idString

Returns The principal ID.

Returns:

  • (String)

    The principal ID.



22
23
24
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb', line 22

def principal_id
  @principal_id
end

#role_definition_idString

Returns The role definition ID.

Returns:

  • (String)

    The role definition ID.



19
20
21
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb', line 19

def role_definition_id
  @role_definition_id
end

#scopeRoleScope

Returns Possible values include: ‘Global’, ‘Keys’.

Returns:

  • (RoleScope)

    Possible values include: ‘Global’, ‘Keys’



16
17
18
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb', line 16

def scope
  @scope
end

Class Method Details

.mapperObject

Mapper for RoleAssignmentPropertiesWithScope class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
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
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_assignment_properties_with_scope.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RoleAssignmentPropertiesWithScope',
    type: {
      name: 'Composite',
      class_name: 'RoleAssignmentPropertiesWithScope',
      model_properties: {
        scope: {
          client_side_validation: true,
          required: false,
          serialized_name: 'scope',
          type: {
            name: 'String'
          }
        },
        role_definition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'roleDefinitionId',
          type: {
            name: 'String'
          }
        },
        principal_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'principalId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end