azure_mgmt_resources 0.18.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  3. data/lib/2016-06-01/generated/azure_mgmt_resources/subscription_client.rb +1 -1
  4. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  5. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  6. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  7. data/lib/2018-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  8. data/lib/2018-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  9. data/lib/2018-06-01/generated/azure_mgmt_resources/application_client.rb +1 -1
  10. data/lib/2019-03-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  11. data/lib/2019-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  12. data/lib/2019-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  13. data/lib/2019-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  14. data/lib/2019-10-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  15. data/lib/2020-06-01/generated/azure_mgmt_resources.rb +8 -6
  16. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_properties.rb +15 -0
  17. data/lib/2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb +9 -0
  18. data/lib/2020-06-01/generated/azure_mgmt_resources/models/error_response.rb +5 -1
  19. data/lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options.rb +49 -0
  20. data/lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options_scope_type.rb +17 -0
  21. data/lib/2020-06-01/generated/azure_mgmt_resources/providers.rb +87 -0
  22. data/lib/2020-06-01/generated/azure_mgmt_resources/resource_groups.rb +25 -10
  23. data/lib/2020-06-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
  24. data/lib/profiles/latest/modules/resources_profile_module.rb +246 -166
  25. data/lib/version.rb +1 -1
  26. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af868279dd32587185634a2e5fa3aee89e0ac23e6642533de3f9c190247b46db
4
- data.tar.gz: a400feac44156dcca7c40f6db09f1c3a5eae3133837d3d38cd120256292c8718
3
+ metadata.gz: 677ed39ab03553e00c7de64b956216905f13c87f0dc569691f0ee579d298ee32
4
+ data.tar.gz: 5e53da440bcff8ea44116d663daf2de5da5be3ef94121ebc86be7e4d63d51771
5
5
  SHA512:
6
- metadata.gz: 116049a1377e412188af51204d29d582aa4e40b65e682acf8f6995e1ad8fb15d427e9a77b241c7db99304d3cdb95ea309a12d9c6852660460cc44cccd8245478
7
- data.tar.gz: c27debbf9b504a19612fefec954951221079903111c7be205b182c4a5059e13177cf6c5d7418b5b2aadd2176d3a4b1c27aee1871590b789d42ba9c4f59a894b4
6
+ metadata.gz: ae4d5c1d5f304f315d592f6cb3a7e61378ebedf72d4b44a4c90091a8aedbb0e0deaa8e812cfd679c97d5a4f093bfd5f02b96c048cdeba9d9e4349a2be99dbd8f
7
+ data.tar.gz: e1d4326b2949cbd8c229322dc6f1fd056ce06e4e5202819471df8e47748eb7365e5ba972f1b891951deaab05168e946da65b69d1d26ae7a6729949a9a2ca692b
@@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2016_02_01
144
144
  #
145
145
  def add_telemetry
146
146
  sdk_information = 'azure_mgmt_resources'
147
- sdk_information = "#{sdk_information}/0.18.1"
147
+ sdk_information = "#{sdk_information}/0.18.2"
148
148
  add_user_agent_information(sdk_information)
149
149
  end
150
150
  end
@@ -129,7 +129,7 @@ module Azure::Resources::Mgmt::V2016_06_01
129
129
  #
130
130
  def add_telemetry
131
131
  sdk_information = 'azure_mgmt_resources'
132
- sdk_information = "#{sdk_information}/0.18.1"
132
+ sdk_information = "#{sdk_information}/0.18.2"
133
133
  add_user_agent_information(sdk_information)
134
134
  end
135
135
  end
@@ -146,7 +146,7 @@ module Azure::Resources::Mgmt::V2016_07_01
146
146
  #
147
147
  def add_telemetry
148
148
  sdk_information = 'azure_mgmt_resources'
149
- sdk_information = "#{sdk_information}/0.18.1"
149
+ sdk_information = "#{sdk_information}/0.18.2"
150
150
  add_user_agent_information(sdk_information)
151
151
  end
152
152
  end
@@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2016_09_01
144
144
  #
145
145
  def add_telemetry
146
146
  sdk_information = 'azure_mgmt_resources'
147
- sdk_information = "#{sdk_information}/0.18.1"
147
+ sdk_information = "#{sdk_information}/0.18.2"
148
148
  add_user_agent_information(sdk_information)
149
149
  end
150
150
  end
@@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2017_05_10
144
144
  #
145
145
  def add_telemetry
146
146
  sdk_information = 'azure_mgmt_resources'
147
- sdk_information = "#{sdk_information}/0.18.1"
147
+ sdk_information = "#{sdk_information}/0.18.2"
148
148
  add_user_agent_information(sdk_information)
149
149
  end
150
150
  end
@@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2018_02_01
144
144
  #
145
145
  def add_telemetry
146
146
  sdk_information = 'azure_mgmt_resources'
147
- sdk_information = "#{sdk_information}/0.18.1"
147
+ sdk_information = "#{sdk_information}/0.18.2"
148
148
  add_user_agent_information(sdk_information)
149
149
  end
150
150
  end
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2018_05_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -128,7 +128,7 @@ module Azure::Resources::Mgmt::V2018_06_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_resources'
131
- sdk_information = "#{sdk_information}/0.18.1"
131
+ sdk_information = "#{sdk_information}/0.18.2"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_03_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_05_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_05_10
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_07_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_10_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -30,14 +30,15 @@ module Azure::Resources::Mgmt::V2020_06_01
30
30
  autoload :ResourceManagementClient, '2020-06-01/generated/azure_mgmt_resources/resource_management_client.rb'
31
31
 
32
32
  module Models
33
+ autoload :Plan, '2020-06-01/generated/azure_mgmt_resources/models/plan.rb'
33
34
  autoload :Sku, '2020-06-01/generated/azure_mgmt_resources/models/sku.rb'
34
- autoload :DeploymentExtendedFilter, '2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
35
+ autoload :GenericResourceFilter, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
35
36
  autoload :IdentityUserAssignedIdentitiesValue, '2020-06-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb'
