Class: Azure::CognitiveServices::Mgmt::V2016_02_01_preview::Models::CognitiveServicesAccountCreateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-02-01-preview/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

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

Returns:

  • (Kind)

    Required. Indicates the type of cognitive service



24
25
26
# File 'lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 24

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.



31
32
33
# File 'lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 31

def location
  @location
end

#propertiesObject

Returns Must exist in the request. Must not be null.

Returns:

  • Must exist in the request. Must not be null.



41
42
43
# File 'lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 41

def properties
  @properties
end

#skuSku

Returns:



16
17
18
# File 'lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 16

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



38
39
40
# File 'lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 38

def tags
  @tags
end

Class Method Details

.mapperObject

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



48
49
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
105
106
107
108
109
# File 'lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb', line 48

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CognitiveServicesAccountCreateParameters',
    type: {
      name: 'Composite',
      class_name: 'CognitiveServicesAccountCreateParameters',
      model_properties: {
        sku: {
          client_side_validation: true,
          required: true,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        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'
                }
            }
          }
        },
        properties: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties',
          type: {
            name: 'Object'
          }
        }
      }
    }
  }
end