Merge pull request #2832 from kairu-ms/support-force-delete
Resources support forceDeletionResourceTypes
This commit is contained in:
Коммит
e4748f1538
|
@ -1,3 +1,7 @@
|
|||
## 2021.03.22 - Azure Ruby SDK Release
|
||||
- azure_mgmt_resources - v0.18.2
|
||||
- azure_sdk - v0.72.0
|
||||
|
||||
## 2021.03.11 - Azure Ruby SDK Release
|
||||
- azure_key_vault - v0.18.1
|
||||
- azure_mgmt_cdn - v0.18.2
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure
|
||||
VERSION = '0.71.0'
|
||||
VERSION = '0.72.0'
|
||||
end
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
"data": [
|
||||
"azure_key_vault"
|
||||
],
|
||||
"management": [
|
||||
"azure_mgmt_cdn",
|
||||
"azure_mgmt_features",
|
||||
"azure_mgmt_logic",
|
||||
"azure_mgmt_network",
|
||||
"azure_mgmt_web"
|
||||
"azure_mgmt_resources"
|
||||
],
|
||||
"rollup": [
|
||||
"azure_sdk"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"rollup": {
|
||||
"azure_sdk": "0.71.0"
|
||||
"azure_sdk": "0.72.0"
|
||||
},
|
||||
"data": {
|
||||
"azure_cognitiveservices_anomalydetector": "0.17.1",
|
||||
|
@ -124,7 +124,7 @@
|
|||
"azure_mgmt_reservations": "0.20.0",
|
||||
"azure_mgmt_resource_health": "0.17.1",
|
||||
"azure_mgmt_resourcegraph": "0.17.2",
|
||||
"azure_mgmt_resources": "0.18.1",
|
||||
"azure_mgmt_resources": "0.18.2",
|
||||
"azure_mgmt_resources_management": "0.17.2",
|
||||
"azure_mgmt_scheduler": "0.17.2",
|
||||
"azure_mgmt_search": "0.17.3",
|
||||
|
|
|
@ -3143,7 +3143,7 @@
|
|||
"tag": "package-subscriptions-2016-06"
|
||||
},
|
||||
"azure_mgmt_resources_2020_06_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bd4cdd7e0508f2c482574e90580d34c48bf21b1f/specification/resources/resource-manager/readme.md",
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9cee82c90c9c188dda3cf33a9816bdcdb395f00a/specification/resources/resource-manager/readme.md",
|
||||
"title": "ResourceManagementClient",
|
||||
"namespace": "Azure::Resources::Mgmt::V2020_06_01",
|
||||
"tag": "package-resources-2020-06"
|
||||
|
|
|
@ -2723,7 +2723,7 @@
|
|||
"resourceTypes": {
|
||||
"Microsoft.Resources" : {
|
||||
"management": {
|
||||
"2019-07-01": ["*"]
|
||||
"2020-06-01": ["*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -129,7 +129,7 @@ module Azure::Resources::Mgmt::V2016_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -146,7 +146,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -144,7 +144,7 @@ module Azure::Resources::Mgmt::V2018_02_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -128,7 +128,7 @@ module Azure::Resources::Mgmt::V2018_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_03_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_05_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_05_10
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_07_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2019_10_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -30,14 +30,15 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
autoload :ResourceManagementClient, '2020-06-01/generated/azure_mgmt_resources/resource_management_client.rb'
|
||||
|
||||
module Models
|
||||
autoload :Plan, '2020-06-01/generated/azure_mgmt_resources/models/plan.rb'
|
||||
autoload :Sku, '2020-06-01/generated/azure_mgmt_resources/models/sku.rb'
|
||||
autoload :DeploymentExtendedFilter, '2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
||||
autoload :GenericResourceFilter, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
||||
autoload :IdentityUserAssignedIdentitiesValue, '2020-06-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb'
|
||||
autoload :ResourceGroupFilter, '2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
||||
autoload :TemplateLink, '2020-06-01/generated/azure_mgmt_resources/models/template_link.rb'
|
||||
autoload :Identity, '2020-06-01/generated/azure_mgmt_resources/models/identity.rb'
|
||||
autoload :ParametersLink, '2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb'
|
||||
autoload :DebugSetting, '2020-06-01/generated/azure_mgmt_resources/models/debug_setting.rb'
|
||||
autoload :OnErrorDeployment, '2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment.rb'
|
||||
autoload :ExpressionEvaluationOptions, '2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options.rb'
|
||||
autoload :TagsResource, '2020-06-01/generated/azure_mgmt_resources/models/tags_resource.rb'
|
||||
autoload :Deployment, '2020-06-01/generated/azure_mgmt_resources/models/deployment.rb'
|
||||
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
|
|||
autoload :TagsListResult, '2020-06-01/generated/azure_mgmt_resources/models/tags_list_result.rb'
|
||||
autoload :ProviderListResult, '2020-06-01/generated/azure_mgmt_resources/models/provider_list_result.rb'
|
||||
autoload :TargetResource, '2020-06-01/generated/azure_mgmt_resources/models/target_resource.rb'
|
||||
autoload :GenericResourceFilter, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
||||
autoload :ResourceGroupFilter, '2020-06-01/generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
||||
autoload :HttpMessage, '2020-06-01/generated/azure_mgmt_resources/models/http_message.rb'
|
||||
autoload :DeploymentProperties, '2020-06-01/generated/azure_mgmt_resources/models/deployment_properties.rb'
|
||||
autoload :StatusMessage, '2020-06-01/generated/azure_mgmt_resources/models/status_message.rb'
|
||||
|
@ -81,7 +82,7 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
autoload :Resource, '2020-06-01/generated/azure_mgmt_resources/models/resource.rb'
|
||||
autoload :DeploymentListResult, '2020-06-01/generated/azure_mgmt_resources/models/deployment_list_result.rb'
|
||||
autoload :SubResource, '2020-06-01/generated/azure_mgmt_resources/models/sub_resource.rb'
|
||||
autoload :TemplateLink, '2020-06-01/generated/azure_mgmt_resources/models/template_link.rb'
|
||||
autoload :ParametersLink, '2020-06-01/generated/azure_mgmt_resources/models/parameters_link.rb'
|
||||
autoload :ResourceGroupExportResult, '2020-06-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb'
|
||||
autoload :ScopedDeploymentWhatIf, '2020-06-01/generated/azure_mgmt_resources/models/scoped_deployment_what_if.rb'
|
||||
autoload :OperationDisplay, '2020-06-01/generated/azure_mgmt_resources/models/operation_display.rb'
|
||||
|
@ -95,13 +96,14 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
autoload :WhatIfPropertyChange, '2020-06-01/generated/azure_mgmt_resources/models/what_if_property_change.rb'
|
||||
autoload :ApiProfile, '2020-06-01/generated/azure_mgmt_resources/models/api_profile.rb'
|
||||
autoload :WhatIfChange, '2020-06-01/generated/azure_mgmt_resources/models/what_if_change.rb'
|
||||
autoload :Plan, '2020-06-01/generated/azure_mgmt_resources/models/plan.rb'
|
||||
autoload :DeploymentExtendedFilter, '2020-06-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
||||
autoload :WhatIfOperationResult, '2020-06-01/generated/azure_mgmt_resources/models/what_if_operation_result.rb'
|
||||
autoload :DeploymentWhatIfProperties, '2020-06-01/generated/azure_mgmt_resources/models/deployment_what_if_properties.rb'
|
||||
autoload :GenericResource, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource.rb'
|
||||
autoload :GenericResourceExpanded, '2020-06-01/generated/azure_mgmt_resources/models/generic_resource_expanded.rb'
|
||||
autoload :DeploymentMode, '2020-06-01/generated/azure_mgmt_resources/models/deployment_mode.rb'
|
||||
autoload :OnErrorDeploymentType, '2020-06-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb'
|
||||
autoload :ExpressionEvaluationOptionsScopeType, '2020-06-01/generated/azure_mgmt_resources/models/expression_evaluation_options_scope_type.rb'
|
||||
autoload :WhatIfResultFormat, '2020-06-01/generated/azure_mgmt_resources/models/what_if_result_format.rb'
|
||||
autoload :AliasPathTokenType, '2020-06-01/generated/azure_mgmt_resources/models/alias_path_token_type.rb'
|
||||
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
|
|||
# @return [OnErrorDeployment] The deployment on error behavior.
|
||||
attr_accessor :on_error_deployment
|
||||
|
||||
# @return [ExpressionEvaluationOptions] Specifies whether template
|
||||
# expressions are evaluated within the scope of the parent template or
|
||||
# nested template. Only applicable to nested templates. If not specified,
|
||||
# default value is outer.
|
||||
attr_accessor :expression_evaluation_options
|
||||
|
||||
|
||||
#
|
||||
# Mapper for DeploymentProperties class as Ruby Hash.
|
||||
|
@ -126,6 +132,15 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
name: 'Composite',
|
||||
class_name: 'OnErrorDeployment'
|
||||
}
|
||||
},
|
||||
expression_evaluation_options: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'expressionEvaluationOptions',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExpressionEvaluationOptions'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,6 +90,15 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
class_name: 'OnErrorDeployment'
|
||||
}
|
||||
},
|
||||
expression_evaluation_options: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'expressionEvaluationOptions',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExpressionEvaluationOptions'
|
||||
}
|
||||
},
|
||||
what_if_settings: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
|
|
|
@ -6,7 +6,11 @@
|
|||
module Azure::Resources::Mgmt::V2020_06_01
|
||||
module Models
|
||||
#
|
||||
# The resource management error response.
|
||||
# Error Response
|
||||
|
||||
# Common error response for all Azure Resource Manager APIs to return error
|
||||
# details for failed operations. (This also follows the OData error
|
||||
# response format.)
|
||||
#
|
||||
class ErrorResponse
|
||||
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Resources::Mgmt::V2020_06_01
|
||||
module Models
|
||||
#
|
||||
# Specifies whether template expressions are evaluated within the scope of
|
||||
# the parent template or nested template.
|
||||
#
|
||||
class ExpressionEvaluationOptions
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [ExpressionEvaluationOptionsScopeType] The scope to be used for
|
||||
# evaluation of parameters, variables and functions in a nested template.
|
||||
# Possible values include: 'NotSpecified', 'Outer', 'Inner'
|
||||
attr_accessor :scope
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ExpressionEvaluationOptions class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ExpressionEvaluationOptions',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ExpressionEvaluationOptions',
|
||||
model_properties: {
|
||||
scope: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'scope',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Resources::Mgmt::V2020_06_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ExpressionEvaluationOptionsScopeType
|
||||
#
|
||||
module ExpressionEvaluationOptionsScopeType
|
||||
NotSpecified = "NotSpecified"
|
||||
Outer = "Outer"
|
||||
Inner = "Inner"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -114,6 +114,93 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Registers a management group with a resource provider.
|
||||
#
|
||||
# @param resource_provider_namespace [String] The namespace of the resource
|
||||
# provider to register.
|
||||
# @param group_id [String] The management group ID.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def register_at_management_group_scope(resource_provider_namespace, group_id, custom_headers:nil)
|
||||
response = register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# Registers a management group with a resource provider.
|
||||
#
|
||||
# @param resource_provider_namespace [String] The namespace of the resource
|
||||
# provider to register.
|
||||
# @param group_id [String] The management group ID.
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def register_at_management_group_scope_with_http_info(resource_provider_namespace, group_id, custom_headers:nil)
|
||||
register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Registers a management group with a resource provider.
|
||||
#
|
||||
# @param resource_provider_namespace [String] The namespace of the resource
|
||||
# provider to register.
|
||||
# @param group_id [String] The management group ID.
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def register_at_management_group_scope_async(resource_provider_namespace, group_id, custom_headers:nil)
|
||||
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, 'group_id is nil' if group_id.nil?
|
||||
fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '90'" if !group_id.nil? && group_id.length > 90
|
||||
fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1
|
||||
|
||||
|
||||
request_headers = {}
|
||||
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'groupId' => group_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:post, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
||||
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
#
|
||||
# Registers a subscription with a resource provider.
|
||||
#
|
||||
|
|
|
@ -240,26 +240,32 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
#
|
||||
# @param resource_group_name [String] The name of the resource group to delete.
|
||||
# The name is case insensitive.
|
||||
# @param force_deletion_resource_types [String] The resource types you want to
|
||||
# force delete. Currently, only the following is supported:
|
||||
# forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
def delete(resource_group_name, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, custom_headers:custom_headers).value!
|
||||
def delete(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
|
||||
response = delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
#
|
||||
# @param resource_group_name [String] The name of the resource group to delete.
|
||||
# The name is case insensitive.
|
||||
# @param force_deletion_resource_types [String] The resource types you want to
|
||||
# force delete. Currently, only the following is supported:
|
||||
# forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] promise which provides async access to http
|
||||
# response.
|
||||
#
|
||||
def delete_async(resource_group_name, custom_headers:nil)
|
||||
def delete_async(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
|
||||
# Send request
|
||||
promise = begin_delete_async(resource_group_name, custom_headers:custom_headers)
|
||||
promise = begin_delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers)
|
||||
|
||||
promise = promise.then do |response|
|
||||
# Defining deserialization method.
|
||||
|
@ -647,12 +653,15 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
#
|
||||
# @param resource_group_name [String] The name of the resource group to delete.
|
||||
# The name is case insensitive.
|
||||
# @param force_deletion_resource_types [String] The resource types you want to
|
||||
# force delete. Currently, only the following is supported:
|
||||
# forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
#
|
||||
def begin_delete(resource_group_name, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
||||
def begin_delete(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
|
||||
response = begin_delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers).value!
|
||||
nil
|
||||
end
|
||||
|
||||
|
@ -665,13 +674,16 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
#
|
||||
# @param resource_group_name [String] The name of the resource group to delete.
|
||||
# The name is case insensitive.
|
||||
# @param force_deletion_resource_types [String] The resource types you want to
|
||||
# force delete. Currently, only the following is supported:
|
||||
# forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def begin_delete_with_http_info(resource_group_name, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
||||
def begin_delete_with_http_info(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
|
||||
begin_delete_async(resource_group_name, force_deletion_resource_types:force_deletion_resource_types, custom_headers:custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -683,12 +695,15 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
#
|
||||
# @param resource_group_name [String] The name of the resource group to delete.
|
||||
# The name is case insensitive.
|
||||
# @param force_deletion_resource_types [String] The resource types you want to
|
||||
# force delete. Currently, only the following is supported:
|
||||
# forceDeletionResourceTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def begin_delete_async(resource_group_name, custom_headers:nil)
|
||||
def begin_delete_async(resource_group_name, force_deletion_resource_types:nil, custom_headers:nil)
|
||||
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
||||
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
||||
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
|
|||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
query_params: {'forceDeletionResourceTypes' => force_deletion_resource_types,'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
|
|
|
@ -148,7 +148,7 @@ module Azure::Resources::Mgmt::V2020_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_resources'
|
||||
sdk_information = "#{sdk_information}/0.18.1"
|
||||
sdk_information = "#{sdk_information}/0.18.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,87 +6,107 @@ require 'azure_mgmt_resources'
|
|||
|
||||
module Azure::Resources::Profiles::Latest
|
||||
module Mgmt
|
||||
Operations = Azure::Resources::Mgmt::V2019_07_01::Operations
|
||||
Deployments = Azure::Resources::Mgmt::V2019_07_01::Deployments
|
||||
Providers = Azure::Resources::Mgmt::V2019_07_01::Providers
|
||||
Resources = Azure::Resources::Mgmt::V2019_07_01::Resources
|
||||
ResourceGroups = Azure::Resources::Mgmt::V2019_07_01::ResourceGroups
|
||||
Tags = Azure::Resources::Mgmt::V2019_07_01::Tags
|
||||
DeploymentOperations = Azure::Resources::Mgmt::V2019_07_01::DeploymentOperations
|
||||
Operations = Azure::Resources::Mgmt::V2020_06_01::Operations
|
||||
Deployments = Azure::Resources::Mgmt::V2020_06_01::Deployments
|
||||
Providers = Azure::Resources::Mgmt::V2020_06_01::Providers
|
||||
Resources = Azure::Resources::Mgmt::V2020_06_01::Resources
|
||||
ResourceGroups = Azure::Resources::Mgmt::V2020_06_01::ResourceGroups
|
||||
TagsOperations = Azure::Resources::Mgmt::V2020_06_01::TagsOperations
|
||||
DeploymentOperations = Azure::Resources::Mgmt::V2020_06_01::DeploymentOperations
|
||||
|
||||
module Models
|
||||
Sku = Azure::Resources::Mgmt::V2019_07_01::Models::Sku
|
||||
IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2019_07_01::Models::IdentityUserAssignedIdentitiesValue
|
||||
GenericResourceFilter = Azure::Resources::Mgmt::V2019_07_01::Models::GenericResourceFilter
|
||||
Identity = Azure::Resources::Mgmt::V2019_07_01::Models::Identity
|
||||
TemplateLink = Azure::Resources::Mgmt::V2019_07_01::Models::TemplateLink
|
||||
ParametersLink = Azure::Resources::Mgmt::V2019_07_01::Models::ParametersLink
|
||||
WhatIfOperationResult = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfOperationResult
|
||||
OnErrorDeployment = Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeployment
|
||||
ResourceListResult = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceListResult
|
||||
Deployment = Azure::Resources::Mgmt::V2019_07_01::Models::Deployment
|
||||
ResourceGroupProperties = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupProperties
|
||||
DeploymentWhatIfSettings = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfSettings
|
||||
ResourceGroup = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroup
|
||||
DeploymentWhatIf = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIf
|
||||
ResourceGroupPatchable = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupPatchable
|
||||
ErrorResponse = Azure::Resources::Mgmt::V2019_07_01::Models::ErrorResponse
|
||||
ResourceGroupListResult = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupListResult
|
||||
AliasPathType = Azure::Resources::Mgmt::V2019_07_01::Models::AliasPathType
|
||||
ResourcesMoveInfo = Azure::Resources::Mgmt::V2019_07_01::Models::ResourcesMoveInfo
|
||||
ProviderResourceType = Azure::Resources::Mgmt::V2019_07_01::Models::ProviderResourceType
|
||||
ExportTemplateRequest = Azure::Resources::Mgmt::V2019_07_01::Models::ExportTemplateRequest
|
||||
BasicDependency = Azure::Resources::Mgmt::V2019_07_01::Models::BasicDependency
|
||||
TagCount = Azure::Resources::Mgmt::V2019_07_01::Models::TagCount
|
||||
OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentExtended
|
||||
TagValue = Azure::Resources::Mgmt::V2019_07_01::Models::TagValue
|
||||
DeploymentValidateResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentValidateResult
|
||||
TagDetails = Azure::Resources::Mgmt::V2019_07_01::Models::TagDetails
|
||||
DeploymentListResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentListResult
|
||||
TagsListResult = Azure::Resources::Mgmt::V2019_07_01::Models::TagsListResult
|
||||
Plan = Azure::Resources::Mgmt::V2019_07_01::Models::Plan
|
||||
TargetResource = Azure::Resources::Mgmt::V2019_07_01::Models::TargetResource
|
||||
ResourceGroupFilter = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupFilter
|
||||
HttpMessage = Azure::Resources::Mgmt::V2019_07_01::Models::HttpMessage
|
||||
DeploymentProperties = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentProperties
|
||||
DeploymentOperationProperties = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationProperties
|
||||
WhatIfChange = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfChange
|
||||
ErrorAdditionalInfo = Azure::Resources::Mgmt::V2019_07_01::Models::ErrorAdditionalInfo
|
||||
DeploymentOperation = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperation
|
||||
AliasType = Azure::Resources::Mgmt::V2019_07_01::Models::AliasType
|
||||
DeploymentOperationsListResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationsListResult
|
||||
Dependency = Azure::Resources::Mgmt::V2019_07_01::Models::Dependency
|
||||
ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceProviderOperationDisplayProperties
|
||||
DeploymentExtended = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtended
|
||||
Resource = Azure::Resources::Mgmt::V2019_07_01::Models::Resource
|
||||
DeploymentExtendedFilter = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtendedFilter
|
||||
SubResource = Azure::Resources::Mgmt::V2019_07_01::Models::SubResource
|
||||
DeploymentExportResult = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExportResult
|
||||
ResourceGroupExportResult = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupExportResult
|
||||
Provider = Azure::Resources::Mgmt::V2019_07_01::Models::Provider
|
||||
OperationDisplay = Azure::Resources::Mgmt::V2019_07_01::Models::OperationDisplay
|
||||
ProviderListResult = Azure::Resources::Mgmt::V2019_07_01::Models::ProviderListResult
|
||||
Operation = Azure::Resources::Mgmt::V2019_07_01::Models::Operation
|
||||
OperationListResult = Azure::Resources::Mgmt::V2019_07_01::Models::OperationListResult
|
||||
DebugSetting = Azure::Resources::Mgmt::V2019_07_01::Models::DebugSetting
|
||||
TemplateHashResult = Azure::Resources::Mgmt::V2019_07_01::Models::TemplateHashResult
|
||||
DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentPropertiesExtended
|
||||
WhatIfPropertyChange = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfPropertyChange
|
||||
DeploymentWhatIfProperties = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfProperties
|
||||
GenericResource = Azure::Resources::Mgmt::V2019_07_01::Models::GenericResource
|
||||
DeploymentMode = Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentMode
|
||||
OnErrorDeploymentType = Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentType
|
||||
WhatIfResultFormat = Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfResultFormat
|
||||
ResourceIdentityType = Azure::Resources::Mgmt::V2019_07_01::Models::ResourceIdentityType
|
||||
PropertyChangeType = Azure::Resources::Mgmt::V2019_07_01::Models::PropertyChangeType
|
||||
ChangeType = Azure::Resources::Mgmt::V2019_07_01::Models::ChangeType
|
||||
Plan = Azure::Resources::Mgmt::V2020_06_01::Models::Plan
|
||||
Sku = Azure::Resources::Mgmt::V2020_06_01::Models::Sku
|
||||
GenericResourceFilter = Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceFilter
|
||||
IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2020_06_01::Models::IdentityUserAssignedIdentitiesValue
|
||||
TemplateLink = Azure::Resources::Mgmt::V2020_06_01::Models::TemplateLink
|
||||
Identity = Azure::Resources::Mgmt::V2020_06_01::Models::Identity
|
||||
DebugSetting = Azure::Resources::Mgmt::V2020_06_01::Models::DebugSetting
|
||||
OnErrorDeployment = Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeployment
|
||||
ExpressionEvaluationOptions = Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptions
|
||||
TagsResource = Azure::Resources::Mgmt::V2020_06_01::Models::TagsResource
|
||||
Deployment = Azure::Resources::Mgmt::V2020_06_01::Models::Deployment
|
||||
TagsPatchResource = Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchResource
|
||||
DeploymentExportResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExportResult
|
||||
ResourceListResult = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceListResult
|
||||
Tags = Azure::Resources::Mgmt::V2020_06_01::Models::Tags
|
||||
DeploymentWhatIf = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIf
|
||||
ResourceGroupProperties = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupProperties
|
||||
ErrorAdditionalInfo = Azure::Resources::Mgmt::V2020_06_01::Models::ErrorAdditionalInfo
|
||||
ResourceGroup = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroup
|
||||
ResourceGroupPatchable = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupPatchable
|
||||
AliasPathMetadata = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathMetadata
|
||||
ResourceGroupListResult = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupListResult
|
||||
AliasPath = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPath
|
||||
ResourcesMoveInfo = Azure::Resources::Mgmt::V2020_06_01::Models::ResourcesMoveInfo
|
||||
ProviderResourceType = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderResourceType
|
||||
ExportTemplateRequest = Azure::Resources::Mgmt::V2020_06_01::Models::ExportTemplateRequest
|
||||
BasicDependency = Azure::Resources::Mgmt::V2020_06_01::Models::BasicDependency
|
||||
TagCount = Azure::Resources::Mgmt::V2020_06_01::Models::TagCount
|
||||
OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentExtended
|
||||
TagValue = Azure::Resources::Mgmt::V2020_06_01::Models::TagValue
|
||||
DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentPropertiesExtended
|
||||
TagDetails = Azure::Resources::Mgmt::V2020_06_01::Models::TagDetails
|
||||
DeploymentExtended = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtended
|
||||
TagsListResult = Azure::Resources::Mgmt::V2020_06_01::Models::TagsListResult
|
||||
ProviderListResult = Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult
|
||||
TargetResource = Azure::Resources::Mgmt::V2020_06_01::Models::TargetResource
|
||||
ResourceGroupFilter = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupFilter
|
||||
HttpMessage = Azure::Resources::Mgmt::V2020_06_01::Models::HttpMessage
|
||||
DeploymentProperties = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentProperties
|
||||
StatusMessage = Azure::Resources::Mgmt::V2020_06_01::Models::StatusMessage
|
||||
DeploymentWhatIfSettings = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfSettings
|
||||
DeploymentOperationProperties = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationProperties
|
||||
ErrorResponse = Azure::Resources::Mgmt::V2020_06_01::Models::ErrorResponse
|
||||
DeploymentOperation = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperation
|
||||
AliasPattern = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPattern
|
||||
DeploymentOperationsListResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationsListResult
|
||||
Provider = Azure::Resources::Mgmt::V2020_06_01::Models::Provider
|
||||
ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceProviderOperationDisplayProperties
|
||||
ResourceReference = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceReference
|
||||
Resource = Azure::Resources::Mgmt::V2020_06_01::Models::Resource
|
||||
DeploymentListResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentListResult
|
||||
SubResource = Azure::Resources::Mgmt::V2020_06_01::Models::SubResource
|
||||
ParametersLink = Azure::Resources::Mgmt::V2020_06_01::Models::ParametersLink
|
||||
ResourceGroupExportResult = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupExportResult
|
||||
ScopedDeploymentWhatIf = Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeploymentWhatIf
|
||||
OperationDisplay = Azure::Resources::Mgmt::V2020_06_01::Models::OperationDisplay
|
||||
AliasModel = Azure::Resources::Mgmt::V2020_06_01::Models::AliasModel
|
||||
Operation = Azure::Resources::Mgmt::V2020_06_01::Models::Operation
|
||||
DeploymentValidateResult = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentValidateResult
|
||||
OperationListResult = Azure::Resources::Mgmt::V2020_06_01::Models::OperationListResult
|
||||
ScopedDeployment = Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeployment
|
||||
TemplateHashResult = Azure::Resources::Mgmt::V2020_06_01::Models::TemplateHashResult
|
||||
Dependency = Azure::Resources::Mgmt::V2020_06_01::Models::Dependency
|
||||
WhatIfPropertyChange = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfPropertyChange
|
||||
ApiProfile = Azure::Resources::Mgmt::V2020_06_01::Models::ApiProfile
|
||||
WhatIfChange = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfChange
|
||||
DeploymentExtendedFilter = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtendedFilter
|
||||
WhatIfOperationResult = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfOperationResult
|
||||
DeploymentWhatIfProperties = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfProperties
|
||||
GenericResource = Azure::Resources::Mgmt::V2020_06_01::Models::GenericResource
|
||||
GenericResourceExpanded = Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceExpanded
|
||||
DeploymentMode = Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentMode
|
||||
OnErrorDeploymentType = Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentType
|
||||
ExpressionEvaluationOptionsScopeType = Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptionsScopeType
|
||||
WhatIfResultFormat = Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfResultFormat
|
||||
AliasPathTokenType = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathTokenType
|
||||
AliasPathAttributes = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathAttributes
|
||||
AliasPatternType = Azure::Resources::Mgmt::V2020_06_01::Models::AliasPatternType
|
||||
AliasType = Azure::Resources::Mgmt::V2020_06_01::Models::AliasType
|
||||
ProvisioningState = Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningState
|
||||
ResourceIdentityType = Azure::Resources::Mgmt::V2020_06_01::Models::ResourceIdentityType
|
||||
ProvisioningOperation = Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningOperation
|
||||
PropertyChangeType = Azure::Resources::Mgmt::V2020_06_01::Models::PropertyChangeType
|
||||
ChangeType = Azure::Resources::Mgmt::V2020_06_01::Models::ChangeType
|
||||
TagsPatchOperation = Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchOperation
|
||||
end
|
||||
|
||||
#
|
||||
# ResourcesManagementClass
|
||||
#
|
||||
class ResourcesManagementClass
|
||||
attr_reader :operations, :deployments, :providers, :resources, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes
|
||||
attr_reader :operations, :deployments, :providers, :resources, :resource_groups, :tags_operations, :deployment_operations, :configurable, :base_url, :options, :model_classes
|
||||
|
||||
def initialize(options = {})
|
||||
if options.is_a?(Hash) && options.length == 0
|
||||
|
@ -101,7 +121,7 @@ module Azure::Resources::Profiles::Latest
|
|||
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
||||
@options = options[:options].nil? ? nil:options[:options]
|
||||
|
||||
@client_0 = Azure::Resources::Mgmt::V2019_07_01::ResourceManagementClient.new(configurable.credentials, base_url, options)
|
||||
@client_0 = Azure::Resources::Mgmt::V2020_06_01::ResourceManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(@client_0.respond_to?(:subscription_id))
|
||||
@client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
|
@ -111,7 +131,7 @@ module Azure::Resources::Profiles::Latest
|
|||
@providers = @client_0.providers
|
||||
@resources = @client_0.resources
|
||||
@resource_groups = @client_0.resource_groups
|
||||
@tags = @client_0.tags
|
||||
@tags_operations = @client_0.tags_operations
|
||||
@deployment_operations = @client_0.deployment_operations
|
||||
|
||||
@model_classes = ModelClasses.new
|
||||
|
@ -133,200 +153,260 @@ module Azure::Resources::Profiles::Latest
|
|||
end
|
||||
|
||||
class ModelClasses
|
||||
def sku
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Sku
|
||||
def plan
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Plan
|
||||
end
|
||||
def identity_user_assigned_identities_value
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::IdentityUserAssignedIdentitiesValue
|
||||
def sku
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Sku
|
||||
end
|
||||
def generic_resource_filter
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::GenericResourceFilter
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceFilter
|
||||
end
|
||||
def identity
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Identity
|
||||
def identity_user_assigned_identities_value
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::IdentityUserAssignedIdentitiesValue
|
||||
end
|
||||
def template_link
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TemplateLink
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TemplateLink
|
||||
end
|
||||
def parameters_link
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ParametersLink
|
||||
end
|
||||
def what_if_operation_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfOperationResult
|
||||
end
|
||||
def on_error_deployment
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeployment
|
||||
end
|
||||
def resource_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceListResult
|
||||
end
|
||||
def deployment
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Deployment
|
||||
end
|
||||
def resource_group_properties
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupProperties
|
||||
end
|
||||
def deployment_what_if_settings
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfSettings
|
||||
end
|
||||
def resource_group
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroup
|
||||
end
|
||||
def deployment_what_if
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIf
|
||||
end
|
||||
def resource_group_patchable
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupPatchable
|
||||
end
|
||||
def error_response
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ErrorResponse
|
||||
end
|
||||
def resource_group_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupListResult
|
||||
end
|
||||
def alias_path_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::AliasPathType
|
||||
end
|
||||
def resources_move_info
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourcesMoveInfo
|
||||
end
|
||||
def provider_resource_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ProviderResourceType
|
||||
end
|
||||
def export_template_request
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ExportTemplateRequest
|
||||
end
|
||||
def basic_dependency
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::BasicDependency
|
||||
end
|
||||
def tag_count
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TagCount
|
||||
end
|
||||
def on_error_deployment_extended
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentExtended
|
||||
end
|
||||
def tag_value
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TagValue
|
||||
end
|
||||
def deployment_validate_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentValidateResult
|
||||
end
|
||||
def tag_details
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TagDetails
|
||||
end
|
||||
def deployment_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentListResult
|
||||
end
|
||||
def tags_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TagsListResult
|
||||
end
|
||||
def plan
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Plan
|
||||
end
|
||||
def target_resource
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TargetResource
|
||||
end
|
||||
def resource_group_filter
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupFilter
|
||||
end
|
||||
def http_message
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::HttpMessage
|
||||
end
|
||||
def deployment_properties
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentProperties
|
||||
end
|
||||
def deployment_operation_properties
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationProperties
|
||||
end
|
||||
def what_if_change
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfChange
|
||||
end
|
||||
def error_additional_info
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ErrorAdditionalInfo
|
||||
end
|
||||
def deployment_operation
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperation
|
||||
end
|
||||
def alias_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::AliasType
|
||||
end
|
||||
def deployment_operations_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentOperationsListResult
|
||||
end
|
||||
def dependency
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Dependency
|
||||
end
|
||||
def resource_provider_operation_display_properties
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceProviderOperationDisplayProperties
|
||||
end
|
||||
def deployment_extended
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtended
|
||||
end
|
||||
def resource
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Resource
|
||||
end
|
||||
def deployment_extended_filter
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExtendedFilter
|
||||
end
|
||||
def sub_resource
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::SubResource
|
||||
end
|
||||
def deployment_export_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentExportResult
|
||||
end
|
||||
def resource_group_export_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceGroupExportResult
|
||||
end
|
||||
def provider
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Provider
|
||||
end
|
||||
def operation_display
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::OperationDisplay
|
||||
end
|
||||
def provider_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ProviderListResult
|
||||
end
|
||||
def operation
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::Operation
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::OperationListResult
|
||||
def identity
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Identity
|
||||
end
|
||||
def debug_setting
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DebugSetting
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DebugSetting
|
||||
end
|
||||
def template_hash_result
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::TemplateHashResult
|
||||
def on_error_deployment
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeployment
|
||||
end
|
||||
def expression_evaluation_options
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptions
|
||||
end
|
||||
def tags_resource
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagsResource
|
||||
end
|
||||
def deployment
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Deployment
|
||||
end
|
||||
def tags_patch_resource
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchResource
|
||||
end
|
||||
def deployment_export_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExportResult
|
||||
end
|
||||
def resource_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceListResult
|
||||
end
|
||||
def tags
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Tags
|
||||
end
|
||||
def deployment_what_if
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIf
|
||||
end
|
||||
def resource_group_properties
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupProperties
|
||||
end
|
||||
def error_additional_info
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ErrorAdditionalInfo
|
||||
end
|
||||
def resource_group
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroup
|
||||
end
|
||||
def resource_group_patchable
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupPatchable
|
||||
end
|
||||
def alias_path_metadata
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathMetadata
|
||||
end
|
||||
def resource_group_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupListResult
|
||||
end
|
||||
def alias_path
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasPath
|
||||
end
|
||||
def resources_move_info
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourcesMoveInfo
|
||||
end
|
||||
def provider_resource_type
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ProviderResourceType
|
||||
end
|
||||
def export_template_request
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ExportTemplateRequest
|
||||
end
|
||||
def basic_dependency
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::BasicDependency
|
||||
end
|
||||
def tag_count
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagCount
|
||||
end
|
||||
def on_error_deployment_extended
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentExtended
|
||||
end
|
||||
def tag_value
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagValue
|
||||
end
|
||||
def deployment_properties_extended
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentPropertiesExtended
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentPropertiesExtended
|
||||
end
|
||||
def tag_details
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagDetails
|
||||
end
|
||||
def deployment_extended
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtended
|
||||
end
|
||||
def tags_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagsListResult
|
||||
end
|
||||
def provider_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ProviderListResult
|
||||
end
|
||||
def target_resource
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TargetResource
|
||||
end
|
||||
def resource_group_filter
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupFilter
|
||||
end
|
||||
def http_message
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::HttpMessage
|
||||
end
|
||||
def deployment_properties
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentProperties
|
||||
end
|
||||
def status_message
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::StatusMessage
|
||||
end
|
||||
def deployment_what_if_settings
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfSettings
|
||||
end
|
||||
def deployment_operation_properties
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationProperties
|
||||
end
|
||||
def error_response
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ErrorResponse
|
||||
end
|
||||
def deployment_operation
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperation
|
||||
end
|
||||
def alias_pattern
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasPattern
|
||||
end
|
||||
def deployment_operations_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentOperationsListResult
|
||||
end
|
||||
def provider
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Provider
|
||||
end
|
||||
def resource_provider_operation_display_properties
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceProviderOperationDisplayProperties
|
||||
end
|
||||
def resource_reference
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceReference
|
||||
end
|
||||
def resource
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Resource
|
||||
end
|
||||
def deployment_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentListResult
|
||||
end
|
||||
def sub_resource
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::SubResource
|
||||
end
|
||||
def parameters_link
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ParametersLink
|
||||
end
|
||||
def resource_group_export_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceGroupExportResult
|
||||
end
|
||||
def scoped_deployment_what_if
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeploymentWhatIf
|
||||
end
|
||||
def operation_display
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::OperationDisplay
|
||||
end
|
||||
def alias_model
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasModel
|
||||
end
|
||||
def operation
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Operation
|
||||
end
|
||||
def deployment_validate_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentValidateResult
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::OperationListResult
|
||||
end
|
||||
def scoped_deployment
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ScopedDeployment
|
||||
end
|
||||
def template_hash_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TemplateHashResult
|
||||
end
|
||||
def dependency
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::Dependency
|
||||
end
|
||||
def what_if_property_change
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfPropertyChange
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfPropertyChange
|
||||
end
|
||||
def api_profile
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ApiProfile
|
||||
end
|
||||
def what_if_change
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfChange
|
||||
end
|
||||
def deployment_extended_filter
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentExtendedFilter
|
||||
end
|
||||
def what_if_operation_result
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfOperationResult
|
||||
end
|
||||
def deployment_what_if_properties
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentWhatIfProperties
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentWhatIfProperties
|
||||
end
|
||||
def generic_resource
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::GenericResource
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::GenericResource
|
||||
end
|
||||
def generic_resource_expanded
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::GenericResourceExpanded
|
||||
end
|
||||
def deployment_mode
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::DeploymentMode
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::DeploymentMode
|
||||
end
|
||||
def on_error_deployment_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::OnErrorDeploymentType
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::OnErrorDeploymentType
|
||||
end
|
||||
def expression_evaluation_options_scope_type
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ExpressionEvaluationOptionsScopeType
|
||||
end
|
||||
def what_if_result_format
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::WhatIfResultFormat
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::WhatIfResultFormat
|
||||
end
|
||||
def alias_path_token_type
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathTokenType
|
||||
end
|
||||
def alias_path_attributes
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasPathAttributes
|
||||
end
|
||||
def alias_pattern_type
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasPatternType
|
||||
end
|
||||
def alias_type
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::AliasType
|
||||
end
|
||||
def provisioning_state
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningState
|
||||
end
|
||||
def resource_identity_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ResourceIdentityType
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ResourceIdentityType
|
||||
end
|
||||
def provisioning_operation
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ProvisioningOperation
|
||||
end
|
||||
def property_change_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::PropertyChangeType
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::PropertyChangeType
|
||||
end
|
||||
def change_type
|
||||
Azure::Resources::Mgmt::V2019_07_01::Models::ChangeType
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::ChangeType
|
||||
end
|
||||
def tags_patch_operation
|
||||
Azure::Resources::Mgmt::V2020_06_01::Models::TagsPatchOperation
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure::Resources::Mgmt
|
||||
VERSION = '0.18.1'
|
||||
VERSION = '0.18.2'
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче