class Azure::ContainerRegistry::Mgmt::V2017_03_01::Models::RegistryCreateParameters

The parameters for creating a container registry.

Attributes

admin_user_enabled[RW]

@return [Boolean] The value that indicates whether the admin user is enabled. Default value: false .

location[RW]

@return [String] The location of the container registry. This cannot be changed after the resource is created.

sku[RW]

@return [Sku] The SKU of the container registry.

storage_account[RW]

@return [StorageAccountParameters] The parameters of a storage account for the container registry. If specified, the storage account must be in the same physical location as the container registry.

tags[RW]

@return [Hash{String => String}] The tags for the container registry.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-03-01/generated/azure_mgmt_container_registry/models/registry_create_parameters.rb, line 39
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RegistryCreateParameters',
    type: {
      name: 'Composite',
      class_name: 'RegistryCreateParameters',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        sku: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        admin_user_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.adminUserEnabled',
          default_value: false,
          type: {
            name: 'Boolean'
          }
        },
        storage_account: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.storageAccount',
          type: {
            name: 'Composite',
            class_name: 'StorageAccountParameters'
          }
        }
      }
    }
  }
end