Class: Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource

Inherits:
OutputDataSource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb

Overview

Describes a DocumentDB output data source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentDbOutputDataSource



16
17
18
# 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

Instance Attribute Details

#account_idString

(CreateOrReplace) requests.



24
25
26
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 24

def 
  @account_id
end

#account_keyString

on PUT (CreateOrReplace) requests.



28
29
30
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 28

def 
  @account_key
end

#collection_name_patternString

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.



40
41
42
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 40

def collection_name_pattern
  @collection_name_pattern
end

#databaseString

(CreateOrReplace) requests.



32
33
34
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 32

def database
  @database
end

#document_idString

the primary key which insert or update operations are based on.



50
51
52
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 50

def document_id
  @document_id
end

#partition_keyString

the key for partitioning output across collections. If ‘collectionNamePattern’ contains the partition token, this property is required to be specified.



46
47
48
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 46

def partition_key
  @partition_key
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/document_db_output_data_source.rb', line 20

def type
  @type
end

Class Method Details

.mapperObject

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



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# 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