azure_mgmt_cosmosdb 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb.rb +140 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection.rb +371 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition.rb +267 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_partition_region.rb +155 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/collection_region.rb +155 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/cosmos_db.rb +180 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database.rb +359 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_account_region.rb +147 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/database_accounts.rb +6805 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/capability.rb +48 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace.rb +97 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_keyspace_resource.rb +46 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_partition_key.rb +46 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_schema.rb +95 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table.rb +120 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cassandra_table_resource.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/cluster_key.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/column.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_mode.rb +16 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/conflict_resolution_policy.rb +73 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/consistency_policy.rb +86 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/container_partition_key.rb +70 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/data_type.rb +20 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account.rb +313 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_connection_string.rb +59 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_create_update_parameters.rb +243 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_kind.rb +17 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_connection_strings_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_keys_result.rb +83 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_list_read_only_keys_result.rb +59 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_offer_type.rb +15 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_patch_parameters.rb +75 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_account_regenerate_key_parameters.rb +47 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/database_accounts_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/default_consistency_level.rb +19 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/error_response.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/excluded_path.rb +48 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/extended_resource_properties.rb +71 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policies.rb +55 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/failover_policy.rb +79 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database.rb +132 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_database_resource.rb +46 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph.rb +197 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_list_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/gremlin_graph_resource.rb +111 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/included_path.rb +67 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/index_kind.rb +17 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexes.rb +73 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_mode.rb +17 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/indexing_policy.rb +99 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/key_kind.rb +18 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/location.rb +102 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric.rb +120 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_availability.rb +60 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definition.rb +109 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_definitions_list_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_list_result.rb +56 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_name.rb +59 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/metric_value.rb +107 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection.rb +137 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbcollection_resource.rb +86 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase.rb +97 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase_resource.rb +46 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index.rb +60 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_keys.rb +55 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_display.rb +80 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/operation_list_result.rb +101 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_kind.rb +16 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric.rb +124 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_metric_list_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usage.rb +105 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/partition_usages_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric.rb +120 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_list_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/percentile_metric_value.rb +173 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/primary_aggregation_type.rb +20 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/region_for_online_offline.rb +47 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/resource.rb +112 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container.rb +197 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_create_update_parameters.rb +68 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_list_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_container_resource.rb +111 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database.rb +156 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_create_update_parameters.rb +69 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_list_result.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/sql_database_resource.rb +46 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table.rb +97 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_create_update_parameters.rb +68 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_list_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/table_resource.rb +46 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key.rb +56 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unique_key_policy.rb +58 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/unit_type.rb +21 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usage.rb +97 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/usages_result.rb +57 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/virtual_network_rule.rb +59 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/module_definition.rb +9 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/operations.rb +219 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id.rb +155 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/partition_key_range_id_region.rb +162 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile.rb +140 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_source_target.rb +157 -0
- data/lib/2015-04-08/generated/azure_mgmt_cosmosdb/percentile_target.rb +147 -0
- data/lib/azure_mgmt_cosmosdb.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/cosmosdb_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/cosmosdb_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/cosmosdb_profile_module.rb +485 -0
- data/lib/version.rb +7 -0
- metadata +240 -0
|
@@ -0,0 +1,73 @@
|
|
|
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 conflict resolution policy for the container.
|
|
10
|
+
#
|
|
11
|
+
class ConflictResolutionPolicy
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [ConflictResolutionMode] Indicates the conflict resolution
|
|
16
|
+
# mode. Possible values include: 'LastWriterWins', 'Custom'. Default
|
|
17
|
+
# value: 'LastWriterWins' .
|
|
18
|
+
attr_accessor :mode
|
|
19
|
+
|
|
20
|
+
# @return [String] The conflict resolution path in the case of
|
|
21
|
+
# LastWriterWins mode.
|
|
22
|
+
attr_accessor :conflict_resolution_path
|
|
23
|
+
|
|
24
|
+
# @return [String] The procedure to resolve conflicts in the case of
|
|
25
|
+
# custom mode.
|
|
26
|
+
attr_accessor :conflict_resolution_procedure
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Mapper for ConflictResolutionPolicy class as Ruby Hash.
|
|
31
|
+
# This will be used for serialization/deserialization.
|
|
32
|
+
#
|
|
33
|
+
def self.mapper()
|
|
34
|
+
{
|
|
35
|
+
client_side_validation: true,
|
|
36
|
+
required: false,
|
|
37
|
+
serialized_name: 'ConflictResolutionPolicy',
|
|
38
|
+
type: {
|
|
39
|
+
name: 'Composite',
|
|
40
|
+
class_name: 'ConflictResolutionPolicy',
|
|
41
|
+
model_properties: {
|
|
42
|
+
mode: {
|
|
43
|
+
client_side_validation: true,
|
|
44
|
+
required: false,
|
|
45
|
+
serialized_name: 'mode',
|
|
46
|
+
default_value: 'LastWriterWins',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'String'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
conflict_resolution_path: {
|
|
52
|
+
client_side_validation: true,
|
|
53
|
+
required: false,
|
|
54
|
+
serialized_name: 'conflictResolutionPath',
|
|
55
|
+
type: {
|
|
56
|
+
name: 'String'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
conflict_resolution_procedure: {
|
|
60
|
+
client_side_validation: true,
|
|
61
|
+
required: false,
|
|
62
|
+
serialized_name: 'conflictResolutionProcedure',
|
|
63
|
+
type: {
|
|
64
|
+
name: 'String'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
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 consistency policy for the Cosmos DB database account.
|
|
10
|
+
#
|
|
11
|
+
class ConsistencyPolicy
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [DefaultConsistencyLevel] The default consistency level and
|
|
16
|
+
# configuration settings of the Cosmos DB account. Possible values
|
|
17
|
+
# include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong',
|
|
18
|
+
# 'ConsistentPrefix'
|
|
19
|
+
attr_accessor :default_consistency_level
|
|
20
|
+
|
|
21
|
+
# @return [Integer] When used with the Bounded Staleness consistency
|
|
22
|
+
# level, this value represents the number of stale requests tolerated.
|
|
23
|
+
# Accepted range for this value is 1 – 2,147,483,647. Required when
|
|
24
|
+
# defaultConsistencyPolicy is set to 'BoundedStaleness'.
|
|
25
|
+
attr_accessor :max_staleness_prefix
|
|
26
|
+
|
|
27
|
+
# @return [Integer] When used with the Bounded Staleness consistency
|
|
28
|
+
# level, this value represents the time amount of staleness (in seconds)
|
|
29
|
+
# tolerated. Accepted range for this value is 5 - 86400. Required when
|
|
30
|
+
# defaultConsistencyPolicy is set to 'BoundedStaleness'.
|
|
31
|
+
attr_accessor :max_interval_in_seconds
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
#
|
|
35
|
+
# Mapper for ConsistencyPolicy class as Ruby Hash.
|
|
36
|
+
# This will be used for serialization/deserialization.
|
|
37
|
+
#
|
|
38
|
+
def self.mapper()
|
|
39
|
+
{
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'ConsistencyPolicy',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Composite',
|
|
45
|
+
class_name: 'ConsistencyPolicy',
|
|
46
|
+
model_properties: {
|
|
47
|
+
default_consistency_level: {
|
|
48
|
+
client_side_validation: true,
|
|
49
|
+
required: true,
|
|
50
|
+
serialized_name: 'defaultConsistencyLevel',
|
|
51
|
+
type: {
|
|
52
|
+
name: 'Enum',
|
|
53
|
+
module: 'DefaultConsistencyLevel'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
max_staleness_prefix: {
|
|
57
|
+
client_side_validation: true,
|
|
58
|
+
required: false,
|
|
59
|
+
serialized_name: 'maxStalenessPrefix',
|
|
60
|
+
constraints: {
|
|
61
|
+
InclusiveMaximum: 2147483647,
|
|
62
|
+
InclusiveMinimum: 1
|
|
63
|
+
},
|
|
64
|
+
type: {
|
|
65
|
+
name: 'Number'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
max_interval_in_seconds: {
|
|
69
|
+
client_side_validation: true,
|
|
70
|
+
required: false,
|
|
71
|
+
serialized_name: 'maxIntervalInSeconds',
|
|
72
|
+
constraints: {
|
|
73
|
+
InclusiveMaximum: 86400,
|
|
74
|
+
InclusiveMinimum: 5
|
|
75
|
+
},
|
|
76
|
+
type: {
|
|
77
|
+
name: 'Number'
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
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 configuration of the partition key to be used for partitioning data
|
|
10
|
+
# into multiple partitions
|
|
11
|
+
#
|
|
12
|
+
class ContainerPartitionKey
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [Array<String>] List of paths using which data within the
|
|
17
|
+
# container can be partitioned
|
|
18
|
+
attr_accessor :paths
|
|
19
|
+
|
|
20
|
+
# @return [PartitionKind] Indicates the kind of algorithm used for
|
|
21
|
+
# partitioning. Possible values include: 'Hash', 'Range'. Default value:
|
|
22
|
+
# 'Hash' .
|
|
23
|
+
attr_accessor :kind
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Mapper for ContainerPartitionKey class as Ruby Hash.
|
|
28
|
+
# This will be used for serialization/deserialization.
|
|
29
|
+
#
|
|
30
|
+
def self.mapper()
|
|
31
|
+
{
|
|
32
|
+
client_side_validation: true,
|
|
33
|
+
required: false,
|
|
34
|
+
serialized_name: 'ContainerPartitionKey',
|
|
35
|
+
type: {
|
|
36
|
+
name: 'Composite',
|
|
37
|
+
class_name: 'ContainerPartitionKey',
|
|
38
|
+
model_properties: {
|
|
39
|
+
paths: {
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'paths',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Sequence',
|
|
45
|
+
element: {
|
|
46
|
+
client_side_validation: true,
|
|
47
|
+
required: false,
|
|
48
|
+
serialized_name: 'StringElementType',
|
|
49
|
+
type: {
|
|
50
|
+
name: 'String'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
kind: {
|
|
56
|
+
client_side_validation: true,
|
|
57
|
+
required: false,
|
|
58
|
+
serialized_name: 'kind',
|
|
59
|
+
default_value: 'Hash',
|
|
60
|
+
type: {
|
|
61
|
+
name: 'String'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -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 DataType
|
|
10
|
+
#
|
|
11
|
+
module DataType
|
|
12
|
+
String = "String"
|
|
13
|
+
Number = "Number"
|
|
14
|
+
Point = "Point"
|
|
15
|
+
Polygon = "Polygon"
|
|
16
|
+
LineString = "LineString"
|
|
17
|
+
MultiPolygon = "MultiPolygon"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,313 @@
|
|
|
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 database account.
|
|
10
|
+
#
|
|
11
|
+
class DatabaseAccount < Resource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [DatabaseAccountKind] Indicates the type of database account.
|
|
16
|
+
# This can only be set at database account creation. Possible values
|
|
17
|
+
# include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value:
|
|
18
|
+
# 'GlobalDocumentDB' .
|
|
19
|
+
attr_accessor :kind
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :provisioning_state
|
|
23
|
+
|
|
24
|
+
# @return [String] The connection endpoint for the Cosmos DB database
|
|
25
|
+
# account.
|
|
26
|
+
attr_accessor :document_endpoint
|
|
27
|
+
|
|
28
|
+
# @return [DatabaseAccountOfferType] The offer type for the Cosmos DB
|
|
29
|
+
# database account. Default value: Standard. Possible values include:
|
|
30
|
+
# 'Standard'
|
|
31
|
+
attr_accessor :database_account_offer_type
|
|
32
|
+
|
|
33
|
+
# @return [String] Cosmos DB Firewall Support: This value specifies the
|
|
34
|
+
# set of IP addresses or IP address ranges in CIDR form to be included as
|
|
35
|
+
# the allowed list of client IPs for a given database account. IP
|
|
36
|
+
# addresses/ranges must be comma separated and must not contain any
|
|
37
|
+
# spaces.
|
|
38
|
+
attr_accessor :ip_range_filter
|
|
39
|
+
|
|
40
|
+
# @return [Boolean] Flag to indicate whether to enable/disable Virtual
|
|
41
|
+
# Network ACL rules.
|
|
42
|
+
attr_accessor :is_virtual_network_filter_enabled
|
|
43
|
+
|
|
44
|
+
# @return [Boolean] Enables automatic failover of the write region in the
|
|
45
|
+
# rare event that the region is unavailable due to an outage. Automatic
|
|
46
|
+
# failover will result in a new write region for the account and is
|
|
47
|
+
# chosen based on the failover priorities configured for the account.
|
|
48
|
+
attr_accessor :enable_automatic_failover
|
|
49
|
+
|
|
50
|
+
# @return [ConsistencyPolicy] The consistency policy for the Cosmos DB
|
|
51
|
+
# database account.
|
|
52
|
+
attr_accessor :consistency_policy
|
|
53
|
+
|
|
54
|
+
# @return [Array<Capability>] List of Cosmos DB capabilities for the
|
|
55
|
+
# account
|
|
56
|
+
attr_accessor :capabilities
|
|
57
|
+
|
|
58
|
+
# @return [Array<Location>] An array that contains the write location for
|
|
59
|
+
# the Cosmos DB account.
|
|
60
|
+
attr_accessor :write_locations
|
|
61
|
+
|
|
62
|
+
# @return [Array<Location>] An array that contains of the read locations
|
|
63
|
+
# enabled for the Cosmos DB account.
|
|
64
|
+
attr_accessor :read_locations
|
|
65
|
+
|
|
66
|
+
# @return [Array<FailoverPolicy>] An array that contains the regions
|
|
67
|
+
# ordered by their failover priorities.
|
|
68
|
+
attr_accessor :failover_policies
|
|
69
|
+
|
|
70
|
+
# @return [Array<VirtualNetworkRule>] List of Virtual Network ACL rules
|
|
71
|
+
# configured for the Cosmos DB account.
|
|
72
|
+
attr_accessor :virtual_network_rules
|
|
73
|
+
|
|
74
|
+
# @return [Boolean] Enables the account to write in multiple locations
|
|
75
|
+
attr_accessor :enable_multiple_write_locations
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
#
|
|
79
|
+
# Mapper for DatabaseAccount class as Ruby Hash.
|
|
80
|
+
# This will be used for serialization/deserialization.
|
|
81
|
+
#
|
|
82
|
+
def self.mapper()
|
|
83
|
+
{
|
|
84
|
+
client_side_validation: true,
|
|
85
|
+
required: false,
|
|
86
|
+
serialized_name: 'DatabaseAccount',
|
|
87
|
+
type: {
|
|
88
|
+
name: 'Composite',
|
|
89
|
+
class_name: 'DatabaseAccount',
|
|
90
|
+
model_properties: {
|
|
91
|
+
id: {
|
|
92
|
+
client_side_validation: true,
|
|
93
|
+
required: false,
|
|
94
|
+
read_only: true,
|
|
95
|
+
serialized_name: 'id',
|
|
96
|
+
type: {
|
|
97
|
+
name: 'String'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
name: {
|
|
101
|
+
client_side_validation: true,
|
|
102
|
+
required: false,
|
|
103
|
+
read_only: true,
|
|
104
|
+
serialized_name: 'name',
|
|
105
|
+
type: {
|
|
106
|
+
name: 'String'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
type: {
|
|
110
|
+
client_side_validation: true,
|
|
111
|
+
required: false,
|
|
112
|
+
read_only: true,
|
|
113
|
+
serialized_name: 'type',
|
|
114
|
+
type: {
|
|
115
|
+
name: 'String'
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
location: {
|
|
119
|
+
client_side_validation: true,
|
|
120
|
+
required: false,
|
|
121
|
+
serialized_name: 'location',
|
|
122
|
+
type: {
|
|
123
|
+
name: 'String'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
tags: {
|
|
127
|
+
client_side_validation: true,
|
|
128
|
+
required: false,
|
|
129
|
+
serialized_name: 'tags',
|
|
130
|
+
type: {
|
|
131
|
+
name: 'Dictionary',
|
|
132
|
+
value: {
|
|
133
|
+
client_side_validation: true,
|
|
134
|
+
required: false,
|
|
135
|
+
serialized_name: 'StringElementType',
|
|
136
|
+
type: {
|
|
137
|
+
name: 'String'
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
kind: {
|
|
143
|
+
client_side_validation: true,
|
|
144
|
+
required: false,
|
|
145
|
+
serialized_name: 'kind',
|
|
146
|
+
default_value: 'GlobalDocumentDB',
|
|
147
|
+
type: {
|
|
148
|
+
name: 'String'
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
provisioning_state: {
|
|
152
|
+
client_side_validation: true,
|
|
153
|
+
required: false,
|
|
154
|
+
serialized_name: 'properties.provisioningState',
|
|
155
|
+
type: {
|
|
156
|
+
name: 'String'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
document_endpoint: {
|
|
160
|
+
client_side_validation: true,
|
|
161
|
+
required: false,
|
|
162
|
+
read_only: true,
|
|
163
|
+
serialized_name: 'properties.documentEndpoint',
|
|
164
|
+
type: {
|
|
165
|
+
name: 'String'
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
database_account_offer_type: {
|
|
169
|
+
client_side_validation: true,
|
|
170
|
+
required: false,
|
|
171
|
+
read_only: true,
|
|
172
|
+
serialized_name: 'properties.databaseAccountOfferType',
|
|
173
|
+
type: {
|
|
174
|
+
name: 'Enum',
|
|
175
|
+
module: 'DatabaseAccountOfferType'
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
ip_range_filter: {
|
|
179
|
+
client_side_validation: true,
|
|
180
|
+
required: false,
|
|
181
|
+
serialized_name: 'properties.ipRangeFilter',
|
|
182
|
+
type: {
|
|
183
|
+
name: 'String'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
is_virtual_network_filter_enabled: {
|
|
187
|
+
client_side_validation: true,
|
|
188
|
+
required: false,
|
|
189
|
+
serialized_name: 'properties.isVirtualNetworkFilterEnabled',
|
|
190
|
+
type: {
|
|
191
|
+
name: 'Boolean'
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
enable_automatic_failover: {
|
|
195
|
+
client_side_validation: true,
|
|
196
|
+
required: false,
|
|
197
|
+
serialized_name: 'properties.enableAutomaticFailover',
|
|
198
|
+
type: {
|
|
199
|
+
name: 'Boolean'
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
consistency_policy: {
|
|
203
|
+
client_side_validation: true,
|
|
204
|
+
required: false,
|
|
205
|
+
serialized_name: 'properties.consistencyPolicy',
|
|
206
|
+
type: {
|
|
207
|
+
name: 'Composite',
|
|
208
|
+
class_name: 'ConsistencyPolicy'
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
capabilities: {
|
|
212
|
+
client_side_validation: true,
|
|
213
|
+
required: false,
|
|
214
|
+
serialized_name: 'properties.capabilities',
|
|
215
|
+
type: {
|
|
216
|
+
name: 'Sequence',
|
|
217
|
+
element: {
|
|
218
|
+
client_side_validation: true,
|
|
219
|
+
required: false,
|
|
220
|
+
serialized_name: 'CapabilityElementType',
|
|
221
|
+
type: {
|
|
222
|
+
name: 'Composite',
|
|
223
|
+
class_name: 'Capability'
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
write_locations: {
|
|
229
|
+
client_side_validation: true,
|
|
230
|
+
required: false,
|
|
231
|
+
read_only: true,
|
|
232
|
+
serialized_name: 'properties.writeLocations',
|
|
233
|
+
type: {
|
|
234
|
+
name: 'Sequence',
|
|
235
|
+
element: {
|
|
236
|
+
client_side_validation: true,
|
|
237
|
+
required: false,
|
|
238
|
+
serialized_name: 'LocationElementType',
|
|
239
|
+
type: {
|
|
240
|
+
name: 'Composite',
|
|
241
|
+
class_name: 'Location'
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
read_locations: {
|
|
247
|
+
client_side_validation: true,
|
|
248
|
+
required: false,
|
|
249
|
+
read_only: true,
|
|
250
|
+
serialized_name: 'properties.readLocations',
|
|
251
|
+
type: {
|
|
252
|
+
name: 'Sequence',
|
|
253
|
+
element: {
|
|
254
|
+
client_side_validation: true,
|
|
255
|
+
required: false,
|
|
256
|
+
serialized_name: 'LocationElementType',
|
|
257
|
+
type: {
|
|
258
|
+
name: 'Composite',
|
|
259
|
+
class_name: 'Location'
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
failover_policies: {
|
|
265
|
+
client_side_validation: true,
|
|
266
|
+
required: false,
|
|
267
|
+
read_only: true,
|
|
268
|
+
serialized_name: 'properties.failoverPolicies',
|
|
269
|
+
type: {
|
|
270
|
+
name: 'Sequence',
|
|
271
|
+
element: {
|
|
272
|
+
client_side_validation: true,
|
|
273
|
+
required: false,
|
|
274
|
+
serialized_name: 'FailoverPolicyElementType',
|
|
275
|
+
type: {
|
|
276
|
+
name: 'Composite',
|
|
277
|
+
class_name: 'FailoverPolicy'
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
virtual_network_rules: {
|
|
283
|
+
client_side_validation: true,
|
|
284
|
+
required: false,
|
|
285
|
+
serialized_name: 'properties.virtualNetworkRules',
|
|
286
|
+
type: {
|
|
287
|
+
name: 'Sequence',
|
|
288
|
+
element: {
|
|
289
|
+
client_side_validation: true,
|
|
290
|
+
required: false,
|
|
291
|
+
serialized_name: 'VirtualNetworkRuleElementType',
|
|
292
|
+
type: {
|
|
293
|
+
name: 'Composite',
|
|
294
|
+
class_name: 'VirtualNetworkRule'
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
enable_multiple_write_locations: {
|
|
300
|
+
client_side_validation: true,
|
|
301
|
+
required: false,
|
|
302
|
+
serialized_name: 'properties.enableMultipleWriteLocations',
|
|
303
|
+
type: {
|
|
304
|
+
name: 'Boolean'
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
end
|