Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::DatabaseAccountListKeysResult

Inherits:
DatabaseAccountListReadOnlyKeysResult show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb

Overview

The access keys for the given database account.

Instance Attribute Summary collapse

Attributes inherited from DatabaseAccountListReadOnlyKeysResult

#primary_readonly_master_key, #secondary_readonly_master_key

Class Method Summary collapse

Instance Attribute Details

#primary_master_keyString

Returns Base 64 encoded value of the primary read-write key.

Returns:

  • (String)

    Base 64 encoded value of the primary read-write key.



16
17
18
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb', line 16

def primary_master_key
  @primary_master_key
end

#secondary_master_keyString

Returns Base 64 encoded value of the secondary read-write key.

Returns:

  • (String)

    Base 64 encoded value of the secondary read-write key.



19
20
21
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb', line 19

def secondary_master_key
  @secondary_master_key
end

Class Method Details

.mapperObject

Mapper for DatabaseAccountListKeysResult 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DatabaseAccountListKeysResult',
    type: {
      name: 'Composite',
      class_name: 'DatabaseAccountListKeysResult',
      model_properties: {
        primary_readonly_master_key: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'primaryReadonlyMasterKey',
          type: {
            name: 'String'
          }
        },
        secondary_readonly_master_key: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'secondaryReadonlyMasterKey',
          type: {
            name: 'String'
          }
        },
        primary_master_key: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'primaryMasterKey',
          type: {
            name: 'String'
          }
        },
        secondary_master_key: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'secondaryMasterKey',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end