Sha256: f2541904e61a98724b05eca2e152ebf656297685b83f33114bac7ef10c370f4a

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Graph::Mgmt::V1_6
  module Models
    #
    # 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.
    #
    class ResourceAccess

      include MsRestAzure

      # @return [String] The unique identifier for one of the OAuth2Permission
      # or AppRole instances that the resource application exposes.
      attr_accessor :id

      # @return [String] Specifies whether the id property references an
      # OAuth2Permission or an AppRole. Possible values are "scope" or "role".
      attr_accessor :type


      #
      # Mapper for ResourceAccess class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_graph-0.15.1 lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb
azure_mgmt_graph-0.15.0 lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb