azure_mgmt_cosmosdb 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +1 -1
  3. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb.rb +1 -1
  4. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/{cosmos_db.rb → cosmos_dbmanagement_client.rb} +3 -3
  5. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_endpoint_connections.rb +1 -1
  6. data/lib/2019-08-01-preview/generated/azure_mgmt_cosmosdb/private_link_resources.rb +1 -1
  7. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb.rb +72 -55
  8. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/cassandra_resources.rb +1 -1
  9. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection.rb +1 -1
  10. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_partition.rb +1 -1
  11. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +1 -1
  12. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/collection_region.rb +1 -1
  13. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/{cosmos_db.rb → cosmos_dbmanagement_client.rb} +3 -3
  14. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database.rb +1 -1
  15. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database_account_region.rb +1 -1
  16. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/database_accounts.rb +1 -1
  17. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/gremlin_resources.rb +1 -1
  18. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_properties_resource.rb +85 -0
  19. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_get_results.rb +6 -43
  20. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_properties_resource.rb +108 -0
  21. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/cassandra_table_get_results.rb +5 -65
  22. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/composite_path.rb +60 -0
  23. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/composite_path_sort_order.rb +16 -0
  24. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_properties_resource.rb +85 -0
  25. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_database_get_results.rb +6 -43
  26. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_properties_resource.rb +150 -0
  27. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/gremlin_graph_get_results.rb +5 -107
  28. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +48 -0
  29. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_properties_resource.rb +125 -0
  30. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_get_results.rb +6 -83
  31. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_properties_resource.rb +85 -0
  32. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_get_results.rb +6 -43
  33. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/spatial_spec.rb +67 -0
  34. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/spatial_type.rb +18 -0
  35. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_properties_resource.rb +150 -0
  36. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_container_get_results.rb +5 -107
  37. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_properties_resource.rb +109 -0
  38. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_database_get_results.rb +6 -67
  39. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_properties_resource.rb +96 -0
  40. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_stored_procedure_get_results.rb +6 -54
  41. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_properties_resource.rb +121 -0
  42. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_trigger_get_results.rb +6 -79
  43. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_properties_resource.rb +97 -0
  44. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/sql_user_defined_function_get_results.rb +6 -54
  45. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_get_properties_resource.rb +85 -0
  46. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/table_get_results.rb +6 -43
  47. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_properties_resource.rb +109 -0
  48. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_get_results.rb +6 -29
  49. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/mongo_dbresources.rb +1 -1
  50. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/operations.rb +1 -1
  51. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +1 -1
  52. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +1 -1
  53. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile.rb +1 -1
  54. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +1 -1
  55. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/percentile_target.rb +1 -1
  56. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/sql_resources.rb +1 -1
  57. data/lib/2019-08-01/generated/azure_mgmt_cosmosdb/table_resources.rb +1 -1
  58. data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +691 -571
  59. data/lib/version.rb +1 -1
  60. metadata +21 -4
@@ -12,19 +12,8 @@ module Azure::Cosmosdb::Mgmt::V2019_08_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Name of the Cosmos DB MongoDB database
16
- attr_accessor :mongo_dbdatabase_get_results_id
17
-
18
- # @return [String] A system generated property. A unique identifier.
19
- attr_accessor :_rid
20
-
21
- # @return A system generated property that denotes the last updated
22
- # timestamp of the resource.
23
- attr_accessor :_ts
24
-
25
- # @return [String] A system generated property representing the resource
26
- # etag required for optimistic concurrency control.
27
- attr_accessor :_etag
15
+ # @return [MongoDBDatabaseGetPropertiesResource]
16
+ attr_accessor :resource
28
17
 
29
18
 
30
19
  #
@@ -91,39 +80,13 @@ module Azure::Cosmosdb::Mgmt::V2019_08_01
91
80
  }
92
81
  }
93
82
  },
