Class: Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount

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

Overview

Cognitive Services Account is an Azure resource representing the provisioned account, its type, location and SKU.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#endpointString

Returns Endpoint of the created account.

Returns:

  • (String)

    Endpoint of the created account.



38
39
40
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 38

def endpoint
  @endpoint
end

#etagString

Returns Entity Tag.

Returns:

  • (String)

    Entity Tag



18
19
20
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 18

def etag
  @etag
end

#idString

Returns The id of the created account.

Returns:

  • (String)

    The id of the created account



21
22
23
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 21

def id
  @id
end

#internal_idString

Returns The internal identifier.

Returns:

  • (String)

    The internal identifier.



41
42
43
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 41

def internal_id
  @internal_id
end

#kindString

Returns Type of cognitive service account.

Returns:

  • (String)

    Type of cognitive service account.



24
25
26
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 24

def kind
  @kind
end

#locationString

Returns The location of the resource.

Returns:

  • (String)

    The location of the resource



27
28
29
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 27

def location
  @location
end

#nameString

Returns The name of the created account.

Returns:

  • (String)

    The name of the created account



30
31
32
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 30

def name
  @name
end

#provisioning_stateProvisioningState

account at the time the operation was called. Possible values include: ‘Creating’, ‘ResolvingDNS’, ‘Succeeded’, ‘Failed’

Returns:



35
36
37
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 35

def provisioning_state
  @provisioning_state
end

#skuSku

Returns The SKU of Cognitive Services account.

Returns:

  • (Sku)

    The SKU of Cognitive Services account.



44
45
46
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 44

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



51
52
53
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 51

def tags
  @tags
end

#typeString

Returns Resource type.

Returns:

  • (String)

    Resource type



54
55
56
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 54

def type
  @type
end

Class Method Details

.mapperObject

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



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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 61

def self.mapper()
  {
    required: false,
    serialized_name: 'CognitiveServicesAccount',
    type: {
      name: 'Composite',
      class_name: 'CognitiveServicesAccount',
      model_properties: {
        etag: {
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        kind: {
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'Enum',
            module: 'ProvisioningState'
          }
        },
        endpoint: {
          required: false,
          serialized_name: 'properties.endpoint',
          type: {
            name: 'String'
          }
        },
        internal_id: {
          required: false,
          serialized_name: 'properties.internalId',
          type: {
            name: 'String'
          }
        },
        sku: {
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end