Sha256: 56421a7288448cd4f63b4198d0eecc4a9ce5475a9000c5d22b92ded3ea054f75

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 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::ARM::Compute
  module Models
    #
    # Data used for requesting a SAS.
    #
    class GrantAccessData

      include MsRestAzure

      include MsRest::JSONable
      # @return [AccessLevel] Possible values include: 'None', 'Read'
      attr_accessor :access

      # @return [Integer] Time duration in seconds until the SAS access
      # expires.
      attr_accessor :duration_in_seconds


      #
      # Mapper for GrantAccessData class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'GrantAccessData',
          type: {
            name: 'Composite',
            class_name: 'GrantAccessData',
            model_properties: {
              access: {
                required: true,
                serialized_name: 'access',
                type: {
                  name: 'Enum',
                  module: 'AccessLevel'
                }
              },
              duration_in_seconds: {
                required: true,
                serialized_name: 'durationInSeconds',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.13.0 lib/generated/azure_mgmt_compute/models/grant_access_data.rb