Class: Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountCreateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb

Overview

The parameters to provide for the account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#kindKind

Possible values include: ‘Academic’, ‘Bing.Autosuggest’, ‘Bing.Search’, ‘Bing.Speech’, ‘Bing.SpellCheck’, ‘ComputerVision’, ‘ContentModerator’, ‘CustomSpeech’, ‘Emotion’, ‘Face’, ‘LUIS’, ‘Recommendations’, ‘SpeakerRecognition’, ‘Speech’, ‘SpeechTranslation’, ‘TextAnalytics’, ‘TextTranslation’, ‘WebLM’

Returns:

  • (Kind)

    Required. Gets or sets the Kind of the resource.



25
26
27
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 25

def kind
  @kind
end

#locationString

This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update the request will succeed.

Returns:

  • (String)

    Required. Gets or sets the location of the resource.



32
33
34
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 32

def location
  @location
end

#propertiesObject

null.

Returns:

  • Must exist in the request. Must be an empty object. Must not be



43
44
45
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 43

def properties
  @properties
end

#skuSku

Returns Required. Gets or sets the SKU of the resource.

Returns:

  • (Sku)

    Required. Gets or sets the SKU of the resource.



17
18
19
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 17

def sku
  @sku
end

#tagsHash{String => String}

that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.

Returns:

  • (Hash{String => String})

    Gets or sets a list of key value pairs



39
40
41
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 39

def tags
  @tags
end

Class Method Details

.mapperObject

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



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 50

def self.mapper()
  {
    required: false,
    serialized_name: 'CognitiveServicesAccountCreateParameters',
    type: {
      name: 'Composite',
      class_name: 'CognitiveServicesAccountCreateParameters',
      model_properties: {
        sku: {
          required: true,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        kind: {
          required: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        properties: {
          required: true,
          serialized_name: 'properties',
          type: {
            name: 'Object'
          }
        }
      }
    }
  }
end