azure_mgmt_sql 0.10.0 → 0.11.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 +4 -4
- data/lib/generated/azure_mgmt_sql.rb +124 -41
- data/lib/generated/azure_mgmt_sql/capabilities.rb +115 -0
- data/lib/generated/azure_mgmt_sql/databases.rb +2877 -443
- data/lib/generated/azure_mgmt_sql/elastic_pools.rb +407 -30
- data/lib/generated/azure_mgmt_sql/failover_groups.rb +1143 -0
- data/lib/generated/azure_mgmt_sql/firewall_rules.rb +443 -0
- data/lib/generated/azure_mgmt_sql/models/authentication_type.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb +94 -0
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb +80 -0
- data/lib/generated/azure_mgmt_sql/models/{transparent_data_encryption_states.rb → blob_auditing_policy_state.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/capability_status.rb +18 -0
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_reason.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_request.rb +59 -0
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_response.rb +84 -0
- data/lib/generated/azure_mgmt_sql/models/create_mode.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_function.rb +20 -0
- data/lib/generated/azure_mgmt_sql/models/data_masking_policy.rb +131 -0
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule.rb +226 -0
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule_state.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/{server_state.rb → data_masking_state.rb} +4 -4
- data/lib/generated/azure_mgmt_sql/models/database.rb +115 -63
- data/lib/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +156 -0
- data/lib/generated/azure_mgmt_sql/models/{database_editions.rb → database_edition.rb} +4 -3
- data/lib/generated/azure_mgmt_sql/models/database_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb +179 -0
- data/lib/generated/azure_mgmt_sql/models/database_update.rb +464 -0
- data/lib/generated/azure_mgmt_sql/models/{database_metric.rb → database_usage.rb} +13 -11
- data/lib/generated/azure_mgmt_sql/models/{database_metric_list_result.rb → database_usage_list_result.rb} +10 -9
- data/lib/generated/azure_mgmt_sql/models/edition_capability.rb +79 -0
- data/lib/generated/azure_mgmt_sql/models/elastic_pool.rb +15 -14
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity.rb +12 -22
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb +12 -22
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb +143 -0
- data/lib/generated/azure_mgmt_sql/models/{elastic_pool_editions.rb → elastic_pool_edition.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +79 -0
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb +79 -0
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb +59 -0
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_update.rb +152 -0
- data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +137 -0
- data/lib/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_sql/models/export_request.rb +101 -0
- data/lib/generated/azure_mgmt_sql/models/failover_group.rb +171 -0
- data/lib/generated/azure_mgmt_sql/models/failover_group_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb +47 -0
- data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +58 -0
- data/lib/generated/azure_mgmt_sql/models/failover_group_replication_role.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/{server_firewall_rule.rb → firewall_rule.rb} +6 -5
- data/lib/generated/azure_mgmt_sql/models/{server_firewall_rule_list_result.rb → firewall_rule_list_result.rb} +9 -8
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb +105 -0
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_state.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/{table_type.rb → identity_type.rb} +4 -5
- data/lib/generated/azure_mgmt_sql/models/import_export_response.rb +158 -0
- data/lib/generated/azure_mgmt_sql/models/import_extension_request.rb +134 -0
- data/lib/generated/azure_mgmt_sql/models/import_request.rb +125 -0
- data/lib/generated/azure_mgmt_sql/models/location_capabilities.rb +80 -0
- data/lib/generated/azure_mgmt_sql/models/max_size_capability.rb +74 -0
- data/lib/generated/azure_mgmt_sql/models/max_size_units.rb +18 -0
- data/lib/generated/azure_mgmt_sql/models/metric.rb +114 -0
- data/lib/generated/azure_mgmt_sql/models/metric_availability.rb +57 -0
- data/lib/generated/azure_mgmt_sql/models/metric_definition.rb +104 -0
- data/lib/generated/azure_mgmt_sql/models/metric_definition_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_sql/models/metric_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_sql/models/metric_name.rb +57 -0
- data/lib/generated/azure_mgmt_sql/models/metric_value.rb +117 -0
- data/lib/generated/azure_mgmt_sql/models/operation.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/operation_display.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/operation_impact.rb +3 -2
- data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/partner_info.rb +68 -0
- data/lib/generated/azure_mgmt_sql/models/performance_level_unit.rb +15 -0
- data/lib/generated/azure_mgmt_sql/models/primary_aggregation_type.rb +20 -0
- data/lib/generated/azure_mgmt_sql/models/proxy_resource.rb +59 -0
- data/lib/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/read_scale.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/read_write_endpoint_failover_policy.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb +9 -29
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index.rb +13 -33
- data/lib/generated/azure_mgmt_sql/models/{recommended_index_actions.rb → recommended_index_action.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/{recommended_index_states.rb → recommended_index_state.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/{recommended_index_types.rb → recommended_index_type.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/recoverable_database.rb +104 -0
- data/lib/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_sql/models/replication_link.rb +3 -2
- data/lib/generated/azure_mgmt_sql/models/replication_link_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/replication_role.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/resource_identity.rb +69 -0
- data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database.rb +159 -0
- data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_sql/models/restore_point.rb +10 -30
- data/lib/generated/azure_mgmt_sql/models/restore_point_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_sql/models/{restore_point_types.rb → restore_point_type.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/sample_name.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_email_account_admins.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_state.rb +17 -0
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/server.rb +38 -56
- data/lib/generated/azure_mgmt_sql/models/server_administrator_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +94 -0
- data/lib/generated/azure_mgmt_sql/models/server_communication_link.rb +103 -0
- data/lib/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_sql/models/{schema.rb → server_connection_policy.rb} +33 -38
- data/lib/generated/azure_mgmt_sql/models/server_connection_type.rb +17 -0
- data/lib/generated/azure_mgmt_sql/models/server_key.rb +135 -0
- data/lib/generated/azure_mgmt_sql/models/server_key_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_sql/models/server_key_type.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/server_list_result.rb +48 -4
- data/lib/generated/azure_mgmt_sql/models/server_update.rb +106 -0
- data/lib/generated/azure_mgmt_sql/models/{server_metric.rb → server_usage.rb} +6 -5
- data/lib/generated/azure_mgmt_sql/models/{server_metric_list_result.rb → server_usage_list_result.rb} +9 -9
- data/lib/generated/azure_mgmt_sql/models/server_version_capability.rb +99 -0
- data/lib/generated/azure_mgmt_sql/models/service_objective.rb +3 -2
- data/lib/generated/azure_mgmt_sql/models/service_objective_capability.rb +127 -0
- data/lib/generated/azure_mgmt_sql/models/service_objective_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_name.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +3 -2
- data/lib/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/slo_usage_metric.rb +8 -3
- data/lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb +3 -2
- data/lib/generated/azure_mgmt_sql/models/storage_key_type.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/sub_resource.rb +54 -0
- data/lib/generated/azure_mgmt_sql/models/{column.rb → tracked_resource.rb} +19 -23
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +6 -5
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +4 -3
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_sql/models/{transparent_data_encryption_activity_states.rb → transparent_data_encryption_activity_status.rb} +3 -3
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_status.rb +16 -0
- data/lib/generated/azure_mgmt_sql/models/unit_definition_type.rb +20 -0
- data/lib/generated/azure_mgmt_sql/models/unit_type.rb +20 -0
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +69 -0
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_sql/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/operations.rb +109 -0
- data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +21 -22
- data/lib/generated/azure_mgmt_sql/recoverable_databases.rb +229 -0
- data/lib/generated/azure_mgmt_sql/restorable_dropped_databases.rb +229 -0
- data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +575 -0
- data/lib/generated/azure_mgmt_sql/server_communication_links.rb +496 -0
- data/lib/generated/azure_mgmt_sql/server_keys.rb +670 -0
- data/lib/generated/azure_mgmt_sql/servers.rb +1366 -257
- data/lib/generated/azure_mgmt_sql/sql_management_client.rb +44 -85
- data/lib/generated/azure_mgmt_sql/version.rb +2 -2
- data/lib/generated/azure_mgmt_sql/virtual_network_rules.rb +663 -0
- metadata +110 -27
- data/lib/generated/azure_mgmt_sql/models/server_version.rb +0 -16
- data/lib/generated/azure_mgmt_sql/models/table.rb +0 -131
- data/lib/generated/azure_mgmt_sql/models/target_elastic_pool_editions.rb +0 -17
- data/lib/generated/azure_mgmt_sql/models/upgrade_hint.rb +0 -54
- data/lib/generated/azure_mgmt_sql/models/upgrade_recommended_elastic_pool_properties.rb +0 -131
@@ -0,0 +1,80 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The capabilities for a location.
|
10
|
+
#
|
11
|
+
class LocationCapabilities
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The location name.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [CapabilityStatus] Azure SQL Database's status for the
|
20
|
+
# location. Possible values include: 'Visible', 'Available', 'Default',
|
21
|
+
# 'Disabled'
|
22
|
+
attr_accessor :status
|
23
|
+
|
24
|
+
# @return [Array<ServerVersionCapability>] The list of supported server
|
25
|
+
# versions.
|
26
|
+
attr_accessor :supported_server_versions
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for LocationCapabilities class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'LocationCapabilities',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'LocationCapabilities',
|
40
|
+
model_properties: {
|
41
|
+
name: {
|
42
|
+
required: false,
|
43
|
+
read_only: true,
|
44
|
+
serialized_name: 'name',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
status: {
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'status',
|
53
|
+
type: {
|
54
|
+
name: 'Enum',
|
55
|
+
module: 'CapabilityStatus'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
supported_server_versions: {
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'supportedServerVersions',
|
62
|
+
type: {
|
63
|
+
name: 'Sequence',
|
64
|
+
element: {
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'ServerVersionCapabilityElementType',
|
67
|
+
type: {
|
68
|
+
name: 'Composite',
|
69
|
+
class_name: 'ServerVersionCapability'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The maximum size limits for a database.
|
10
|
+
#
|
11
|
+
class MaxSizeCapability
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Integer] The maximum size of the database (see 'unit' for the
|
17
|
+
# units).
|
18
|
+
attr_accessor :limit
|
19
|
+
|
20
|
+
# @return [MaxSizeUnits] The units that the limit is expressed in.
|
21
|
+
# Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes',
|
22
|
+
# 'Petabytes'
|
23
|
+
attr_accessor :unit
|
24
|
+
|
25
|
+
# @return [CapabilityStatus] The status of the maximum size capability.
|
26
|
+
# Possible values include: 'Visible', 'Available', 'Default', 'Disabled'
|
27
|
+
attr_accessor :status
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for MaxSizeCapability class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'MaxSizeCapability',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'MaxSizeCapability',
|
41
|
+
model_properties: {
|
42
|
+
limit: {
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'limit',
|
46
|
+
type: {
|
47
|
+
name: 'Number'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
unit: {
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'unit',
|
54
|
+
type: {
|
55
|
+
name: 'Enum',
|
56
|
+
module: 'MaxSizeUnits'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
status: {
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'status',
|
63
|
+
type: {
|
64
|
+
name: 'Enum',
|
65
|
+
module: 'CapabilityStatus'
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for MaxSizeUnits
|
10
|
+
#
|
11
|
+
module MaxSizeUnits
|
12
|
+
Megabytes = "Megabytes"
|
13
|
+
Gigabytes = "Gigabytes"
|
14
|
+
Terabytes = "Terabytes"
|
15
|
+
Petabytes = "Petabytes"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Database metrics.
|
10
|
+
#
|
11
|
+
class Metric
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [DateTime] The start time for the metric (ISO-8601 format).
|
17
|
+
attr_accessor :start_time
|
18
|
+
|
19
|
+
# @return [DateTime] The end time for the metric (ISO-8601 format).
|
20
|
+
attr_accessor :end_time
|
21
|
+
|
22
|
+
# @return [String] The time step to be used to summarize the metric
|
23
|
+
# values.
|
24
|
+
attr_accessor :time_grain
|
25
|
+
|
26
|
+
# @return [UnitType] The unit of the metric. Possible values include:
|
27
|
+
# 'count', 'bytes', 'seconds', 'percent', 'countPerSecond',
|
28
|
+
# 'bytesPerSecond'
|
29
|
+
attr_accessor :unit
|
30
|
+
|
31
|
+
# @return [MetricName] The name information for the metric.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# @return [Array<MetricValue>] The metric values for the specified time
|
35
|
+
# window and timestep.
|
36
|
+
attr_accessor :metric_values
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for Metric class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'Metric',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'Metric',
|
50
|
+
model_properties: {
|
51
|
+
start_time: {
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'startTime',
|
55
|
+
type: {
|
56
|
+
name: 'DateTime'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
end_time: {
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'endTime',
|
63
|
+
type: {
|
64
|
+
name: 'DateTime'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
time_grain: {
|
68
|
+
required: false,
|
69
|
+
read_only: true,
|
70
|
+
serialized_name: 'timeGrain',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
unit: {
|
76
|
+
required: false,
|
77
|
+
read_only: true,
|
78
|
+
serialized_name: 'unit',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
name: {
|
84
|
+
required: false,
|
85
|
+
read_only: true,
|
86
|
+
serialized_name: 'name',
|
87
|
+
type: {
|
88
|
+
name: 'Composite',
|
89
|
+
class_name: 'MetricName'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
metric_values: {
|
93
|
+
required: false,
|
94
|
+
read_only: true,
|
95
|
+
serialized_name: 'metricValues',
|
96
|
+
type: {
|
97
|
+
name: 'Sequence',
|
98
|
+
element: {
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'MetricValueElementType',
|
101
|
+
type: {
|
102
|
+
name: 'Composite',
|
103
|
+
class_name: 'MetricValue'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A metric availability value.
|
10
|
+
#
|
11
|
+
class MetricAvailability
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The length of retention for the database metric.
|
17
|
+
attr_accessor :retention
|
18
|
+
|
19
|
+
# @return [String] The granularity of the database metric.
|
20
|
+
attr_accessor :time_grain
|
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
|
+
required: false,
|
30
|
+
serialized_name: 'MetricAvailability',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'MetricAvailability',
|
34
|
+
model_properties: {
|
35
|
+
retention: {
|
36
|
+
required: false,
|
37
|
+
read_only: true,
|
38
|
+
serialized_name: 'retention',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
time_grain: {
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'timeGrain',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A database metric definition.
|
10
|
+
#
|
11
|
+
class MetricDefinition
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [MetricName] The name information for the metric.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [PrimaryAggregationType] The primary aggregation type defining
|
20
|
+
# how metric values are displayed. Possible values include: 'None',
|
21
|
+
# 'Average', 'Count', 'Minimum', 'Maximum', 'Total'
|
22
|
+
attr_accessor :primary_aggregation_type
|
23
|
+
|
24
|
+
# @return [String] The resource uri of the database.
|
25
|
+
attr_accessor :resource_uri
|
26
|
+
|
27
|
+
# @return [UnitDefinitionType] The unit of the metric. Possible values
|
28
|
+
# include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond',
|
29
|
+
# 'BytesPerSecond'
|
30
|
+
attr_accessor :unit
|
31
|
+
|
32
|
+
# @return [Array<MetricAvailability>] The list of database metric
|
33
|
+
# availabities for the metric.
|
34
|
+
attr_accessor :metric_availabilities
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for MetricDefinition class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'MetricDefinition',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'MetricDefinition',
|
48
|
+
model_properties: {
|
49
|
+
name: {
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'name',
|
53
|
+
type: {
|
54
|
+
name: 'Composite',
|
55
|
+
class_name: 'MetricName'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
primary_aggregation_type: {
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'primaryAggregationType',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
resource_uri: {
|
67
|
+
required: false,
|
68
|
+
read_only: true,
|
69
|
+
serialized_name: 'resourceUri',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
unit: {
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'unit',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
metric_availabilities: {
|
83
|
+
required: false,
|
84
|
+
read_only: true,
|
85
|
+
serialized_name: 'metricAvailabilities',
|
86
|
+
type: {
|
87
|
+
name: 'Sequence',
|
88
|
+
element: {
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'MetricAvailabilityElementType',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'MetricAvailability'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|