Class: Azure::KeyVault::V7_2_preview::Models::RoleDefinitionProperties

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

Overview

Role definition properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#assignable_scopesArray<RoleScope>

Returns Role definition assignable scopes.

Returns:

  • (Array<RoleScope>)

    Role definition assignable scopes.



29
30
31
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb', line 29

def assignable_scopes
  @assignable_scopes
end

#descriptionString

Returns The role definition description.

Returns:

  • (String)

    The role definition description.



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

def description
  @description
end

#permissionsArray<Permission>

Returns Role definition permissions.

Returns:

  • (Array<Permission>)

    Role definition permissions.



26
27
28
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb', line 26

def permissions
  @permissions
end

#role_nameString

Returns The role name.

Returns:

  • (String)

    The role name.



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

def role_name
  @role_name
end

#role_typeRoleType

‘BuiltInRole’, ‘CustomRole’

Returns:

  • (RoleType)

    The role type. Possible values include:



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

def role_type
  @role_type
end

Class Method Details

.mapperObject

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



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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/7.2-preview/generated/azure_key_vault/models/role_definition_properties.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RoleDefinitionProperties',
    type: {
      name: 'Composite',
      class_name: 'RoleDefinitionProperties',
      model_properties: {
        role_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'roleName',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        role_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        permissions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'permissions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PermissionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Permission'
                }
            }
          }
        },
        assignable_scopes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'assignableScopes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RoleScopeElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end