class Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource

Describes a DocumentDB output data source.

Attributes

account_id[RW]

@return [String] The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests.

account_key[RW]

@return [String] The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests.

collection_name_pattern[RW]

@return [String] The collection name pattern for the collections to be used. The collection name format can be constructed using the optional {partition} token, where partitions start from 0. See the DocumentDB section of docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more information. Required on PUT (CreateOrReplace) requests.

database[RW]

@return [String] The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests.

document_id[RW]

@return [String] The name of the field in output events used to specify the primary key which insert or update operations are based on.

partition_key[RW]

@return [String] The name of the field in output events used to specify the key for partitioning output across collections. If 'collectionNamePattern' contains the {partition} token, this property is required to be specified.

type[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb, line 57
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.Storage/DocumentDB',
    type: {
      name: 'Composite',
      class_name: 'DocumentDbOutputDataSource',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        account_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.accountId',
          type: {
            name: 'String'
          }
        },
        account_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.accountKey',
          type: {
            name: 'String'
          }
        },
        database: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.database',
          type: {
            name: 'String'
          }
        },
        collection_name_pattern: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.collectionNamePattern',
          type: {
            name: 'String'
          }
        },
        partition_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.partitionKey',
          type: {
            name: 'String'
          }
        },
        document_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.documentId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb, line 16
def initialize
  @type = "Microsoft.Storage/DocumentDB"
end