36
- autoload :ResourceGroupFilter, '2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb'
37
+ autoload :TemplateLink, '2020-06-01/generated/azure_mgmt_resources/models/template_link.rb'
37
38
  autoload :Identity, '2020-06-01/generated/azure_mgmt_resources/models/identity.rb'
38
- autoload :ParametersLink, '2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb'
39
39
  autoload :DebugSetting, '2020-06-01/generated/azure_mgmt_resources/models/debug_setting.rb'
40
40
  autoload :OnErrorDeployment, '2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment.rb'
41
+ autoload :ExpressionEvaluationOptions, '2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options.rb'
41
42
  autoload :TagsResource, '2020-06-01/generated/azure_mgmt_resources/models/tags_resource.rb'
42
43
  autoload :Deployment, '2020-06-01/generated/azure_mgmt_resources/models/deployment.rb'
43
44
  autoload :TagsPatchResource, '2020-06-01/generated/azure_mgmt_resources/models/tags_patch_resource.rb'
@@ -65,7 +66,7 @@ module Azure::Resources::Mgmt::V2020_06_01
65
66
  autoload :TagsListResult, '2020-06-01/generated/azure_mgmt_resources/models/tags_list_result.rb'
66
67
  autoload :ProviderListResult, '2020-06-01/generated/azure_mgmt_resources/models/provider_list_result.rb'
67
68
  autoload :TargetResource, '2020-06-01/generated/azure_mgmt_resources/models/target_resource.rb'
68
- autoload :GenericResourceFilter, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
69
+ autoload :ResourceGroupFilter, '2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb'
69
70
  autoload :HttpMessage, '2020-06-01/generated/azure_mgmt_resources/models/http_message.rb'
70
71
  autoload :DeploymentProperties, '2020-06-01/generated/azure_mgmt_resources/models/deployment_properties.rb'
71
72
  autoload :StatusMessage, '2020-06-01/generated/azure_mgmt_resources/models/status_message.rb'
@@ -81,7 +82,7 @@ module Azure::Resources::Mgmt::V2020_06_01
81
82
  autoload :Resource, '2020-06-01/generated/azure_mgmt_resources/models/resource.rb'
82
83
  autoload :DeploymentListResult, '2020-06-01/generated/azure_mgmt_resources/models/deployment_list_result.rb'
83
84
  autoload :SubResource, '2020-06-01/generated/azure_mgmt_resources/models/sub_resource.rb'
84
- autoload :TemplateLink, '2020-06-01/generated/azure_mgmt_resources/models/template_link.rb'
85
+ autoload :ParametersLink, '2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb'
85
86
  autoload :ResourceGroupExportResult, '2020-06-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb'
86
87
  autoload :ScopedDeploymentWhatIf, '2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb'
87
88
  autoload :OperationDisplay, '2020-06-01/generated/azure_mgmt_resources/models/operation_display.rb'
@@ -95,13 +96,14 @@ module Azure::Resources::Mgmt::V2020_06_01
95
96
  autoload :WhatIfPropertyChange, '2020-06-01/generated/azure_mgmt_resources/models/what_if_property_change.rb'
96
97
  autoload :ApiProfile, '2020-06-01/generated/azure_mgmt_resources/models/api_profile.rb'
97
98
  autoload :WhatIfChange, '2020-06-01/generated/azure_mgmt_resources/models/what_if_change.rb'
98
- autoload :Plan, '2020-06-01/generated/azure_mgmt_resources/models/plan.rb'
99
+ autoload :DeploymentExtendedFilter, '2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
99
100
  autoload :WhatIfOperationResult, '2020-06-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb'
100
101
  autoload :DeploymentWhatIfProperties, '2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb'
101
102
  autoload :GenericResource, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource.rb'
102
103
  autoload :GenericResourceExpanded, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb'
103
104
  autoload :DeploymentMode, '2020-06-01/generated/azure_mgmt_resources/models/deployment_mode.rb'
104
105
  autoload :OnErrorDeploymentType, '2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb'
106
+ autoload :ExpressionEvaluationOptionsScopeType, '2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options_scope_type.rb'
105
107
  autoload :WhatIfResultFormat, '2020-06-01/generated/azure_mgmt_resources/models/what_if_result_format.rb'
106
108
  autoload :AliasPathTokenType, '2020-06-01/generated/azure_mgmt_resources/models/alias_path_token_type.rb'
107
109
  autoload :AliasPathAttributes, '2020-06-01/generated/azure_mgmt_resources/models/alias_path_attributes.rb'
@@ -52,6 +52,12 @@ module Azure::Resources::Mgmt::V2020_06_01
52
52
  # @return [OnErrorDeployment] The deployment on error behavior.
53
53
  attr_accessor :on_error_deployment
54
54
 
55
+ # @return [ExpressionEvaluationOptions] Specifies whether template
56
+ # expressions are evaluated within the scope of the parent template or
57
+ # nested template. Only applicable to nested templates. If not specified,
58
+ # default value is outer.
59
+ attr_accessor :expression_evaluation_options
60
+
55
61
 
56
62
  #
57
63
  # Mapper for DeploymentProperties class as Ruby Hash.
@@ -126,6 +132,15 @@ module Azure::Resources::Mgmt::V2020_06_01
126
132
  name: 'Composite',
127
133
  class_name: 'OnErrorDeployment'
128
134
  }
135
+ },
136
+ expression_evaluation_options: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'expressionEvaluationOptions',
140
+ type: {
141
+ name: 'Composite',
142
+ class_name: 'ExpressionEvaluationOptions'
143
+ }
129
144
  }
130
145
  }
131
146
  }
@@ -90,6 +90,15 @@ module Azure::Resources::Mgmt::V2020_06_01
90
90
  class_name: 'OnErrorDeployment'
91
91
  }
92
92
  },
