Class: Azure::Graph::Mgmt::V1_6::Models::ResourceAccess

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb

Overview

Specifies an OAuth 2.0 permission scope or an app role that an application requires. The resourceAccess property of the RequiredResourceAccess type is a collection of ResourceAccess.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

or AppRole instances that the resource application exposes.

Returns:

  • (String)

    The unique identifier for one of the OAuth2Permission



19
20
21
# File 'lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb', line 19

def id
  @id
end

#typeString

OAuth2Permission or an AppRole. Possible values are “scope” or “role”.

Returns:

  • (String)

    Specifies whether the id property references an



23
24
25
# File 'lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb', line 23

def type
  @type
end

Class Method Details

.mapperObject

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



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
# File 'lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb', line 30

def self.mapper()
  {
    required: false,
    serialized_name: 'ResourceAccess',
    type: {
      name: 'Composite',
      class_name: 'ResourceAccess',
      model_properties: {
        id: {
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end