Class: Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource
- Inherits:
-
OutputDataSource
- Object
- OutputDataSource
- Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DocumentDbOutputDataSource
- 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
-
#account_id ⇒ String
(CreateOrReplace) requests.
-
#account_key ⇒ String
on PUT (CreateOrReplace) requests.
-
#collection_name_pattern ⇒ String
used.
-
#database ⇒ String
(CreateOrReplace) requests.
-
#document_id ⇒ String
the primary key which insert or update operations are based on.
-
#partition_key ⇒ String
the key for partitioning output across collections.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DocumentDbOutputDataSource class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ DocumentDbOutputDataSource
constructor
A new instance of DocumentDbOutputDataSource.
Constructor Details
#initialize ⇒ DocumentDbOutputDataSource
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_id ⇒ String
(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 @account_id end |
#account_key ⇒ String
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 @account_key end |
#collection_name_pattern ⇒ String
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 |
#database ⇒ String
(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_id ⇒ String
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_key ⇒ String
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 |
#type ⇒ Object
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
.mapper ⇒ Object
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 |