93
+ expression_evaluation_options: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'expressionEvaluationOptions',
97
+ type: {
98
+ name: 'Composite',
99
+ class_name: 'ExpressionEvaluationOptions'
100
+ }
101
+ },
93
102
  what_if_settings: {
94
103
  client_side_validation: true,
95
104
  required: false,
@@ -6,7 +6,11 @@
6
6
  module Azure::Resources::Mgmt::V2020_06_01
7
7
  module Models
8
8
  #
9
- # The resource management error response.
9
+ # Error Response
10
+
11
+ # Common error response for all Azure Resource Manager APIs to return error
12
+ # details for failed operations. (This also follows the OData error
13
+ # response format.)
10
14
  #
11
15
  class ErrorResponse
12
16
 
@@ -0,0 +1,49 @@
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::Resources::Mgmt::V2020_06_01
7
+ module Models
8
+ #
9
+ # Specifies whether template expressions are evaluated within the scope of
10
+ # the parent template or nested template.
11
+ #
12
+ class ExpressionEvaluationOptions
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ExpressionEvaluationOptionsScopeType] The scope to be used for
17
+ # evaluation of parameters, variables and functions in a nested template.
18
+ # Possible values include: 'NotSpecified', 'Outer', 'Inner'
19
+ attr_accessor :scope
20
+
21
+
22
+ #
23
+ # Mapper for ExpressionEvaluationOptions class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ExpressionEvaluationOptions',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ExpressionEvaluationOptions',
34
+ model_properties: {
35
+ scope: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'scope',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,17 @@
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::Resources::Mgmt::V2020_06_01
7
+ module Models
8
+ #
9
+ # Defines values for ExpressionEvaluationOptionsScopeType
10
+ #
11
+ module ExpressionEvaluationOptionsScopeType
12
+ NotSpecified = "NotSpecified"
13
+ Outer = "Outer"
14
+ Inner = "Inner"
15
+ end
16
+ end
17
+ end
@@ -114,6 +114,93 @@ module Azure::Resources::Mgmt::V2020_06_01
114
114
  promise.execute
115
115
  end
116
116
 
117
+ #
118
+ # Registers a management group with a resource provider.
119
+ #
120
+ # @param resource_provider_namespace [String] The namespace of the resource
121
+ # provider to register.
122
+ # @param group_id [String] The management group ID.
123
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
124
+ # will be added to the HTTP request.
125
+ #
126
+ #
127
+ def register_at_management_group_scope(resource_provider_namespace, group_id, custom_headers:nil)
128
+ response = register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:custom_headers).value!
129
+ nil
130
+ end
131
+
132
+ #
133
+ # Registers a management group with a resource provider.
134
+ #
135
+ # @param resource_provider_namespace [String] The namespace of the resource
136
+ # provider to register.
137
+ # @param group_id [String] The management group ID.
138
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
139
+ # will be added to the HTTP request.
140
+ #
141
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
+ #
143
+ def register_at_management_group_scope_with_http_info(resource_provider_namespace, group_id, custom_headers:nil)
144
+ register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:custom_headers).value!
145
+ end
146
+
147
+ #
148
+ # Registers a management group with a resource provider.
149
+ #
150
+ # @param resource_provider_namespace [String] The namespace of the resource
151
+ # provider to register.
152
+ # @param group_id [String] The management group ID.
153
+ # @param [Hash{String => String}] A hash of custom headers that will be added
154
+ # to the HTTP request.
155
+ #
156
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
157
+ #
158
+ def register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:nil)
159
+ fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
160
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
161
+ fail ArgumentError, 'group_id is nil' if group_id.nil?
162
+ fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '90'" if !group_id.nil? && group_id.length > 90
163
+ fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1
164
+
165
+
166
+ request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
168
+
169
+ # Set Headers
170
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
171
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
172
+ path_template = 'providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register'
173
+
174
+ request_url = @base_url || @client.base_url
175
+
176
+ options = {
177
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
178
+ path_params: {'resourceProviderNamespace' => resource_provider_namespace,'groupId' => group_id},
179
+ query_params: {'api-version' => @client.api_version},
180
+ headers: request_headers.merge(custom_headers || {}),
181
+ base_url: request_url
182
+ }
183
+ promise = @client.make_request_async(:post, path_template, options)
184
+
185
+ promise = promise.then do |result|
186
+ http_response = result.response
187
+ status_code = http_response.status
188
+ response_content = http_response.body
189
+ unless status_code == 200
190
+ error_model = JSON.load(response_content)
191
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
192
+ end
193
+
194
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
195
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
196
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
197
+
198
+ result
199
+ end
200
+
201
+ promise.execute
202
+ end
203
+
117
204
  #
118
205
  # Registers a subscription with a resource provider.
119
206
  #
@@ -240,26 +240,32 @@ module Azure::Resources::Mgmt::V2020_06_01
240
240
  #
241
241
  # @param resource_group_name [String] The name of the resource group to delete.
242
242
  # The name is case insensitive.
243
+ # @param force_deletion_resource_types [String] The resource types you want to
244
+ # force delete. Currently, only the following is supported:
245
+ # forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
243
246
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
247
  # will be added to the HTTP request.
245
248
  #
246
- def delete(resource_group_name, custom_headers:nil)
247
- response = delete_async(resource_group_name, custom_headers:custom_headers).value!
249
+ def delete(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
250
+ response = delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers).value!
248
251
  nil
249
252
  end
250
253
 
251
254
  #
252
255
  # @param resource_group_name [String] The name of the resource group to delete.
253
256
  # The name is case insensitive.
257
+ # @param force_deletion_resource_types [String] The resource types you want to
258
+ # force delete. Currently, only the following is supported:
259
+ # forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
254
260
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
261
  # will be added to the HTTP request.
256
262
  #
257
263
  # @return [Concurrent::Promise] promise which provides async access to http
258
264
  # response.
259
265
  #
260
- def delete_async(resource_group_name, custom_headers:nil)
266
+ def delete_async(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
261
267
  # Send request
262
- promise = begin_delete_async(resource_group_name, custom_headers:custom_headers)
268
+ promise = begin_delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers)
263
269
 
264
270
  promise = promise.then do |response|
265
271
  # Defining deserialization method.
@@ -647,12 +653,15 @@ module Azure::Resources::Mgmt::V2020_06_01
647
653
  #
648
654
  # @param resource_group_name [String] The name of the resource group to delete.
