Sha256: 471e0dd752c0332b90f93cc2906c0f4cd014f743a4864bef8503568a9dde891b

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

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

module Azure::ARM::MediaServices
  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()
        {
          required: false,
          serialized_name: 'CheckNameAvailabilityInput',
          type: {
            name: 'Composite',
            class_name: 'CheckNameAvailabilityInput',
            model_properties: {
              name: {
                required: true,
                serialized_name: 'name',
                constraints: {
                  MaxLength: 24,
                  MinLength: 3,
                  Pattern: '^[a-z0-9]'
                },
                type: {
                  name: 'String'
                }
              },
              type: {
                required: true,
                is_constant: true,
                serialized_name: 'type',
                default_value: 'mediaservices',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.9.0 lib/generated/azure_mgmt_media_services/models/check_name_availability_input.rb