94
- mongo_dbdatabase_get_results_id: {
95
- client_side_validation: true,
96
- required: true,
97
- serialized_name: 'properties.id',
98
- type: {
99
- name: 'String'
100
- }
101
- },
102
- _rid: {
83
+ resource: {
103
84
  client_side_validation: true,
104
85
  required: false,
105
- read_only: true,
106
- serialized_name: 'properties._rid',
86
+ serialized_name: 'properties.resource',
107
87
  type: {
108
- name: 'String'
109
- }
110
- },
111
- _ts: {
112
- client_side_validation: true,
113
- required: false,
114
- read_only: true,
115
- serialized_name: 'properties._ts',
116
- type: {
117
- name: 'Object'
118
- }
119
- },
120
- _etag: {
121
- client_side_validation: true,
122
- required: false,
123
- read_only: true,
124
- serialized_name: 'properties._etag',
125
- type: {
126
- name: 'String'
88
+ name: 'Composite',
89
+ class_name: 'MongoDBDatabaseGetPropertiesResource'
127
90
  }
128
91
  }
129
92
  }
@@ -0,0 +1,67 @@
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::V2019_08_01
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class SpatialSpec
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The path for which the indexing behavior applies to.
17
+ # Index paths typically start with root and end with wildcard (/path/*)
18
+ attr_accessor :path
19
+
20
+ # @return [Array<SpatialType>] List of path's spatial type
21
+ attr_accessor :types
22
+
23
+
24
+ #
25
+ # Mapper for SpatialSpec 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: 'SpatialSpec',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'SpatialSpec',
36
+ model_properties: {
37
+ path: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'path',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ types: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'types',
49
+ type: {
50
+ name: 'Sequence',
51
+ element: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'SpatialTypeElementType',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,18 @@
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::V2019_08_01
7
+ module Models
8
+ #
9
+ # Defines values for SpatialType
10
+ #
11
+ module SpatialType
12
+ Point = "Point"
13
+ LineString = "LineString"
14
+ Polygon = "Polygon"
15
+ MultiPolygon = "MultiPolygon"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,150 @@
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::V2019_08_01
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class SqlContainerGetPropertiesResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Name of the Cosmos DB SQL container
17
+ attr_accessor :id
18
+
19
+ # @return [IndexingPolicy] The configuration of the indexing policy. By
20
+ # default, the indexing is automatic for all document paths within the
21
+ # container
22
+ attr_accessor :indexing_policy
23
+
24
+ # @return [ContainerPartitionKey] The configuration of the partition key
25
+ # to be used for partitioning data into multiple partitions
26
+ attr_accessor :partition_key
27
+
28
+ # @return [Integer] Default time to live
29
+ attr_accessor :default_ttl
30
+
31
+ # @return [UniqueKeyPolicy] The unique key policy configuration for
32
+ # specifying uniqueness constraints on documents in the collection in the
33
+ # Azure Cosmos DB service.
34
+ attr_accessor :unique_key_policy
35
+
36
+ # @return [ConflictResolutionPolicy] The conflict resolution policy for
37
+ # the container.
38
+ attr_accessor :conflict_resolution_policy
39
+
40
+ # @return [String] A system generated property. A unique identifier.
41
+ attr_accessor :_rid
42
+
43
+ # @return A system generated property that denotes the last updated
44
+ # timestamp of the resource.
45
+ attr_accessor :_ts
46
+
47
+ # @return [String] A system generated property representing the resource
48
+ # etag required for optimistic concurrency control.
49
+ attr_accessor :_etag
50
+
51
+
52
+ #
53
+ # Mapper for SqlContainerGetPropertiesResource class as Ruby Hash.
54
+ # This will be used for serialization/deserialization.
55
+ #
56
+ def self.mapper()
57
+ {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'SqlContainerGetProperties_resource',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'SqlContainerGetPropertiesResource',
64
+ model_properties: {
65
+ id: {
66
+ client_side_validation: true,
67
+ required: true,
68
+ serialized_name: 'id',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ indexing_policy: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ serialized_name: 'indexingPolicy',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'IndexingPolicy'
80
+ }
81
+ },
82
+ partition_key: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'partitionKey',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'ContainerPartitionKey'
89
+ }
90
+ },
91
+ default_ttl: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'defaultTtl',
95
+ type: {
96
+ name: 'Number'
97
+ }
98
+ },
99
+ unique_key_policy: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ serialized_name: 'uniqueKeyPolicy',
103
+ type: {
104
+ name: 'Composite',
105
+ class_name: 'UniqueKeyPolicy'
106
+ }
107
+ },
108
+ conflict_resolution_policy: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'conflictResolutionPolicy',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'ConflictResolutionPolicy'
115
+ }
116
+ },
117
+ _rid: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: '_rid',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ _ts: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: '_ts',
131
+ type: {
132
+ name: 'Object'
133
+ }
134
+ },
135
+ _etag: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: '_etag',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ end
148
+ end
149
+ end
150
+ end
@@ -12,40 +12,8 @@ module Azure::Cosmosdb::Mgmt::V2019_08_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Name of the Cosmos DB SQL container
16
- attr_accessor :sql_container_get_results_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
15
+ # @return [SqlContainerGetPropertiesResource]
16
+ attr_accessor :resource
49
17
 
