Sha256: c6db9a4efb508724cb10e81e306d9cf436679cf6bda5adc3f150d9819a346599

Contents?: true

Size: 1.75 KB

Versions: 4

Compression:

Stored size: 1.75 KB

Contents

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

module Azure::ARM::Storage
  module Models
    #
    # An access key for the storage account.
    #
    class StorageAccountKey

      include MsRestAzure

      # @return [String] Name of the key.
      attr_accessor :key_name

      # @return [String] Base 64 encoded value of the key.
      attr_accessor :value

      # @return [KeyPermission] Permissions for the key. Possible values
      # include: 'READ', 'FULL'
      attr_accessor :permissions


      #
      # Mapper for StorageAccountKey class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'StorageAccountKey',
          type: {
            name: 'Composite',
            class_name: 'StorageAccountKey',
            model_properties: {
              key_name: {
                required: false,
                read_only: true,
                serialized_name: 'keyName',
                type: {
                  name: 'String'
                }
              },
              value: {
                required: false,
                read_only: true,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              },
              permissions: {
                required: false,
                read_only: true,
                serialized_name: 'permissions',
                type: {
                  name: 'Enum',
                  module: 'KeyPermission'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_storage-0.7.0 lib/generated/azure_mgmt_storage/models/storage_account_key.rb
azure_mgmt_storage-0.6.0 lib/generated/azure_mgmt_storage/models/storage_account_key.rb
azure_mgmt_storage-0.5.0 lib/generated/azure_mgmt_storage/models/storage_account_key.rb
azure_mgmt_storage-0.4.0 lib/generated/azure_mgmt_storage/models/storage_account_key.rb