# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Cosmosdb::Mgmt::V2019_12_12
  module Models
    #
    # CreateUpdateOptions are a list of key-value pairs that describe the
    # resource. Supported keys are "If-Match", "If-None-Match", "Session-Token"
    # and "Throughput"
    #
    class CreateUpdateOptions

      include MsRestAzure

      # @return [Hash{String => String}] Unmatched properties from the message
      # are deserialized this collection
      attr_accessor :additional_properties

      # @return [String] Request Units per second. For example, "throughput":
      # "10000".
      attr_accessor :throughput


      #
      # Mapper for CreateUpdateOptions class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end
