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,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::V2015_04_08
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for KeyKind
|
|
10
|
+
#
|
|
11
|
+
module KeyKind
|
|
12
|
+
Primary = "primary"
|
|
13
|
+
Secondary = "secondary"
|
|
14
|
+
PrimaryReadonly = "primaryReadonly"
|
|
15
|
+
SecondaryReadonly = "secondaryReadonly"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
# A region in which the Azure Cosmos DB database account is deployed.
|
|
10
|
+
#
|
|
11
|
+
class Location
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] The unique identifier of the region within the
|
|
16
|
+
# database account. Example: <accountName>-<locationName>.
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# @return [String] The name of the region.
|
|
20
|
+
attr_accessor :location_name
|
|
21
|
+
|
|
22
|
+
# @return [String] The connection endpoint for the specific region.
|
|
23
|
+
# Example:
|
|
24
|
+
# https://<accountName>-<locationName>.documents.azure.com:443/
|
|
25
|
+
attr_accessor :document_endpoint
|
|
26
|
+
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :provisioning_state
|
|
29
|
+
|
|
30
|
+
# @return [Integer] The failover priority of the region. A failover
|
|
31
|
+
# priority of 0 indicates a write region. The maximum value for a
|
|
32
|
+
# failover priority = (total number of regions - 1). Failover priority
|
|
33
|
+
# values must be unique for each of the regions in which the database
|
|
34
|
+
# account exists.
|
|
35
|
+
attr_accessor :failover_priority
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
# Mapper for Location class as Ruby Hash.
|
|
40
|
+
# This will be used for serialization/deserialization.
|
|
41
|
+
#
|
|
42
|
+
def self.mapper()
|
|
43
|
+
{
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
serialized_name: 'Location',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'Composite',
|
|
49
|
+
class_name: 'Location',
|
|
50
|
+
model_properties: {
|
|
51
|
+
id: {
|
|
52
|
+
client_side_validation: true,
|
|
53
|
+
required: false,
|
|
54
|
+
read_only: true,
|
|
55
|
+
serialized_name: 'id',
|
|
56
|
+
type: {
|
|
57
|
+
name: 'String'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
location_name: {
|
|
61
|
+
client_side_validation: true,
|
|
62
|
+
required: false,
|
|
63
|
+
serialized_name: 'locationName',
|
|
64
|
+
type: {
|
|
65
|
+
name: 'String'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
document_endpoint: {
|
|
69
|
+
client_side_validation: true,
|
|
70
|
+
required: false,
|
|
71
|
+
read_only: true,
|
|
72
|
+
serialized_name: 'documentEndpoint',
|
|
73
|
+
type: {
|
|
74
|
+
name: 'String'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
provisioning_state: {
|
|
78
|
+
client_side_validation: true,
|
|
79
|
+
required: false,
|
|
80
|
+
serialized_name: 'provisioningState',
|
|
81
|
+
type: {
|
|
82
|
+
name: 'String'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
failover_priority: {
|
|
86
|
+
client_side_validation: true,
|
|
87
|
+
required: false,
|
|
88
|
+
serialized_name: 'failoverPriority',
|
|
89
|
+
constraints: {
|
|
90
|
+
InclusiveMinimum: 0
|
|
91
|
+
},
|
|
92
|
+
type: {
|
|
93
|
+
name: 'Number'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
# Metric data
|
|
10
|
+
#
|
|
11
|
+
class Metric
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [DateTime] The start time for the metric (ISO-8601 format).
|
|
16
|
+
attr_accessor :start_time
|
|
17
|
+
|
|
18
|
+
# @return [DateTime] The end time for the metric (ISO-8601 format).
|
|
19
|
+
attr_accessor :end_time
|
|
20
|
+
|
|
21
|
+
# @return [String] The time grain to be used to summarize the metric
|
|
22
|
+
# values.
|
|
23
|
+
attr_accessor :time_grain
|
|
24
|
+
|
|
25
|
+
# @return [UnitType] The unit of the metric. Possible values include:
|
|
26
|
+
# 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond',
|
|
27
|
+
# 'BytesPerSecond', 'Milliseconds'
|
|
28
|
+
attr_accessor :unit
|
|
29
|
+
|
|
30
|
+
# @return [MetricName] The name information for the metric.
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
# @return [Array<MetricValue>] The metric values for the specified time
|
|
34
|
+
# window and timestep.
|
|
35
|
+
attr_accessor :metric_values
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
# Mapper for Metric class as Ruby Hash.
|
|
40
|
+
# This will be used for serialization/deserialization.
|
|
41
|
+
#
|
|
42
|
+
def self.mapper()
|
|
43
|
+
{
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
serialized_name: 'Metric',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'Composite',
|
|
49
|
+
class_name: 'Metric',
|
|
50
|
+
model_properties: {
|
|
51
|
+
start_time: {
|
|
52
|
+
client_side_validation: true,
|
|
53
|
+
required: false,
|
|
54
|
+
read_only: true,
|
|
55
|
+
serialized_name: 'startTime',
|
|
56
|
+
type: {
|
|
57
|
+
name: 'DateTime'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
end_time: {
|
|
61
|
+
client_side_validation: true,
|
|
62
|
+
required: false,
|
|
63
|
+
read_only: true,
|
|
64
|
+
serialized_name: 'endTime',
|
|
65
|
+
type: {
|
|
66
|
+
name: 'DateTime'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
time_grain: {
|
|
70
|
+
client_side_validation: true,
|
|
71
|
+
required: false,
|
|
72
|
+
read_only: true,
|
|
73
|
+
serialized_name: 'timeGrain',
|
|
74
|
+
type: {
|
|
75
|
+
name: 'String'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
unit: {
|
|
79
|
+
client_side_validation: true,
|
|
80
|
+
required: false,
|
|
81
|
+
serialized_name: 'unit',
|
|
82
|
+
type: {
|
|
83
|
+
name: 'String'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
name: {
|
|
87
|
+
client_side_validation: true,
|
|
88
|
+
required: false,
|
|
89
|
+
read_only: true,
|
|
90
|
+
serialized_name: 'name',
|
|
91
|
+
type: {
|
|
92
|
+
name: 'Composite',
|
|
93
|
+
class_name: 'MetricName'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
metric_values: {
|
|
97
|
+
client_side_validation: true,
|
|
98
|
+
required: false,
|
|
99
|
+
read_only: true,
|
|
100
|
+
serialized_name: 'metricValues',
|
|
101
|
+
type: {
|
|
102
|
+
name: 'Sequence',
|
|
103
|
+
element: {
|
|
104
|
+
client_side_validation: true,
|
|
105
|
+
required: false,
|
|
106
|
+
serialized_name: 'MetricValueElementType',
|
|
107
|
+
type: {
|
|
108
|
+
name: 'Composite',
|
|
109
|
+
class_name: 'MetricValue'
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
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 availability of the metric.
|
|
10
|
+
#
|
|
11
|
+
class MetricAvailability
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] The time grain to be used to summarize the metric
|
|
16
|
+
# values.
|
|
17
|
+
attr_accessor :time_grain
|
|
18
|
+
|
|
19
|
+
# @return [String] The retention for the metric values.
|
|
20
|
+
attr_accessor :retention
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Mapper for MetricAvailability class as Ruby Hash.
|
|
25
|
+
# This will be used for serialization/deserialization.
|
|
26
|
+
#
|
|
27
|
+
def self.mapper()
|
|
28
|
+
{
|
|
29
|
+
client_side_validation: true,
|
|
30
|
+
required: false,
|
|
31
|
+
serialized_name: 'MetricAvailability',
|
|
32
|
+
type: {
|
|
33
|
+
name: 'Composite',
|
|
34
|
+
class_name: 'MetricAvailability',
|
|
35
|
+
model_properties: {
|
|
36
|
+
time_grain: {
|
|
37
|
+
client_side_validation: true,
|
|
38
|
+
required: false,
|
|
39
|
+
read_only: true,
|
|
40
|
+
serialized_name: 'timeGrain',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'String'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
retention: {
|
|
46
|
+
client_side_validation: true,
|
|
47
|
+
required: false,
|
|
48
|
+
read_only: true,
|
|
49
|
+
serialized_name: 'retention',
|
|
50
|
+
type: {
|
|
51
|
+
name: 'String'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -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::V2015_04_08
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The definition of a metric.
|
|
10
|
+
#
|
|
11
|
+
class MetricDefinition
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Array<MetricAvailability>] The list of metric availabilities
|
|
16
|
+
# for the account.
|
|
17
|
+
attr_accessor :metric_availabilities
|
|
18
|
+
|
|
19
|
+
# @return [PrimaryAggregationType] The primary aggregation type of the
|
|
20
|
+
# metric. Possible values include: 'None', 'Average', 'Total',
|
|
21
|
+
# 'Minimimum', 'Maximum', 'Last'
|
|
22
|
+
attr_accessor :primary_aggregation_type
|
|
23
|
+
|
|
24
|
+
# @return [UnitType] The unit of the metric. Possible values include:
|
|
25
|
+
# 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond',
|
|
26
|
+
# 'BytesPerSecond', 'Milliseconds'
|
|
27
|
+
attr_accessor :unit
|
|
28
|
+
|
|
29
|
+
# @return [String] The resource uri of the database.
|
|
30
|
+
attr_accessor :resource_uri
|
|
31
|
+
|
|
32
|
+
# @return [MetricName] The name information for the metric.
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Mapper for MetricDefinition class as Ruby Hash.
|
|
38
|
+
# This will be used for serialization/deserialization.
|
|
39
|
+
#
|
|
40
|
+
def self.mapper()
|
|
41
|
+
{
|
|
42
|
+
client_side_validation: true,
|
|
43
|
+
required: false,
|
|
44
|
+
serialized_name: 'MetricDefinition',
|
|
45
|
+
type: {
|
|
46
|
+
name: 'Composite',
|
|
47
|
+
class_name: 'MetricDefinition',
|
|
48
|
+
model_properties: {
|
|
49
|
+
metric_availabilities: {
|
|
50
|
+
client_side_validation: true,
|
|
51
|
+
required: false,
|
|
52
|
+
read_only: true,
|
|
53
|
+
serialized_name: 'metricAvailabilities',
|
|
54
|
+
type: {
|
|
55
|
+
name: 'Sequence',
|
|
56
|
+
element: {
|
|
57
|
+
client_side_validation: true,
|
|
58
|
+
required: false,
|
|
59
|
+
serialized_name: 'MetricAvailabilityElementType',
|
|
60
|
+
type: {
|
|
61
|
+
name: 'Composite',
|
|
62
|
+
class_name: 'MetricAvailability'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
primary_aggregation_type: {
|
|
68
|
+
client_side_validation: true,
|
|
69
|
+
required: false,
|
|
70
|
+
read_only: true,
|
|
71
|
+
serialized_name: 'primaryAggregationType',
|
|
72
|
+
type: {
|
|
73
|
+
name: 'String'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
unit: {
|
|
77
|
+
client_side_validation: true,
|
|
78
|
+
required: false,
|
|
79
|
+
serialized_name: 'unit',
|
|
80
|
+
type: {
|
|
81
|
+
name: 'String'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
resource_uri: {
|
|
85
|
+
client_side_validation: true,
|
|
86
|
+
required: false,
|
|
87
|
+
read_only: true,
|
|
88
|
+
serialized_name: 'resourceUri',
|
|
89
|
+
type: {
|
|
90
|
+
name: 'String'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
name: {
|
|
94
|
+
client_side_validation: true,
|
|
95
|
+
required: false,
|
|
96
|
+
read_only: true,
|
|
97
|
+
serialized_name: 'name',
|
|
98
|
+
type: {
|
|
99
|
+
name: 'Composite',
|
|
100
|
+
class_name: 'MetricName'
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
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 response to a list metric definitions request.
|
|
10
|
+
#
|
|
11
|
+
class MetricDefinitionsListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Array<MetricDefinition>] The list of metric definitions for
|
|
16
|
+
# the account.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
#
|
|
21
|
+
# Mapper for MetricDefinitionsListResult 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: 'MetricDefinitionsListResult',
|
|
29
|
+
type: {
|
|
30
|
+
name: 'Composite',
|
|
31
|
+
class_name: 'MetricDefinitionsListResult',
|
|
32
|
+
model_properties: {
|
|
33
|
+
value: {
|
|
34
|
+
client_side_validation: true,
|
|
35
|
+
required: false,
|
|
36
|
+
read_only: true,
|
|
37
|
+
serialized_name: 'value',
|
|
38
|
+
type: {
|
|
39
|
+
name: 'Sequence',
|
|
40
|
+
element: {
|
|
41
|
+
client_side_validation: true,
|
|
42
|
+
required: false,
|
|
43
|
+
serialized_name: 'MetricDefinitionElementType',
|
|
44
|
+
type: {
|
|
45
|
+
name: 'Composite',
|
|
46
|
+
class_name: 'MetricDefinition'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|