Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::CreateUpdateOptions

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb

Overview

CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are “If-Match”, “If-None-Match”, “Session-Token” and “Throughput”

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#additional_propertiesHash{String => String}

are deserialized this collection

Returns:

  • (Hash{String => String})

    Unmatched properties from the message



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

def additional_properties
  @additional_properties
end

#throughputString

“10000”.

Returns:

  • (String)

    Request Units per second. For example, “throughput”:



23
24
25
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb', line 23

def throughput
  @throughput
end

Class Method Details

.mapperObject

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



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
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/create_update_options.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CreateUpdateOptions',
    type: {
      name: 'Composite',
      class_name: 'CreateUpdateOptions',
      model_properties: {
        additional_properties: {
          client_side_validation: true,
          required: false,
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        throughput: {
          client_side_validation: true,
          required: false,
          serialized_name: 'throughput',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end