50
18
 
51
19
  #
@@ -112,83 +80,13 @@ module Azure::Cosmosdb::Mgmt::V2019_08_01
112
80
  }
113
81
  }
114
82
  },
115
- sql_container_get_results_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: {
83
+ resource: {
159
84
  client_side_validation: true,
160
85
  required: false,
161
- serialized_name: 'properties.conflictResolutionPolicy',
86
+ serialized_name: 'properties.resource',
162
87
  type: {
163
88
  name: 'Composite',
164
- class_name: 'ConflictResolutionPolicy'
165
- }
166
- },
167
- _rid: {
168
- client_side_validation: true,
169
- required: false,
170
- read_only: true,
171
- serialized_name: 'properties._rid',
172
- type: {
173
- name: 'String'
174
- }
175
- },
176
- _ts: {
177
- client_side_validation: true,
178
- required: false,
179
- read_only: true,
180
- serialized_name: 'properties._ts',
181
- type: {
182
- name: 'Object'
183
- }
184
- },
185
- _etag: {
186
- client_side_validation: true,
187
- required: false,
188
- read_only: true,
189
- serialized_name: 'properties._etag',
190
- type: {
191
- name: 'String'
89
+ class_name: 'SqlContainerGetPropertiesResource'
192
90
  }
193
91
  }
194
92
  }
@@ -0,0 +1,109 @@
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::V2019_08_01
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class SqlDatabaseGetPropertiesResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Name of the Cosmos DB SQL database
17
+ attr_accessor :id
18
+
19
+ # @return [String] A system generated property. A unique identifier.
20
+ attr_accessor :_rid
21
+
22
+ # @return A system generated property that denotes the last updated
23
+ # timestamp of the resource.
24
+ attr_accessor :_ts
25
+
26
+ # @return [String] A system generated property representing the resource
27
+ # etag required for optimistic concurrency control.
28
+ attr_accessor :_etag
29
+
30
+ # @return [String] A system generated property that specified the
31
+ # addressable path of the collections resource.
32
+ attr_accessor :_colls
33
+
34
+ # @return [String] A system generated property that specifies the
35
+ # addressable path of the users resource.
36
+ attr_accessor :_users
37
+
38
+
39
+ #
40
+ # Mapper for SqlDatabaseGetPropertiesResource class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'SqlDatabaseGetProperties_resource',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'SqlDatabaseGetPropertiesResource',
51
+ model_properties: {
52
+ id: {
53
+ client_side_validation: true,
54
+ required: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ _rid: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: '_rid',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ _ts: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: '_ts',
74
+ type: {
75
+ name: 'Object'
76
+ }
77
+ },
78
+ _etag: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: '_etag',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ _colls: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: '_colls',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ _users: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: '_users',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ end
107
+ end
108
+ end
109
+ end