Class: Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount
- Inherits:
-
Object
- Object
- Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount
- 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
-
#endpoint ⇒ String
Endpoint of the created account.
-
#etag ⇒ String
Entity Tag.
-
#id ⇒ String
The id of the created account.
-
#kind ⇒ String
Type of cognitive service account.
-
#location ⇒ String
The location of the resource.
-
#name ⇒ String
The name of the created account.
-
#provisioning_state ⇒ ProvisioningState
account at the time the operation was called.
- #sku ⇒ Sku
-
#tags ⇒ Hash{String => String}
pairs that describe the resource.
-
#type ⇒ String
Resource type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CognitiveServicesAccount class as Ruby Hash.
Instance Attribute Details
#endpoint ⇒ String
Returns 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 |
#etag ⇒ String
Returns Entity Tag.
17 18 19 |
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 17 def etag @etag end |
#id ⇒ String
Returns 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 |
#kind ⇒ String
Returns 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 |
#location ⇒ String
Returns 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 |
#name ⇒ String
Returns 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_state ⇒ ProvisioningState
account at the time the operation was called. Possible values include: ‘Creating’, ‘ResolvingDNS’, ‘Succeeded’, ‘Failed’
34 35 36 |
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 34 def provisioning_state @provisioning_state end |
#sku ⇒ Sku
40 41 42 |
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 40 def sku @sku end |
#tags ⇒ Hash{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.
47 48 49 |
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb', line 47 def @tags end |
#type ⇒ String
Returns 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
.mapper ⇒ Object
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 |