Sha256: 2c9ca90fd15a38e7a33943d8ea15e55c6ba9cdb6fa1ca4ae13f0abb840860242

Contents?: true

Size: 1.78 KB

Versions: 14

Compression:

Stored size: 1.78 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::MediaServices::Mgmt::V2015_10_01
  module Models
    #
    # The request body for CheckNameAvailability API.
    #
    class CheckNameAvailabilityInput

      include MsRestAzure

      # @return [String] The name of the resource. A name must be globally
      # unique.
      attr_accessor :name

      # @return [String] The type of the resource - mediaservices. Default
      # value: 'mediaservices' .
      attr_accessor :type


      #
      # Mapper for CheckNameAvailabilityInput class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CheckNameAvailabilityInput',
          type: {
            name: 'Composite',
            class_name: 'CheckNameAvailabilityInput',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                constraints: {
                  MaxLength: 24,
                  MinLength: 3,
                  Pattern: '^[a-z0-9]{3,24}$'
                },
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: true,
                is_constant: true,
                serialized_name: 'type',
                default_value: 'mediaservices',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.21.1 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.21.0 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.20.1 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.20.0 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.19.1 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.19.0 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.18.1 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.18.0 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.17.2 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.17.1 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.17.0 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.16.1 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.16.0 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
azure_mgmt_media_services-0.15.2 lib/2015-10-01/generated/azure_mgmt_media_services/models/check_name_availability_input.rb