649
655
  # The name is case insensitive.
656
+ # @param force_deletion_resource_types [String] The resource types you want to
657
+ # force delete. Currently, only the following is supported:
658
+ # forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
650
659
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
651
660
  # will be added to the HTTP request.
652
661
  #
653
662
  #
654
- def begin_delete(resource_group_name, custom_headers:nil)
655
- response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
663
+ def begin_delete(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
664
+ response = begin_delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers).value!
656
665
  nil
657
666
  end
658
667
 
@@ -665,13 +674,16 @@ module Azure::Resources::Mgmt::V2020_06_01
665
674
  #
666
675
  # @param resource_group_name [String] The name of the resource group to delete.
667
676
  # The name is case insensitive.
677
+ # @param force_deletion_resource_types [String] The resource types you want to
678
+ # force delete. Currently, only the following is supported:
679
+ # forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
668
680
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
669
681
  # will be added to the HTTP request.
670
682
  #
671
683
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
672
684
  #
673
- def begin_delete_with_http_info(resource_group_name, custom_headers:nil)
674
- begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
685
+ def begin_delete_with_http_info(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
686
+ begin_delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers).value!
675
687
  end
676
688
 
677
689
  #
@@ -683,12 +695,15 @@ module Azure::Resources::Mgmt::V2020_06_01
683
695
  #
684
696
  # @param resource_group_name [String] The name of the resource group to delete.
685
697
  # The name is case insensitive.
698
+ # @param force_deletion_resource_types [String] The resource types you want to
699
+ # force delete. Currently, only the following is supported:
700
+ # forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
686
701
  # @param [Hash{String => String}] A hash of custom headers that will be added
687
702
  # to the HTTP request.
688
703
  #
689
704
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
690
705
  #
