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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_resources.rb +0 -0
  3. data/lib/generated/azure_mgmt_resources/deployment_operations.rb +0 -0
  4. data/lib/generated/azure_mgmt_resources/deployments.rb +0 -0
  5. data/lib/generated/azure_mgmt_resources/models/alias_path_type.rb +0 -0
  6. data/lib/generated/azure_mgmt_resources/models/alias_type.rb +0 -0
  7. data/lib/generated/azure_mgmt_resources/models/basic_dependency.rb +0 -0
  8. data/lib/generated/azure_mgmt_resources/models/debug_setting.rb +0 -0
  9. data/lib/generated/azure_mgmt_resources/models/dependency.rb +0 -0
  10. data/lib/generated/azure_mgmt_resources/models/deployment.rb +0 -0
  11. data/lib/generated/azure_mgmt_resources/models/deployment_export_result.rb +0 -0
  12. data/lib/generated/azure_mgmt_resources/models/deployment_extended.rb +0 -0
  13. data/lib/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +0 -0
  14. data/lib/generated/azure_mgmt_resources/models/deployment_list_result.rb +0 -0
  15. data/lib/generated/azure_mgmt_resources/models/deployment_mode.rb +0 -0
  16. data/lib/generated/azure_mgmt_resources/models/deployment_operation.rb +0 -0
  17. data/lib/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +0 -0
  18. data/lib/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +0 -0
  19. data/lib/generated/azure_mgmt_resources/models/deployment_properties.rb +0 -0
  20. data/lib/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +0 -0
  21. data/lib/generated/azure_mgmt_resources/models/deployment_validate_result.rb +0 -0
  22. data/lib/generated/azure_mgmt_resources/models/export_template_request.rb +0 -0
  23. data/lib/generated/azure_mgmt_resources/models/generic_resource.rb +0 -0
  24. data/lib/generated/azure_mgmt_resources/models/generic_resource_filter.rb +0 -0
  25. data/lib/generated/azure_mgmt_resources/models/http_message.rb +0 -0
  26. data/lib/generated/azure_mgmt_resources/models/identity.rb +0 -0
  27. data/lib/generated/azure_mgmt_resources/models/parameters_link.rb +0 -0
  28. data/lib/generated/azure_mgmt_resources/models/plan.rb +0 -0
  29. data/lib/generated/azure_mgmt_resources/models/provider.rb +0 -0
  30. data/lib/generated/azure_mgmt_resources/models/provider_list_result.rb +0 -0
  31. data/lib/generated/azure_mgmt_resources/models/provider_resource_type.rb +0 -0
  32. data/lib/generated/azure_mgmt_resources/models/resource_group.rb +0 -0
  33. data/lib/generated/azure_mgmt_resources/models/resource_group_export_result.rb +0 -0
  34. data/lib/generated/azure_mgmt_resources/models/resource_group_filter.rb +0 -0
  35. data/lib/generated/azure_mgmt_resources/models/resource_group_list_result.rb +0 -0
  36. data/lib/generated/azure_mgmt_resources/models/resource_group_properties.rb +0 -0
  37. data/lib/generated/azure_mgmt_resources/models/resource_identity_type.rb +0 -0
  38. data/lib/generated/azure_mgmt_resources/models/resource_list_result.rb +0 -0
  39. data/lib/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +0 -0
  40. data/lib/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +0 -0
  41. data/lib/generated/azure_mgmt_resources/models/resources_move_info.rb +0 -0
  42. data/lib/generated/azure_mgmt_resources/models/sku.rb +0 -0
  43. data/lib/generated/azure_mgmt_resources/models/tag_count.rb +0 -0
  44. data/lib/generated/azure_mgmt_resources/models/tag_details.rb +0 -0
  45. data/lib/generated/azure_mgmt_resources/models/tag_value.rb +0 -0
  46. data/lib/generated/azure_mgmt_resources/models/tags_list_result.rb +0 -0
  47. data/lib/generated/azure_mgmt_resources/models/target_resource.rb +0 -0
  48. data/lib/generated/azure_mgmt_resources/models/template_link.rb +0 -0
  49. data/lib/generated/azure_mgmt_resources/module_definition.rb +0 -0
  50. data/lib/generated/azure_mgmt_resources/providers.rb +0 -0
  51. data/lib/generated/azure_mgmt_resources/resource_groups.rb +0 -0
  52. data/lib/generated/azure_mgmt_resources/resource_management_client.rb +0 -0
  53. data/lib/generated/azure_mgmt_resources/resources.rb +173 -5
  54. data/lib/generated/azure_mgmt_resources/tags.rb +0 -0
  55. data/lib/generated/azure_mgmt_resources/version.rb +1 -1
  56. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b40f98a213a07268fe6ff733c2a6e2d9a4fbf5be
4
- data.tar.gz: 1ac9d7b7b2f75f522e4356e41671bedb81429fec
3
+ metadata.gz: 611731fa0c0a9dd2c55845dfc0e00774bef826e1
4
+ data.tar.gz: 41bde580c0dce83aadcfec04b6030d7ae7d0499d
5
5
  SHA512:
6
- metadata.gz: 203c9ae5f1a1be27220db3d0e4fed0f5327a4c9c563d093a69c6c9942370e6260c98ff4b8785de4a581f3dc2872a2f17b2f1d721a9acd7c73454f3b2a5d4c0ac
7
- data.tar.gz: aef592fd3ff372a3cb9c11c31ce209eae0b2c0e3dcfe28b2e7e46539c7bb99c02bab41b49c74cd9a99bbee9cfc152406394d70ea1cfcf88662fa30b3b9ba8319
6
+ metadata.gz: 2b890c533375049e5747964a2169590998b316ed897fa4080028ad928dcc493ca55c92ebf6aecdb1f18a68890f7fdf6dfc2f6075a77feb9fef59684c594e8a39
7
+ data.tar.gz: e5c4fb0485410a2acf852569ce40ca45b8c4e7d882fba9b0ca131d8b7c273f4ece28d6bacec949e6e5479902f3af2c4a5de777cf7ded4d6c6ea89d6d98697082
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 rsources to move.
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 rsources to move.
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 rsources to move.
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 rsources to move.
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 rsources to move.
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
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Resources
7
- VERSION = '0.11.0'
7
+ VERSION = '0.12.0'
8
8
  end
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.11.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-07-19 00:00:00.000000000 Z
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.8.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.8.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: []