Class: Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountKeys

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb

Overview

The access keys for the cognitive services account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#key1String

Returns Gets the value of key 1.

Returns:

  • (String)

    Gets the value of key 1.



16
17
18
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb', line 16

def key1
  @key1
end

#key2String

Returns Gets the value of key 2.

Returns:

  • (String)

    Gets the value of key 2.



19
20
21
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb', line 19

def key2
  @key2
end

Class Method Details

.mapperObject

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



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb', line 26

def self.mapper()
  {
    required: false,
    serialized_name: 'CognitiveServicesAccountKeys',
    type: {
      name: 'Composite',
      class_name: 'CognitiveServicesAccountKeys',
      model_properties: {
        key1: {
          required: false,
          serialized_name: 'key1',
          type: {
            name: 'String'
          }
        },
        key2: {
          required: false,
          serialized_name: 'key2',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end