691
- def begin_delete_async(resource_group_name, custom_headers:nil)
706
+ def begin_delete_async(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
692
707
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
693
708
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
694
709
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -710,7 +725,7 @@ module Azure::Resources::Mgmt::V2020_06_01
710
725
  options = {
711
726
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
712
727
  path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
713
- query_params: {'api-version' => @client.api_version},
728
+ query_params: {'forceDeletionResourceTypes' => force_deletion_resource_types,'api-version' => @client.api_version},
714
729
  headers: request_headers.merge(custom_headers || {}),
715
730
  base_url: request_url
716
731
  }
@@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2020_06_01
148
148
  #
149
149
  def add_telemetry
150
150
  sdk_information = 'azure_mgmt_resources'
151
- sdk_information = "#{sdk_information}/0.18.1"
151
+ sdk_information = "#{sdk_information}/0.18.2"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -6,87 +6,107 @@ require 'azure_mgmt_resources'
6
6
 
7
7
  module Azure::Resources::Profiles::Latest
8
8
  module Mgmt
9
- Operations = Azure::Resources::Mgmt::V2019_07_01::Operations
10
- Deployments = Azure::Resources::Mgmt::V2019_07_01::Deployments
11
- Providers = Azure::Resources::Mgmt::V2019_07_01::Providers
12
- Resources = Azure::Resources::Mgmt::V2019_07_01::Resources
13
- ResourceGroups = Azure::Resources::Mgmt::V2019_07_01::ResourceGroups
14
- Tags = Azure::Resources::Mgmt::V2019_07_01::Tags
15
- DeploymentOperations = Azure::Resources::Mgmt::V2019_07_01::DeploymentOperations
9
+ Operations = Azure::Resources::Mgmt::V2020_06_01::Operations
10
+ Deployments = Azure::Resources::Mgmt::V2020_06_01::Deployments
11
+ Providers = Azure::Resources::Mgmt::V2020_06_01::Providers
12
+ Resources = Azure::Resources::Mgmt::V2020_06_01::Resources
13
+ ResourceGroups = Azure::Resources::Mgmt::V2020_06_01::ResourceGroups
14
+ TagsOperations = Azure::Resources::Mgmt::V2020_06_01::TagsOperations
15
+ DeploymentOperations = Azure::Resources::Mgmt::V2020_06_01::DeploymentOperations
16
16
 
17
17
  module Models
18
- Sku = Azure::Resources::Mgmt::V2019_07_01::Models::Sku
19
- IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2019_07_01::Models::IdentityUserAssignedIdentitiesValue
20
- GenericResourceFilter = Azure::Resources::Mgmt::V2019_07_01::Models::GenericResourceFilter
21
- Identity = Azure::Resources::Mgmt::V2019_07_01::Models::Identity
22
- TemplateLink = Azure::Resources::Mgmt::V2019_07_01::Models::TemplateLink
23
- ParametersLink = Azure::Resources::Mgmt::V2019_07_01::Models::ParametersLink
24
- WhatIfOperationResult = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfOperationResult
25
- OnErrorDeployment = Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeployment
26
- ResourceListResult = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceListResult
27
- Deployment = Azure::Resources::Mgmt::V2019_07_01::Models::Deployment
28
- ResourceGroupProperties = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupProperties
29
- DeploymentWhatIfSettings = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfSettings
30
- ResourceGroup = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroup
31
- DeploymentWhatIf = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIf
32
- ResourceGroupPatchable = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupPatchable
33
- ErrorResponse = Azure::Resources::Mgmt::V2019_07_01::Models::ErrorResponse
34
- ResourceGroupListResult = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupListResult
35
- AliasPathType = Azure::Resources::Mgmt::V2019_07_01::Models::AliasPathType
36
- ResourcesMoveInfo = Azure::Resources::Mgmt::V2019_07_01::Models::ResourcesMoveInfo
37
- ProviderResourceType = Azure::Resources::Mgmt::V2019_07_01::Models::ProviderResourceType
38
- ExportTemplateRequest = Azure::Resources::Mgmt::V2019_07_01::Models::ExportTemplateRequest
39
- BasicDependency = Azure::Resources::Mgmt::V2019_07_01::Models::BasicDependency
40
- TagCount = Azure::Resources::Mgmt::V2019_07_01::Models::TagCount
41
- OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentExtended
42
- TagValue = Azure::Resources::Mgmt::V2019_07_01::Models::TagValue
43
- DeploymentValidateResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentValidateResult
44
- TagDetails = Azure::Resources::Mgmt::V2019_07_01::Models::TagDetails
45
- DeploymentListResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentListResult
46
- TagsListResult = Azure::Resources::Mgmt::V2019_07_01::Models::TagsListResult
47
- Plan = Azure::Resources::Mgmt::V2019_07_01::Models::Plan
48
- TargetResource = Azure::Resources::Mgmt::V2019_07_01::Models::TargetResource
49
- ResourceGroupFilter = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupFilter
50
- HttpMessage = Azure::Resources::Mgmt::V2019_07_01::Models::HttpMessage
51
- DeploymentProperties = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentProperties
52
- DeploymentOperationProperties = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationProperties
53
- WhatIfChange = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfChange
54
- ErrorAdditionalInfo = Azure::Resources::Mgmt::V2019_07_01::Models::ErrorAdditionalInfo
55
- DeploymentOperation = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperation
56
- AliasType = Azure::Resources::Mgmt::V2019_07_01::Models::AliasType
57
- DeploymentOperationsListResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationsListResult
58
- Dependency = Azure::Resources::Mgmt::V2019_07_01::Models::Dependency
59
- ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceProviderOperationDisplayProperties
60
- DeploymentExtended = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtended
61
- Resource = Azure::Resources::Mgmt::V2019_07_01::Models::Resource
62
- DeploymentExtendedFilter = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtendedFilter
63
- SubResource = Azure::Resources::Mgmt::V2019_07_01::Models::SubResource
64
- DeploymentExportResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExportResult
65
- ResourceGroupExportResult = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupExportResult
66
- Provider = Azure::Resources::Mgmt::V2019_07_01::Models::Provider
67
- OperationDisplay = Azure::Resources::Mgmt::V2019_07_01::Models::OperationDisplay
68
- ProviderListResult = Azure::Resources::Mgmt::V2019_07_01::Models::ProviderListResult
69
- Operation = Azure::Resources::Mgmt::V2019_07_01::Models::Operation
70
- OperationListResult = Azure::Resources::Mgmt::V2019_07_01::Models::OperationListResult
71
- DebugSetting = Azure::Resources::Mgmt::V2019_07_01::Models::DebugSetting
72
- TemplateHashResult = Azure::Resources::Mgmt::V2019_07_01::Models::TemplateHashResult
73
- DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentPropertiesExtended
74
- WhatIfPropertyChange = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfPropertyChange
75
- DeploymentWhatIfProperties = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfProperties
76
- GenericResource = Azure::Resources::Mgmt::V2019_07_01::Models::GenericResource
77
- DeploymentMode = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentMode
78
- OnErrorDeploymentType = Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentType
79
- WhatIfResultFormat = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfResultFormat
80
- ResourceIdentityType = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceIdentityType
81
- PropertyChangeType = Azure::Resources::Mgmt::V2019_07_01::Models::PropertyChangeType
82
- ChangeType = Azure::Resources::Mgmt::V2019_07_01::Models::ChangeType
18
+ Plan = Azure::Resources::Mgmt::V2020_06_01::Models::Plan
19
+ Sku = Azure::Resources::Mgmt::V2020_06_01::Models::Sku
20
+ GenericResourceFilter = Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceFilter
21
+ IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2020_06_01::Models::IdentityUserAssignedIdentitiesValue
22
+ TemplateLink = Azure::Resources::Mgmt::V2020_06_01::Models::TemplateLink
23
+ Identity = Azure::Resources::Mgmt::V2020_06_01::Models::Identity
24
+ DebugSetting = Azure::Resources::Mgmt::V2020_06_01::Models::DebugSetting
25
+ OnErrorDeployment = Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeployment
26
+ ExpressionEvaluationOptions = Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptions
27
+ TagsResource = Azure::Resources::Mgmt::V2020_06_01::Models::TagsResource
28
+ Deployment = Azure::Resources::Mgmt::V2020_06_01::Models::Deployment
29
+ TagsPatchResource = Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchResource
30
+ DeploymentExportResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExportResult
31
+ ResourceListResult = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceListResult
32
+ Tags = Azure::Resources::Mgmt::V2020_06_01::Models::Tags
33
+ DeploymentWhatIf = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIf
34
+ ResourceGroupProperties = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupProperties
35
+ ErrorAdditionalInfo = Azure::Resources::Mgmt::V2020_06_01::Models::ErrorAdditionalInfo
36
+ ResourceGroup = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroup
37
+ ResourceGroupPatchable = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupPatchable
38
+ AliasPathMetadata = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathMetadata
39
+ ResourceGroupListResult = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupListResult
40
+ AliasPath = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPath
41
+ ResourcesMoveInfo = Azure::Resources::Mgmt::V2020_06_01::Models::ResourcesMoveInfo
42
+ ProviderResourceType = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderResourceType
43
+ ExportTemplateRequest = Azure::Resources::Mgmt::V2020_06_01::Models::ExportTemplateRequest
44
+ BasicDependency = Azure::Resources::Mgmt::V2020_06_01::Models::BasicDependency
45
+ TagCount = Azure::Resources::Mgmt::V2020_06_01::Models::TagCount
46
+ OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentExtended
47
+ TagValue = Azure::Resources::Mgmt::V2020_06_01::Models::TagValue
48
+ DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentPropertiesExtended
49
+ TagDetails = Azure::Resources::Mgmt::V2020_06_01::Models::TagDetails
50
+ DeploymentExtended = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtended
51
+ TagsListResult = Azure::Resources::Mgmt::V2020_06_01::Models::TagsListResult
52
+ ProviderListResult = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult
53
+ TargetResource = Azure::Resources::Mgmt::V2020_06_01::Models::TargetResource
54
+ ResourceGroupFilter = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupFilter
55
+ HttpMessage = Azure::Resources::Mgmt::V2020_06_01::Models::HttpMessage
56
+ DeploymentProperties = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentProperties
57
+ StatusMessage = Azure::Resources::Mgmt::V2020_06_01::Models::StatusMessage
58
+ DeploymentWhatIfSettings = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfSettings
59
+ DeploymentOperationProperties = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationProperties
60
+ ErrorResponse = Azure::Resources::Mgmt::V2020_06_01::Models::ErrorResponse
61
+ DeploymentOperation = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperation
62
+ AliasPattern = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPattern
63
+ DeploymentOperationsListResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationsListResult
64
+ Provider = Azure::Resources::Mgmt::V2020_06_01::Models::Provider
65
+ ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceProviderOperationDisplayProperties
66
+ ResourceReference = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceReference
67
+ Resource = Azure::Resources::Mgmt::V2020_06_01::Models::Resource
68
+ DeploymentListResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentListResult
69
+ SubResource = Azure::Resources::Mgmt::V2020_06_01::Models::SubResource
70
+ ParametersLink = Azure::Resources::Mgmt::V2020_06_01::Models::ParametersLink
71
+ ResourceGroupExportResult = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupExportResult
72
+ ScopedDeploymentWhatIf = Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeploymentWhatIf
73
+ OperationDisplay = Azure::Resources::Mgmt::V2020_06_01::Models::OperationDisplay
74
+ AliasModel = Azure::Resources::Mgmt::V2020_06_01::Models::AliasModel
75
+ Operation = Azure::Resources::Mgmt::V2020_06_01::Models::Operation
76
+ DeploymentValidateResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentValidateResult
77
+ OperationListResult = Azure::Resources::Mgmt::V2020_06_01::Models::OperationListResult
78
+ ScopedDeployment = Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeployment
79
+ TemplateHashResult = Azure::Resources::Mgmt::V2020_06_01::Models::TemplateHashResult
80
+ Dependency = Azure::Resources::Mgmt::V2020_06_01::Models::Dependency
81
+ WhatIfPropertyChange = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfPropertyChange
82
+ ApiProfile = Azure::Resources::Mgmt::V2020_06_01::Models::ApiProfile
83
+ WhatIfChange = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfChange
84
+ DeploymentExtendedFilter = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtendedFilter
85
+ WhatIfOperationResult = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfOperationResult
86
+ DeploymentWhatIfProperties = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfProperties
87
+ GenericResource = Azure::Resources::Mgmt::V2020_06_01::Models::GenericResource
88
+ GenericResourceExpanded = Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceExpanded
89
+ DeploymentMode = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentMode
90
+ OnErrorDeploymentType = Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentType
91
+ ExpressionEvaluationOptionsScopeType = Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptionsScopeType
92
+ WhatIfResultFormat = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfResultFormat
93
+ AliasPathTokenType = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathTokenType
94
+ AliasPathAttributes = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathAttributes
95
+ AliasPatternType = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPatternType
96
+ AliasType = Azure::Resources::Mgmt::V2020_06_01::Models::AliasType
97
+ ProvisioningState = Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningState
98
+ ResourceIdentityType = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceIdentityType
99
+ ProvisioningOperation = Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningOperation
100
+ PropertyChangeType = Azure::Resources::Mgmt::V2020_06_01::Models::PropertyChangeType
101
+ ChangeType = Azure::Resources::Mgmt::V2020_06_01::Models::ChangeType
102
+ TagsPatchOperation = Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchOperation
83
103
  end
84
104
 
85
105
  #
86
106
  # ResourcesManagementClass
87
107
  #
88
108
  class ResourcesManagementClass
89
- attr_reader :operations, :deployments, :providers, :resources, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes
109
+ attr_reader :operations, :deployments, :providers, :resources, :resource_groups, :tags_operations, :deployment_operations, :configurable, :base_url, :options, :model_classes
90
110
 
91
111
  def initialize(options = {})
92
112
  if options.is_a?(Hash) && options.length == 0
@@ -101,7 +121,7 @@ module Azure::Resources::Profiles::Latest
101
121
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
102
122
  @options = options[:options].nil? ? nil:options[:options]
103
123
 
104
- @client_0 = Azure::Resources::Mgmt::V2019_07_01::ResourceManagementClient.new(configurable.credentials, base_url, options)
124
+ @client_0 = Azure::Resources::Mgmt::V2020_06_01::ResourceManagementClient.new(configurable.credentials, base_url, options)
105
125
  if(@client_0.respond_to?(:subscription_id))
106
126
  @client_0.subscription_id = configurable.subscription_id
107
127
  end
@@ -111,7 +131,7 @@ module Azure::Resources::Profiles::Latest
111
131
  @providers = @client_0.providers
112
132
  @resources = @client_0.resources
113
133
  @resource_groups = @client_0.resource_groups
114
- @tags = @client_0.tags
134
+ @tags_operations = @client_0.tags_operations
115
135
  @deployment_operations = @client_0.deployment_operations
116
136
 
117
137
  @model_classes = ModelClasses.new
@@ -133,200 +153,260 @@ module Azure::Resources::Profiles::Latest
133
153
  end
134
154
 
135
155
  class ModelClasses
136
- def sku
137
- Azure::Resources::Mgmt::V2019_07_01::Models::Sku
156
+ def plan
157
+ Azure::Resources::Mgmt::V2020_06_01::Models::Plan
138
158
  end
139
- def identity_user_assigned_identities_value
140
- Azure::Resources::Mgmt::V2019_07_01::Models::IdentityUserAssignedIdentitiesValue
159
+ def sku
160
+ Azure::Resources::Mgmt::V2020_06_01::Models::Sku
141
161
  end
142
162
  def generic_resource_filter
143
- Azure::Resources::Mgmt::V2019_07_01::Models::GenericResourceFilter
163
+ Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceFilter
144
164
  end
145
- def identity
146
- Azure::Resources::Mgmt::V2019_07_01::Models::Identity
165
+ def identity_user_assigned_identities_value
166
+ Azure::Resources::Mgmt::V2020_06_01::Models::IdentityUserAssignedIdentitiesValue
147
167
  end
148
168
  def template_link
149
- Azure::Resources::Mgmt::V2019_07_01::Models::TemplateLink
169
+ Azure::Resources::Mgmt::V2020_06_01::Models::TemplateLink
150
170
  end
151
- def parameters_link
152
- Azure::Resources::Mgmt::V2019_07_01::Models::ParametersLink
171
+ def identity
172
+ Azure::Resources::Mgmt::V2020_06_01::Models::Identity
153
173
  end
154
- def what_if_operation_result
155
- Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfOperationResult
174
+ def debug_setting
175
+ Azure::Resources::Mgmt::V2020_06_01::Models::DebugSetting
156
176
  end
157
177
  def on_error_deployment
158
- Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeployment
178
+ Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeployment
159
179
  end
160
- def resource_list_result
161
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceListResult
180
+ def expression_evaluation_options
181
+ Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptions
182
+ end
183
+ def tags_resource
184
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagsResource
162
185
  end
163
186
  def deployment
164
- Azure::Resources::Mgmt::V2019_07_01::Models::Deployment
187
+ Azure::Resources::Mgmt::V2020_06_01::Models::Deployment
165
188
  end
166
- def resource_group_properties
167
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupProperties
189
+ def tags_patch_resource
190
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchResource
168
191
  end
169
- def deployment_what_if_settings
170
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfSettings
192
+ def deployment_export_result
193
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExportResult
171
194
  end
172
- def resource_group
173
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroup
195
+ def resource_list_result
196
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceListResult
197
+ end
198
+ def tags
199
+ Azure::Resources::Mgmt::V2020_06_01::Models::Tags
174
200
  end
175
201
  def deployment_what_if
176
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIf
202
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIf
203
+ end
204
+ def resource_group_properties
205
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupProperties
206
+ end
207
+ def error_additional_info
208
+ Azure::Resources::Mgmt::V2020_06_01::Models::ErrorAdditionalInfo
209
+ end
210
+ def resource_group
211
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroup
177
212
  end
178
213
  def resource_group_patchable
179
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupPatchable
214
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupPatchable
180
215
  end
181
- def error_response
182
- Azure::Resources::Mgmt::V2019_07_01::Models::ErrorResponse
216
+ def alias_path_metadata
217
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathMetadata
183
218
  end
184
219
  def resource_group_list_result
185
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupListResult
220
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupListResult
186
221
  end
187
- def alias_path_type
188
- Azure::Resources::Mgmt::V2019_07_01::Models::AliasPathType
222
+ def alias_path
223
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasPath
189
224
  end
190
225
  def resources_move_info
191
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourcesMoveInfo
226
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourcesMoveInfo
192
227
  end
193
228
  def provider_resource_type
194
- Azure::Resources::Mgmt::V2019_07_01::Models::ProviderResourceType
229
+ Azure::Resources::Mgmt::V2020_06_01::Models::ProviderResourceType
195
230
  end
196
231
  def export_template_request
197
- Azure::Resources::Mgmt::V2019_07_01::Models::ExportTemplateRequest
232
+ Azure::Resources::Mgmt::V2020_06_01::Models::ExportTemplateRequest
198
233
  end
199
234
  def basic_dependency
200
- Azure::Resources::Mgmt::V2019_07_01::Models::BasicDependency
235
+ Azure::Resources::Mgmt::V2020_06_01::Models::BasicDependency
201
236
  end
202
237
  def tag_count
203
- Azure::Resources::Mgmt::V2019_07_01::Models::TagCount
238
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagCount
204
239
  end
205
240
  def on_error_deployment_extended
206
- Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentExtended
241
+ Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentExtended
207
242
  end
208
243
  def tag_value
209
- Azure::Resources::Mgmt::V2019_07_01::Models::TagValue
244
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagValue
210
245
  end
211
- def deployment_validate_result
212
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentValidateResult
246
+ def deployment_properties_extended
247
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentPropertiesExtended
213
248
  end
214
249
  def tag_details
215
- Azure::Resources::Mgmt::V2019_07_01::Models::TagDetails
250
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagDetails
216
251
  end
217
- def deployment_list_result
218
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentListResult
252
+ def deployment_extended
253
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtended
219
254
  end
220
255
  def tags_list_result
221
- Azure::Resources::Mgmt::V2019_07_01::Models::TagsListResult
256
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagsListResult
222
257
  end
223
- def plan
224
- Azure::Resources::Mgmt::V2019_07_01::Models::Plan
258
+ def provider_list_result
259
+ Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult
225
260
  end
226
261
  def target_resource
227
- Azure::Resources::Mgmt::V2019_07_01::Models::TargetResource
262
+ Azure::Resources::Mgmt::V2020_06_01::Models::TargetResource
228
263
  end
229
264
  def resource_group_filter
230
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupFilter
265
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupFilter
231
266
  end
232
267
  def http_message
233
- Azure::Resources::Mgmt::V2019_07_01::Models::HttpMessage
268
+ Azure::Resources::Mgmt::V2020_06_01::Models::HttpMessage
234
269
  end
235
270
  def deployment_properties
236
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentProperties
271
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentProperties
237
272
  end
238
- def deployment_operation_properties
239
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationProperties
273
+ def status_message
274
+ Azure::Resources::Mgmt::V2020_06_01::Models::StatusMessage
240
275
  end
241
- def what_if_change
242
- Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfChange
276
+ def deployment_what_if_settings
277
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfSettings
243
278
  end
244
- def error_additional_info
245
- Azure::Resources::Mgmt::V2019_07_01::Models::ErrorAdditionalInfo
279
+ def deployment_operation_properties
280
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationProperties
281
+ end
282
+ def error_response
283
+ Azure::Resources::Mgmt::V2020_06_01::Models::ErrorResponse
246
284
  end
247
285
  def deployment_operation
248
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperation
286
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperation
249
287
  end
250
- def alias_type
251
- Azure::Resources::Mgmt::V2019_07_01::Models::AliasType
288
+ def alias_pattern
289
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasPattern
252
290
  end
253
291
  def deployment_operations_list_result
254
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationsListResult
292
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationsListResult
255
293
  end
256
- def dependency
257
- Azure::Resources::Mgmt::V2019_07_01::Models::Dependency
294
+ def provider
295
+ Azure::Resources::Mgmt::V2020_06_01::Models::Provider
258
296
  end
259
297
  def resource_provider_operation_display_properties
260
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceProviderOperationDisplayProperties
298
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceProviderOperationDisplayProperties
261
299
  end
262
- def deployment_extended
263
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtended
300
+ def resource_reference
301
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceReference
264
302
  end
265
303
  def resource
266
- Azure::Resources::Mgmt::V2019_07_01::Models::Resource
304
+ Azure::Resources::Mgmt::V2020_06_01::Models::Resource
267
305
  end
268
- def deployment_extended_filter
269
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtendedFilter
306
+ def deployment_list_result
307
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentListResult
270
308
  end
271
309
  def sub_resource
272
- Azure::Resources::Mgmt::V2019_07_01::Models::SubResource
310
+ Azure::Resources::Mgmt::V2020_06_01::Models::SubResource
273
311
  end
274
- def deployment_export_result
275
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExportResult
312
+ def parameters_link
313
+ Azure::Resources::Mgmt::V2020_06_01::Models::ParametersLink
276
314
  end
277
315
  def resource_group_export_result
278
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupExportResult
316
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupExportResult
279
317
  end
280
- def provider
281
- Azure::Resources::Mgmt::V2019_07_01::Models::Provider
318
+ def scoped_deployment_what_if
319
+ Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeploymentWhatIf
282
320
  end
283
321
  def operation_display
284
- Azure::Resources::Mgmt::V2019_07_01::Models::OperationDisplay
322
+ Azure::Resources::Mgmt::V2020_06_01::Models::OperationDisplay
285
323
  end
286
- def provider_list_result
287
- Azure::Resources::Mgmt::V2019_07_01::Models::ProviderListResult
324
+ def alias_model
325
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasModel
288
326
  end
289
327
  def operation
290
- Azure::Resources::Mgmt::V2019_07_01::Models::Operation
328
+ Azure::Resources::Mgmt::V2020_06_01::Models::Operation
329
+ end
330
+ def deployment_validate_result
331
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentValidateResult
291
332
  end
292
333
  def operation_list_result
293
- Azure::Resources::Mgmt::V2019_07_01::Models::OperationListResult
334
+ Azure::Resources::Mgmt::V2020_06_01::Models::OperationListResult
294
335
  end
295
- def debug_setting
296
- Azure::Resources::Mgmt::V2019_07_01::Models::DebugSetting
336
+ def scoped_deployment
337
+ Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeployment
297
338
  end
298
339
  def template_hash_result
299
- Azure::Resources::Mgmt::V2019_07_01::Models::TemplateHashResult
340
+ Azure::Resources::Mgmt::V2020_06_01::Models::TemplateHashResult
300
341
  end
301
- def deployment_properties_extended
302
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentPropertiesExtended
342
+ def dependency
343
+ Azure::Resources::Mgmt::V2020_06_01::Models::Dependency
303
344
  end
304
345
  def what_if_property_change
305
- Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfPropertyChange
346
+ Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfPropertyChange
347
+ end
348
+ def api_profile
349
+ Azure::Resources::Mgmt::V2020_06_01::Models::ApiProfile
350
+ end
351
+ def what_if_change
352
+ Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfChange
353
+ end
354
+ def deployment_extended_filter
355
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtendedFilter
356
+ end
357
+ def what_if_operation_result
358
+ Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfOperationResult
306
359
  end
307
360
  def deployment_what_if_properties
308
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfProperties
361
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfProperties
309
362
  end
310
363
  def generic_resource
311
- Azure::Resources::Mgmt::V2019_07_01::Models::GenericResource
364
+ Azure::Resources::Mgmt::V2020_06_01::Models::GenericResource
365
+ end
366
+ def generic_resource_expanded
367
+ Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceExpanded
312
368
  end
313
369
  def deployment_mode
314
- Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentMode
370
+ Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentMode
315
371
  end
316
372
  def on_error_deployment_type
317
- Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentType
373
+ Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentType
374
+ end
375
+ def expression_evaluation_options_scope_type
376
+ Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptionsScopeType
318
377
  end
319
378
  def what_if_result_format
320
- Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfResultFormat
379
+ Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfResultFormat
380
+ end
381
+ def alias_path_token_type
382
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathTokenType
383
+ end
384
+ def alias_path_attributes
385
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathAttributes
386
+ end
387
+ def alias_pattern_type
388
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasPatternType
389
+ end
390
+ def alias_type
391
+ Azure::Resources::Mgmt::V2020_06_01::Models::AliasType
392
+ end
393
+ def provisioning_state
394
+ Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningState
321
395
  end
322
396
  def resource_identity_type
323
- Azure::Resources::Mgmt::V2019_07_01::Models::ResourceIdentityType
397
+ Azure::Resources::Mgmt::V2020_06_01::Models::ResourceIdentityType
398
+ end
399
+ def provisioning_operation
400
+ Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningOperation
324
401
  end
325
402
  def property_change_type
326
- Azure::Resources::Mgmt::V2019_07_01::Models::PropertyChangeType
403
+ Azure::Resources::Mgmt::V2020_06_01::Models::PropertyChangeType
327
404
  end
328
405
  def change_type
329
- Azure::Resources::Mgmt::V2019_07_01::Models::ChangeType
406
+ Azure::Resources::Mgmt::V2020_06_01::Models::ChangeType
407
+ end
408
+ def tags_patch_operation
409
+ Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchOperation
330
410
  end
331
411
  end
332
412
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Resources::Mgmt
6
- VERSION = '0.18.1'
6
+ VERSION = '0.18.2'
7
7
  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.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -888,6 +888,8 @@ files:
888
888
  - lib/2020-06-01/generated/azure_mgmt_resources/models/error_additional_info.rb
889
889
  - lib/2020-06-01/generated/azure_mgmt_resources/models/error_response.rb
890
890
  - lib/2020-06-01/generated/azure_mgmt_resources/models/export_template_request.rb
891
+ - lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options.rb
892
+ - lib/2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options_scope_type.rb
891
893
  - lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource.rb
892
894
  - lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb
893
895
  - lib/2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb