azure_mgmt_cosmosdb 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb.rb +140 -0
  4. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection.rb +371 -0
  5. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition.rb +267 -0
  6. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +155 -0
  7. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_region.rb +155 -0
  8. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +180 -0
  9. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database.rb +359 -0
  10. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_account_region.rb +147 -0
  11. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_accounts.rb +6805 -0
  12. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
  13. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace.rb +97 -0
  14. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +69 -0
  15. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
  16. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
  17. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
  18. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
  19. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table.rb +120 -0
  20. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +69 -0
  21. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
  22. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
  23. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
  24. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
  25. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
  26. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
  27. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
  28. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +70 -0
  29. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
  30. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account.rb +313 -0
  31. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
  32. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +243 -0
  33. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
  34. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
  35. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +83 -0
  36. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
  37. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
  38. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_patch_parameters.rb +75 -0
  39. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
  40. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
  41. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
  42. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
  43. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
  44. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +71 -0
  45. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
  46. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
  47. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database.rb +132 -0
  48. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +69 -0
  49. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
  50. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
  51. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph.rb +197 -0
  52. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +69 -0
  53. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +57 -0
  54. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
  55. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
  56. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
  57. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
  58. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
  59. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +99 -0
  60. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
  61. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/location.rb +102 -0
  62. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
  63. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
  64. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
  65. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
  66. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
  67. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
  68. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
  69. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection.rb +137 -0
  70. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +69 -0
  71. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
  72. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
  73. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase.rb +97 -0
  74. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +69 -0
  75. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
  76. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
  77. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
  78. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
  79. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
  80. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
  81. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
  82. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
  83. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
  84. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
  85. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
  86. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
  87. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
  88. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
  89. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
  90. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
  91. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
  92. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
  93. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/resource.rb +112 -0
  94. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container.rb +197 -0
  95. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +68 -0
  96. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +57 -0
  97. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
  98. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database.rb +156 -0
  99. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +69 -0
  100. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
  101. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
  102. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table.rb +97 -0
  103. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +68 -0
  104. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
  105. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
  106. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
  107. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
  108. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
  109. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
  110. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
  111. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
  112. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
  113. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
  114. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +155 -0
  115. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +162 -0
  116. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile.rb +140 -0
  117. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +157 -0
  118. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_target.rb +147 -0
  119. data/lib/azure_mgmt_cosmosdb.rb +6 -0
  120. data/lib/module_definition.rb +7 -0
  121. data/lib/profiles/latest/cosmosdb_latest_profile_client.rb +40 -0
  122. data/lib/profiles/latest/cosmosdb_module_definition.rb +8 -0
  123. data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +485 -0
  124. data/lib/version.rb +7 -0
  125. metadata +240 -0
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Defines values for PrimaryAggregationType
10
+ #
11
+ module PrimaryAggregationType
12
+ None = "None"
13
+ Average = "Average"
14
+ Total = "Total"
15
+ Minimimum = "Minimimum"
16
+ Maximum = "Maximum"
17
+ Last = "Last"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,47 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Cosmos DB region to online or offline.
10
+ #
11
+ class RegionForOnlineOffline
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Cosmos DB region, with spaces between words and each
16
+ # word capitalized.
17
+ attr_accessor :region
18
+
19
+
20
+ #
21
+ # Mapper for RegionForOnlineOffline class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'RegionForOnlineOffline',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'RegionForOnlineOffline',
32
+ model_properties: {
33
+ region: {
34
+ client_side_validation: true,
35
+ required: true,
36
+ serialized_name: 'region',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,112 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # The core properties of ARM resources.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The unique resource identifier of the database
16
+ # account.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The name of the database account.
20
+ attr_accessor :name
21
+
22
+ # @return [String] The type of Azure resource.
23
+ attr_accessor :type
24
+
25
+ # @return [String] The location of the resource group to which the
26
+ # resource belongs.
27
+ attr_accessor :location
28
+
29
+ # @return [Hash{String => String}]
30
+ attr_accessor :tags
31
+
32
+
33
+ # @return [String] the name of the resource group of the resource.
34
+ def resource_group
35
+ unless self.id.nil?
36
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
37
+ groups.captures[0].strip if groups
38
+ end
39
+ end
40
+
41
+
42
+ #
43
+ # Mapper for Resource class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'Resource',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'Resource',
54
+ model_properties: {
55
+ id: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'id',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ name: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'name',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ type: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'type',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ location: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'location',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ tags: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'tags',
94
+ type: {
95
+ name: 'Dictionary',
96
+ value: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'StringElementType',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ end
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,197 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # An Azure Cosmos DB container.
10
+ #
11
+ class SqlContainer < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the Cosmos DB SQL container
16
+ attr_accessor :sql_container_id
17
+
18
+ # @return [IndexingPolicy] The configuration of the indexing policy. By
19
+ # default, the indexing is automatic for all document paths within the
20
+ # container
21
+ attr_accessor :indexing_policy
22
+
23
+ # @return [ContainerPartitionKey] The configuration of the partition key
24
+ # to be used for partitioning data into multiple partitions
25
+ attr_accessor :partition_key
26
+
27
+ # @return [Integer] Default time to live
28
+ attr_accessor :default_ttl
29
+
30
+ # @return [UniqueKeyPolicy] The unique key policy configuration for
31
+ # specifying uniqueness constraints on documents in the collection in the
32
+ # Azure Cosmos DB service.
33
+ attr_accessor :unique_key_policy
34
+
35
+ # @return [ConflictResolutionPolicy] The conflict resolution policy for
36
+ # the container.
37
+ attr_accessor :conflict_resolution_policy
38
+
39
+ # @return [String] A system generated property. A unique identifier.
40
+ attr_accessor :_rid
41
+
42
+ # @return A system generated property that denotes the last updated
43
+ # timestamp of the resource.
44
+ attr_accessor :_ts
45
+
46
+ # @return [String] A system generated property representing the resource
47
+ # etag required for optimistic concurrency control.
48
+ attr_accessor :_etag
49
+
50
+
51
+ #
52
+ # Mapper for SqlContainer class as Ruby Hash.
53
+ # This will be used for serialization/deserialization.
54
+ #
55
+ def self.mapper()
56
+ {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'SqlContainer',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'SqlContainer',
63
+ model_properties: {
64
+ id: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'id',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ name: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'name',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ type: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ read_only: true,
86
+ serialized_name: 'type',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ location: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'location',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ tags: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'tags',
103
+ type: {
104
+ name: 'Dictionary',
105
+ value: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ serialized_name: 'StringElementType',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ }
113
+ }
114
+ },
115
+ sql_container_id: {
116
+ client_side_validation: true,
117
+ required: true,
118
+ serialized_name: 'properties.id',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ indexing_policy: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'properties.indexingPolicy',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'IndexingPolicy'
130
+ }
131
+ },
132
+ partition_key: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ serialized_name: 'properties.partitionKey',
136
+ type: {
137
+ name: 'Composite',
138
+ class_name: 'ContainerPartitionKey'
139
+ }
140
+ },
141
+ default_ttl: {
142
+ client_side_validation: true,
143
+ required: false,
144
+ serialized_name: 'properties.defaultTtl',
145
+ type: {
146
+ name: 'Number'
147
+ }
148
+ },
149
+ unique_key_policy: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: 'properties.uniqueKeyPolicy',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'UniqueKeyPolicy'
156
+ }
157
+ },
158
+ conflict_resolution_policy: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ serialized_name: 'properties.conflictResolutionPolicy',
162
+ type: {
163
+ name: 'Composite',
164
+ class_name: 'ConflictResolutionPolicy'
165
+ }
166
+ },
167
+ _rid: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ serialized_name: 'properties._rid',
171
+ type: {
172
+ name: 'String'
173
+ }
174
+ },
175
+ _ts: {
176
+ client_side_validation: true,
177
+ required: false,
178
+ serialized_name: 'properties._ts',
179
+ type: {
180
+ name: 'Object'
181
+ }
182
+ },
183
+ _etag: {
184
+ client_side_validation: true,
185
+ required: false,
186
+ serialized_name: 'properties._etag',
187
+ type: {
188
+ name: 'String'
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ end
195
+ end
196
+ end
197
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Cosmosdb::Mgmt::V2015_04_08
7
+ module Models
8
+ #
9
+ # Parameters to create and update Cosmos DB container.
10
+ #
11
+ class SqlContainerCreateUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [SqlContainerResource] The standard JSON format of a container
16
+ attr_accessor :resource
17
+
18
+ # @return [Hash{String => String}] A key-value pair of options to be
19
+ # applied for the request. This corresponds to the headers sent with the
20
+ # request.
21
+ attr_accessor :options
22
+
23
+
24
+ #
25
+ # Mapper for SqlContainerCreateUpdateParameters class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'SqlContainerCreateUpdateParameters',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'SqlContainerCreateUpdateParameters',
36
+ model_properties: {
37
+ resource: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: 'properties.resource',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'SqlContainerResource'
44
+ }
45
+ },
46
+ options: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: 'properties.options',
50
+ type: {
51
+ name: 'Dictionary',
52
+ value: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'StringElementType',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end