azure_mgmt_sql 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_sql.rb +61 -56
- data/lib/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +1 -1
- data/lib/generated/azure_mgmt_sql/capabilities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/data_masking_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/data_masking_rules.rb +1 -1
- data/lib/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/database_operations.rb +335 -0
- data/lib/generated/azure_mgmt_sql/database_threat_detection_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/database_usages.rb +1 -1
- data/lib/generated/azure_mgmt_sql/databases.rb +1 -1
- data/lib/generated/azure_mgmt_sql/elastic_pool_activities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/elastic_pools.rb +1 -1
- data/lib/generated/azure_mgmt_sql/encryption_protectors.rb +1 -1
- data/lib/generated/azure_mgmt_sql/failover_groups.rb +1 -1
- data/lib/generated/azure_mgmt_sql/firewall_rules.rb +1 -1
- data/lib/generated/azure_mgmt_sql/geo_backup_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/authentication_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/backup_long_term_retention_vault.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/blob_auditing_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/capability_status.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_reason.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/check_name_availability_response.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/create_mode.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_function.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_rule_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/data_masking_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_blob_auditing_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_edition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_operation.rb +183 -0
- data/lib/generated/azure_mgmt_sql/models/database_operation_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_sql/models/database_security_alert_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_usage.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/database_usage_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/edition_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_activity_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_dtu_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_edition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_edition_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_max_dtu_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_per_database_min_dtu_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/elastic_pool_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/encryption_protector.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/encryption_protector_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/export_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_read_only_endpoint.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_read_write_endpoint.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_replication_role.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/failover_group_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/firewall_rule.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/firewall_rule_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/geo_backup_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/identity_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/import_export_response.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/import_extension_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/import_request.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/location_capabilities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/management_operation_state.rb +20 -0
- data/lib/generated/azure_mgmt_sql/models/max_size_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/max_size_units.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_availability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_definition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_definition_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_name.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/metric_value.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_display.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_impact.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/operation_origin.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/partner_info.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/performance_level_unit.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/primary_aggregation_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/proxy_resource.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/read_only_endpoint_failover_policy.rb +1 -1
- 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 +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_metrics_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_elastic_pool_metric.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index_action.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recommended_index_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recoverable_database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/recoverable_database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_link.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/replication_link_list_result.rb +1 -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 +1 -1
- data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restorable_dropped_database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restore_point.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restore_point_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/restore_point_type.rb +1 -1
- 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 +1 -1
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/security_alert_policy_use_server_default.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_administrator_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_azure_adadministrator.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_communication_link.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_communication_link_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_connection_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_connection_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_key.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_key_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_key_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_update.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_usage.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_usage_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/server_version_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_capability.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_objective_name.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_tier_advisor.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/service_tier_advisor_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/slo_usage_metric.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/storage_key_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_key_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_linked_database_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_agent_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_conflict_resolution_policy.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_database_id_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_database_id_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_direction.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_properties_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_full_schema_table_column.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_log_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_log_properties.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_log_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_schema.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_schema_table_column.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_group_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member_db_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/sync_member_state.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/tracked_resource.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_activity_status.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/transparent_data_encryption_status.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/unit_definition_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/unit_type.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule.rb +25 -1
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_sql/models/virtual_network_rule_state.rb +19 -0
- data/lib/generated/azure_mgmt_sql/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_sql/operations.rb +1 -1
- data/lib/generated/azure_mgmt_sql/recommended_elastic_pools.rb +1 -1
- data/lib/generated/azure_mgmt_sql/recoverable_databases.rb +1 -1
- data/lib/generated/azure_mgmt_sql/replication_links.rb +1 -1
- data/lib/generated/azure_mgmt_sql/restorable_dropped_databases.rb +1 -1
- data/lib/generated/azure_mgmt_sql/restore_points.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_azure_adadministrators.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_communication_links.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_connection_policies.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_keys.rb +1 -1
- data/lib/generated/azure_mgmt_sql/server_usages.rb +1 -1
- data/lib/generated/azure_mgmt_sql/servers.rb +1 -1
- data/lib/generated/azure_mgmt_sql/service_objectives.rb +1 -1
- data/lib/generated/azure_mgmt_sql/service_tier_advisors.rb +1 -1
- data/lib/generated/azure_mgmt_sql/sql_management_client.rb +5 -1
- data/lib/generated/azure_mgmt_sql/sync_agents.rb +1 -1
- data/lib/generated/azure_mgmt_sql/sync_groups.rb +1 -1
- data/lib/generated/azure_mgmt_sql/sync_members.rb +1 -1
- data/lib/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +1 -1
- data/lib/generated/azure_mgmt_sql/transparent_data_encryptions.rb +1 -1
- data/lib/generated/azure_mgmt_sql/version.rb +2 -2
- data/lib/generated/azure_mgmt_sql/virtual_network_rules.rb +1 -1
- metadata +7 -2
@@ -0,0 +1,183 @@
|
|
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::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A database operation.
|
10
|
+
#
|
11
|
+
class DatabaseOperation < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The name of the database the operation is being
|
17
|
+
# performed on.
|
18
|
+
attr_accessor :database_name
|
19
|
+
|
20
|
+
# @return [String] The name of operation.
|
21
|
+
attr_accessor :operation
|
22
|
+
|
23
|
+
# @return [String] The friendly name of operation.
|
24
|
+
attr_accessor :operation_friendly_name
|
25
|
+
|
26
|
+
# @return [Integer] The percentage of the operation completed.
|
27
|
+
attr_accessor :percent_complete
|
28
|
+
|
29
|
+
# @return [String] The name of the server.
|
30
|
+
attr_accessor :server_name
|
31
|
+
|
32
|
+
# @return [DateTime] The operation start time.
|
33
|
+
attr_accessor :start_time
|
34
|
+
|
35
|
+
# @return [ManagementOperationState] The operation state. Possible values
|
36
|
+
# include: 'Pending', 'InProgress', 'Succeeded', 'Failed',
|
37
|
+
# 'CancelInProgress', 'Cancelled'
|
38
|
+
attr_accessor :state
|
39
|
+
|
40
|
+
# @return [Integer] The operation error code.
|
41
|
+
attr_accessor :error_code
|
42
|
+
|
43
|
+
# @return [String] The operation error description.
|
44
|
+
attr_accessor :error_description
|
45
|
+
|
46
|
+
# @return [Integer] The operation error severity.
|
47
|
+
attr_accessor :error_severity
|
48
|
+
|
49
|
+
# @return [Boolean] Whether or not the error is a user error.
|
50
|
+
attr_accessor :is_user_error
|
51
|
+
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for DatabaseOperation class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'DatabaseOperation',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'DatabaseOperation',
|
64
|
+
model_properties: {
|
65
|
+
id: {
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'id',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
name: {
|
74
|
+
required: false,
|
75
|
+
read_only: true,
|
76
|
+
serialized_name: 'name',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
type: {
|
82
|
+
required: false,
|
83
|
+
read_only: true,
|
84
|
+
serialized_name: 'type',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
},
|
89
|
+
database_name: {
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'properties.databaseName',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
},
|
97
|
+
operation: {
|
98
|
+
required: false,
|
99
|
+
read_only: true,
|
100
|
+
serialized_name: 'properties.operation',
|
101
|
+
type: {
|
102
|
+
name: 'String'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
operation_friendly_name: {
|
106
|
+
required: false,
|
107
|
+
read_only: true,
|
108
|
+
serialized_name: 'properties.operationFriendlyName',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
percent_complete: {
|
114
|
+
required: false,
|
115
|
+
read_only: true,
|
116
|
+
serialized_name: 'properties.percentComplete',
|
117
|
+
type: {
|
118
|
+
name: 'Number'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
server_name: {
|
122
|
+
required: false,
|
123
|
+
read_only: true,
|
124
|
+
serialized_name: 'properties.serverName',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
start_time: {
|
130
|
+
required: false,
|
131
|
+
read_only: true,
|
132
|
+
serialized_name: 'properties.startTime',
|
133
|
+
type: {
|
134
|
+
name: 'DateTime'
|
135
|
+
}
|
136
|
+
},
|
137
|
+
state: {
|
138
|
+
required: false,
|
139
|
+
read_only: true,
|
140
|
+
serialized_name: 'properties.state',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
},
|
145
|
+
error_code: {
|
146
|
+
required: false,
|
147
|
+
read_only: true,
|
148
|
+
serialized_name: 'properties.errorCode',
|
149
|
+
type: {
|
150
|
+
name: 'Number'
|
151
|
+
}
|
152
|
+
},
|
153
|
+
error_description: {
|
154
|
+
required: false,
|
155
|
+
read_only: true,
|
156
|
+
serialized_name: 'properties.errorDescription',
|
157
|
+
type: {
|
158
|
+
name: 'String'
|
159
|
+
}
|
160
|
+
},
|
161
|
+
error_severity: {
|
162
|
+
required: false,
|
163
|
+
read_only: true,
|
164
|
+
serialized_name: 'properties.errorSeverity',
|
165
|
+
type: {
|
166
|
+
name: 'Number'
|
167
|
+
}
|
168
|
+
},
|
169
|
+
is_user_error: {
|
170
|
+
required: false,
|
171
|
+
read_only: true,
|
172
|
+
serialized_name: 'properties.isUserError',
|
173
|
+
type: {
|
174
|
+
name: 'Boolean'
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
@@ -0,0 +1,96 @@
|
|
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::ARM::SQL
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response to a list database operations request
|
10
|
+
#
|
11
|
+
class DatabaseOperationListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<DatabaseOperation>] Array of results.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to retrieve next page of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<DatabaseOperation>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [DatabaseOperationListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for DatabaseOperationListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'DatabaseOperationListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'DatabaseOperationListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
read_only: true,
|
69
|
+
serialized_name: 'value',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'DatabaseOperationElementType',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'DatabaseOperation'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
read_only: true,
|
85
|
+
serialized_name: 'nextLink',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|