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

Inherits:
Object
  • Object
show all
Includes:
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



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

def endpoint
  @endpoint
end

#etagString

Returns Entity Tag.

Returns:

  • (String)

    Entity Tag



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

def etag
  @etag
end

#idString

Returns The id of the created account.

Returns:

  • (String)

    The id of the created account



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

def id
  @id
end

#kindString

Returns Type of cognitive service account.

Returns:

  • (String)

    Type of cognitive service account.



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

def kind
  @kind
end

#locationString

Returns The location of the resource.

Returns:

  • (String)

    The location of the resource



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

def location
  @location
end

#nameString

Returns The name of the created account.

Returns:

  • (String)

    The name of the created account



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

def name
  @name
end

#provisioning_stateProvisioningState

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

Returns:



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

def provisioning_state
  @provisioning_state
end

#skuSku

Returns:



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

def sku
  @sku
end

#tagsHash{String => String}

pairs 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



47
48
49
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 47

def tags
  @tags
end

#typeString

Returns Resource type.

Returns:

  • (String)

    Resource type



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

def type
  @type
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 57

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,
          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,
          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'
          }
        },
        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,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end