Class: Azure::Graph::Mgmt::V1_6::Models::RequiredResourceAccess

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

Overview

Specifies the set of OAuth 2.0 permission scopes and app roles under the specified resource that an application requires access to. The specified OAuth 2.0 permission scopes may be requested by client applications (through the requiredResourceAccess collection) when calling a resource application. The requiredResourceAccess property of the Application entity is a collection of ReqiredResourceAccess.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#resource_accessArray<ResourceAccess>

and app roles that the application requires from the specified resource.

Returns:



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

def resource_access
  @resource_access
end

#resource_app_idString

application requires access to. This should be equal to the appId declared on the target resource application.

Returns:

  • (String)

    The unique identifier for the resource that the



28
29
30
# File 'lib/1.6/generated/azure_mgmt_graph/models/required_resource_access.rb', line 28

def resource_app_id
  @resource_app_id
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    required: false,
    serialized_name: 'RequiredResourceAccess',
    type: {
      name: 'Composite',
      class_name: 'RequiredResourceAccess',
      model_properties: {
        resource_access: {
          required: true,
          serialized_name: 'resourceAccess',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'ResourceAccessElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceAccess'
                }
            }
          }
        },
        resource_app_id: {
          required: false,
          serialized_name: 'resourceAppId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end