azure_mgmt_resources 0.11.0 → 0.12.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_resources.rb +0 -0
- data/lib/generated/azure_mgmt_resources/deployment_operations.rb +0 -0
- data/lib/generated/azure_mgmt_resources/deployments.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/alias_type.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/dependency.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_mode.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/http_message.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/identity.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/plan.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/provider.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/sku.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/tag_count.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/tag_details.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/tag_value.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/target_resource.rb +0 -0
- data/lib/generated/azure_mgmt_resources/models/template_link.rb +0 -0
- data/lib/generated/azure_mgmt_resources/module_definition.rb +0 -0
- data/lib/generated/azure_mgmt_resources/providers.rb +0 -0
- data/lib/generated/azure_mgmt_resources/resource_groups.rb +0 -0
- data/lib/generated/azure_mgmt_resources/resource_management_client.rb +0 -0
- data/lib/generated/azure_mgmt_resources/resources.rb +173 -5
- data/lib/generated/azure_mgmt_resources/tags.rb +0 -0
- data/lib/generated/azure_mgmt_resources/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 611731fa0c0a9dd2c55845dfc0e00774bef826e1
|
4
|
+
data.tar.gz: 41bde580c0dce83aadcfec04b6030d7ae7d0499d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b890c533375049e5747964a2169590998b316ed897fa4080028ad928dcc493ca55c92ebf6aecdb1f18a68890f7fdf6dfc2f6075a77feb9fef59684c594e8a39
|
7
|
+
data.tar.gz: e5c4fb0485410a2acf852569ce40ca45b8c4e7d882fba9b0ca131d8b7c273f4ece28d6bacec949e6e5479902f3af2c4a5de777cf7ded4d6c6ea89d6d98697082
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -133,7 +133,7 @@ module Azure::ARM::Resources
|
|
133
133
|
# move completes.
|
134
134
|
#
|
135
135
|
# @param source_resource_group_name [String] The name of the resource group
|
136
|
-
# containing the
|
136
|
+
# containing the resources to move.
|
137
137
|
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
138
138
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
139
|
# will be added to the HTTP request.
|
@@ -145,7 +145,7 @@ module Azure::ARM::Resources
|
|
145
145
|
|
146
146
|
#
|
147
147
|
# @param source_resource_group_name [String] The name of the resource group
|
148
|
-
# containing the
|
148
|
+
# containing the resources to move.
|
149
149
|
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
150
150
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
151
|
# will be added to the HTTP request.
|
@@ -169,6 +169,55 @@ module Azure::ARM::Resources
|
|
169
169
|
promise
|
170
170
|
end
|
171
171
|
|
172
|
+
#
|
173
|
+
# Validates whether resources can be moved from one resource group to another
|
174
|
+
# resource group.
|
175
|
+
#
|
176
|
+
# This operation checks whether the specified resources can be moved to the
|
177
|
+
# target. The resources to move must be in the same source resource group. The
|
178
|
+
# target resource group may be in a different subscription. If validation
|
179
|
+
# succeeds, it returns HTTP response code 204 (no content). If validation
|
180
|
+
# fails, it returns HTTP response code 409 (Conflict) with an error message.
|
181
|
+
# Retrieve the URL in the Location header value to check the result of the
|
182
|
+
# long-running operation.
|
183
|
+
#
|
184
|
+
# @param source_resource_group_name [String] The name of the resource group
|
185
|
+
# containing the resources to validate for move.
|
186
|
+
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
187
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
188
|
+
# will be added to the HTTP request.
|
189
|
+
#
|
190
|
+
def validate_move_resources(source_resource_group_name, parameters, custom_headers = nil)
|
191
|
+
response = validate_move_resources_async(source_resource_group_name, parameters, custom_headers).value!
|
192
|
+
nil
|
193
|
+
end
|
194
|
+
|
195
|
+
#
|
196
|
+
# @param source_resource_group_name [String] The name of the resource group
|
197
|
+
# containing the resources to validate for move.
|
198
|
+
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
199
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
200
|
+
# will be added to the HTTP request.
|
201
|
+
#
|
202
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
203
|
+
# response.
|
204
|
+
#
|
205
|
+
def validate_move_resources_async(source_resource_group_name, parameters, custom_headers = nil)
|
206
|
+
# Send request
|
207
|
+
promise = begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers)
|
208
|
+
|
209
|
+
promise = promise.then do |response|
|
210
|
+
# Defining deserialization method.
|
211
|
+
deserialize_method = lambda do |parsed_response|
|
212
|
+
end
|
213
|
+
|
214
|
+
# Waiting for response.
|
215
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
216
|
+
end
|
217
|
+
|
218
|
+
promise
|
219
|
+
end
|
220
|
+
|
172
221
|
#
|
173
222
|
# Get all the resources in a subscription.
|
174
223
|
#
|
@@ -873,7 +922,7 @@ module Azure::ARM::Resources
|
|
873
922
|
# move completes.
|
874
923
|
#
|
875
924
|
# @param source_resource_group_name [String] The name of the resource group
|
876
|
-
# containing the
|
925
|
+
# containing the resources to move.
|
877
926
|
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
878
927
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
879
928
|
# will be added to the HTTP request.
|
@@ -894,7 +943,7 @@ module Azure::ARM::Resources
|
|
894
943
|
# move completes.
|
895
944
|
#
|
896
945
|
# @param source_resource_group_name [String] The name of the resource group
|
897
|
-
# containing the
|
946
|
+
# containing the resources to move.
|
898
947
|
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
899
948
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
900
949
|
# will be added to the HTTP request.
|
@@ -915,7 +964,7 @@ module Azure::ARM::Resources
|
|
915
964
|
# move completes.
|
916
965
|
#
|
917
966
|
# @param source_resource_group_name [String] The name of the resource group
|
918
|
-
# containing the
|
967
|
+
# containing the resources to move.
|
919
968
|
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
920
969
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
921
970
|
# to the HTTP request.
|
@@ -973,6 +1022,125 @@ module Azure::ARM::Resources
|
|
973
1022
|
promise.execute
|
974
1023
|
end
|
975
1024
|
|
1025
|
+
#
|
1026
|
+
# Validates whether resources can be moved from one resource group to another
|
1027
|
+
# resource group.
|
1028
|
+
#
|
1029
|
+
# This operation checks whether the specified resources can be moved to the
|
1030
|
+
# target. The resources to move must be in the same source resource group. The
|
1031
|
+
# target resource group may be in a different subscription. If validation
|
1032
|
+
# succeeds, it returns HTTP response code 204 (no content). If validation
|
1033
|
+
# fails, it returns HTTP response code 409 (Conflict) with an error message.
|
1034
|
+
# Retrieve the URL in the Location header value to check the result of the
|
1035
|
+
# long-running operation.
|
1036
|
+
#
|
1037
|
+
# @param source_resource_group_name [String] The name of the resource group
|
1038
|
+
# containing the resources to validate for move.
|
1039
|
+
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
1040
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1041
|
+
# will be added to the HTTP request.
|
1042
|
+
#
|
1043
|
+
#
|
1044
|
+
def begin_validate_move_resources(source_resource_group_name, parameters, custom_headers = nil)
|
1045
|
+
response = begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers).value!
|
1046
|
+
nil
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
#
|
1050
|
+
# Validates whether resources can be moved from one resource group to another
|
1051
|
+
# resource group.
|
1052
|
+
#
|
1053
|
+
# This operation checks whether the specified resources can be moved to the
|
1054
|
+
# target. The resources to move must be in the same source resource group. The
|
1055
|
+
# target resource group may be in a different subscription. If validation
|
1056
|
+
# succeeds, it returns HTTP response code 204 (no content). If validation
|
1057
|
+
# fails, it returns HTTP response code 409 (Conflict) with an error message.
|
1058
|
+
# Retrieve the URL in the Location header value to check the result of the
|
1059
|
+
# long-running operation.
|
1060
|
+
#
|
1061
|
+
# @param source_resource_group_name [String] The name of the resource group
|
1062
|
+
# containing the resources to validate for move.
|
1063
|
+
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
1064
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1065
|
+
# will be added to the HTTP request.
|
1066
|
+
#
|
1067
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1068
|
+
#
|
1069
|
+
def begin_validate_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers = nil)
|
1070
|
+
begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers).value!
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
#
|
1074
|
+
# Validates whether resources can be moved from one resource group to another
|
1075
|
+
# resource group.
|
1076
|
+
#
|
1077
|
+
# This operation checks whether the specified resources can be moved to the
|
1078
|
+
# target. The resources to move must be in the same source resource group. The
|
1079
|
+
# target resource group may be in a different subscription. If validation
|
1080
|
+
# succeeds, it returns HTTP response code 204 (no content). If validation
|
1081
|
+
# fails, it returns HTTP response code 409 (Conflict) with an error message.
|
1082
|
+
# Retrieve the URL in the Location header value to check the result of the
|
1083
|
+
# long-running operation.
|
1084
|
+
#
|
1085
|
+
# @param source_resource_group_name [String] The name of the resource group
|
1086
|
+
# containing the resources to validate for move.
|
1087
|
+
# @param parameters [ResourcesMoveInfo] Parameters for moving resources.
|
1088
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1089
|
+
# to the HTTP request.
|
1090
|
+
#
|
1091
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1092
|
+
#
|
1093
|
+
def begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers = nil)
|
1094
|
+
fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil?
|
1095
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1096
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1097
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1098
|
+
|
1099
|
+
|
1100
|
+
request_headers = {}
|
1101
|
+
|
1102
|
+
# Set Headers
|
1103
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1104
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1105
|
+
|
1106
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1107
|
+
|
1108
|
+
# Serialize Request
|
1109
|
+
request_mapper = Azure::ARM::Resources::Models::ResourcesMoveInfo.mapper()
|
1110
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1111
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1112
|
+
|
1113
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources'
|
1114
|
+
|
1115
|
+
request_url = @base_url || @client.base_url
|
1116
|
+
|
1117
|
+
options = {
|
1118
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1119
|
+
path_params: {'sourceResourceGroupName' => source_resource_group_name,'subscriptionId' => @client.subscription_id},
|
1120
|
+
query_params: {'api-version' => @client.api_version},
|
1121
|
+
body: request_content,
|
1122
|
+
headers: request_headers.merge(custom_headers || {}),
|
1123
|
+
base_url: request_url
|
1124
|
+
}
|
1125
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1126
|
+
|
1127
|
+
promise = promise.then do |result|
|
1128
|
+
http_response = result.response
|
1129
|
+
status_code = http_response.status
|
1130
|
+
response_content = http_response.body
|
1131
|
+
unless status_code == 202 || status_code == 204 || status_code == 409
|
1132
|
+
error_model = JSON.load(response_content)
|
1133
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1137
|
+
|
1138
|
+
result
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
promise.execute
|
1142
|
+
end
|
1143
|
+
|
976
1144
|
#
|
977
1145
|
# Deletes a resource.
|
978
1146
|
#
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.9.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.9.0
|
83
83
|
description: Microsoft Azure Resource Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|