azure_mgmt_resources 0.17.5 → 0.17.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +6 -6
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/export_template_request.rb +6 -6
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/export_template_request.rb +6 -6
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +5 -5
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +6 -6
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +6 -6
- data/lib/2018-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_extended.rb +12 -0
- data/lib/2018-05-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_resources/models/export_template_request.rb +6 -6
- data/lib/2018-05-01/generated/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_resources/models/resource_group.rb +12 -0
- data/lib/2018-05-01/generated/azure_mgmt_resources/resource_groups.rb +18 -7
- data/lib/2018-05-01/generated/azure_mgmt_resources/resource_management_client.rb +1 -1
- data/lib/2018-05-01/generated/azure_mgmt_resources/resources.rb +144 -16
- data/lib/2019-03-01/generated/azure_mgmt_resources.rb +88 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/deployment_operations.rb +665 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/deployments.rb +2184 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/debug_setting.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +134 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +210 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/operations.rb +219 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/providers.rb +530 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/resource_groups.rb +918 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/resources.rb +2338 -0
- data/lib/2019-03-01/generated/azure_mgmt_resources/tags.rb +611 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources.rb +88 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/deployment_operations.rb +973 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/deployments.rb +3250 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/dependency.rb +88 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +146 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +222 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/http_message.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/identity.rb +96 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/operation.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/plan.rb +90 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/provider.rb +104 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource.rb +110 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/sku.rb +101 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/models/template_link.rb +58 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/operations.rb +219 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/providers.rb +530 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/resource_groups.rb +918 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/resources.rb +2338 -0
- data/lib/2019-05-01/generated/azure_mgmt_resources/tags.rb +611 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources.rb +88 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/deployment_operations.rb +973 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/deployments.rb +3250 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb +65 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/alias_type.rb +66 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb +68 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/debug_setting.rb +53 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/dependency.rb +88 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment.rb +58 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb +46 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb +94 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +46 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb +99 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb +71 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +146 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +99 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb +136 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +222 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb +60 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +69 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/generic_resource.rb +158 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb +68 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/http_message.rb +46 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/identity.rb +96 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb +60 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/on_error_deployment.rb +60 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb +73 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/on_error_deployment_type.rb +16 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/operation.rb +58 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/operation_display.rb +80 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/operation_list_result.rb +100 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +58 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/plan.rb +90 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/provider.rb +104 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb +99 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb +137 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource.rb +110 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group.rb +128 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_export_result.rb +58 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb +57 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb +99 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_patchable.rb +90 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb +47 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb +18 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb +99 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +92 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +91 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb +65 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/sku.rb +101 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/sub_resource.rb +46 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/tag_count.rb +57 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/tag_details.rb +92 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/tag_value.rb +70 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb +99 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/target_resource.rb +68 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/models/template_link.rb +58 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/operations.rb +219 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/providers.rb +530 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/resource_groups.rb +918 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/resource_management_client.rb +155 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/resources.rb +2338 -0
- data/lib/2019-05-10/generated/azure_mgmt_resources/tags.rb +611 -0
- data/lib/azure_mgmt_resources.rb +3 -0
- data/lib/profiles/latest/modules/resources_profile_module.rb +116 -116
- data/lib/version.rb +1 -1
- metadata +195 -3
@@ -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.17.
|
151
|
+
sdk_information = "#{sdk_information}/0.17.6"
|
152
152
|
add_user_agent_information(sdk_information)
|
153
153
|
end
|
154
154
|
end
|
@@ -26,8 +26,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
26
26
|
#
|
27
27
|
# @param resource_group_name [String] The resource group with the resources to
|
28
28
|
# get.
|
29
|
-
# @param filter [String] The filter to apply on the operation
|
30
|
-
#
|
29
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
30
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
31
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
32
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
33
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
34
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
35
|
+
# use substringof(value, property) in the filter. The properties you can use
|
36
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
37
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
38
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
39
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
40
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
41
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
42
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
43
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
44
|
+
# @param expand [String] The $expand query parameter. You can expand
|
45
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
46
|
+
# $expand=changedTime,createdTime
|
31
47
|
# @param top [Integer] The number of results to return. If null is passed,
|
32
48
|
# returns all resources.
|
33
49
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -45,8 +61,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
45
61
|
#
|
46
62
|
# @param resource_group_name [String] The resource group with the resources to
|
47
63
|
# get.
|
48
|
-
# @param filter [String] The filter to apply on the operation
|
49
|
-
#
|
64
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
65
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
66
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
67
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
68
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
69
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
70
|
+
# use substringof(value, property) in the filter. The properties you can use
|
71
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
72
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
73
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
74
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
75
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
76
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
77
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
78
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
79
|
+
# @param expand [String] The $expand query parameter. You can expand
|
80
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
81
|
+
# $expand=changedTime,createdTime
|
50
82
|
# @param top [Integer] The number of results to return. If null is passed,
|
51
83
|
# returns all resources.
|
52
84
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -63,8 +95,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
63
95
|
#
|
64
96
|
# @param resource_group_name [String] The resource group with the resources to
|
65
97
|
# get.
|
66
|
-
# @param filter [String] The filter to apply on the operation
|
67
|
-
#
|
98
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
99
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
100
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
101
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
102
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
103
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
104
|
+
# use substringof(value, property) in the filter. The properties you can use
|
105
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
106
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
107
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
108
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
109
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
110
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
111
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
112
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
113
|
+
# @param expand [String] The $expand query parameter. You can expand
|
114
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
115
|
+
# $expand=changedTime,createdTime
|
68
116
|
# @param top [Integer] The number of results to return. If null is passed,
|
69
117
|
# returns all resources.
|
70
118
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -227,8 +275,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
227
275
|
#
|
228
276
|
# Get all the resources in a subscription.
|
229
277
|
#
|
230
|
-
# @param filter [String] The filter to apply on the operation
|
231
|
-
#
|
278
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
279
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
280
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
281
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
282
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
283
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
284
|
+
# use substringof(value, property) in the filter. The properties you can use
|
285
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
286
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
287
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
288
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
289
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
290
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
291
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
292
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
293
|
+
# @param expand [String] The $expand query parameter. You can expand
|
294
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
295
|
+
# $expand=changedTime,createdTime
|
232
296
|
# @param top [Integer] The number of results to return. If null is passed,
|
233
297
|
# returns all resource groups.
|
234
298
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -244,8 +308,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
244
308
|
#
|
245
309
|
# Get all the resources in a subscription.
|
246
310
|
#
|
247
|
-
# @param filter [String] The filter to apply on the operation
|
248
|
-
#
|
311
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
312
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
313
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
314
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
315
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
316
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
317
|
+
# use substringof(value, property) in the filter. The properties you can use
|
318
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
319
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
320
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
321
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
322
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
323
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
324
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
325
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
326
|
+
# @param expand [String] The $expand query parameter. You can expand
|
327
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
328
|
+
# $expand=changedTime,createdTime
|
249
329
|
# @param top [Integer] The number of results to return. If null is passed,
|
250
330
|
# returns all resource groups.
|
251
331
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -260,8 +340,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
260
340
|
#
|
261
341
|
# Get all the resources in a subscription.
|
262
342
|
#
|
263
|
-
# @param filter [String] The filter to apply on the operation
|
264
|
-
#
|
343
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
344
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
345
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
346
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
347
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
348
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
349
|
+
# use substringof(value, property) in the filter. The properties you can use
|
350
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
351
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
352
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
353
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
354
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
355
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
356
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
357
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
358
|
+
# @param expand [String] The $expand query parameter. You can expand
|
359
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
360
|
+
# $expand=changedTime,createdTime
|
265
361
|
# @param top [Integer] The number of results to return. If null is passed,
|
266
362
|
# returns all resource groups.
|
267
363
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -2161,8 +2257,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
2161
2257
|
#
|
2162
2258
|
# @param resource_group_name [String] The resource group with the resources to
|
2163
2259
|
# get.
|
2164
|
-
# @param filter [String] The filter to apply on the operation
|
2165
|
-
#
|
2260
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
2261
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
2262
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
2263
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
2264
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
2265
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
2266
|
+
# use substringof(value, property) in the filter. The properties you can use
|
2267
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
2268
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
2269
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
2270
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
2271
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
2272
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
2273
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
2274
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
2275
|
+
# @param expand [String] The $expand query parameter. You can expand
|
2276
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
2277
|
+
# $expand=changedTime,createdTime
|
2166
2278
|
# @param top [Integer] The number of results to return. If null is passed,
|
2167
2279
|
# returns all resources.
|
2168
2280
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -2185,8 +2297,24 @@ module Azure::Resources::Mgmt::V2018_05_01
|
|
2185
2297
|
#
|
2186
2298
|
# Get all the resources in a subscription.
|
2187
2299
|
#
|
2188
|
-
# @param filter [String] The filter to apply on the operation
|
2189
|
-
#
|
2300
|
+
# @param filter [String] The filter to apply on the operation.<br><br>The
|
2301
|
+
# properties you can use for eq (equals) or ne (not equals) are: location,
|
2302
|
+
# resourceType, name, resourceGroup, identity, identity/principalId, plan,
|
2303
|
+
# plan/publisher, plan/product, plan/name, plan/version, and
|
2304
|
+
# plan/promotionCode.<br><br>For example, to filter by a resource type, use:
|
2305
|
+
# $filter=resourceType eq 'Microsoft.Network/virtualNetworks'<br><br>You can
|
2306
|
+
# use substringof(value, property) in the filter. The properties you can use
|
2307
|
+
# for substring are: name and resourceGroup.<br><br>For example, to get all
|
2308
|
+
# resources with 'demo' anywhere in the name, use: $filter=substringof('demo',
|
2309
|
+
# name)<br><br>You can link more than one substringof together by adding and/or
|
2310
|
+
# operators.<br><br>You can filter by tag names and values. For example, to
|
2311
|
+
# filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue
|
2312
|
+
# eq 'Value1'<br><br>You can use some properties together when filtering. The
|
2313
|
+
# combinations you can use are: substringof and/or resourceType, plan and
|
2314
|
+
# plan/publisher and plan/name, identity and identity/principalId.
|
2315
|
+
# @param expand [String] The $expand query parameter. You can expand
|
2316
|
+
# createdTime and changedTime. For example, to expand both properties, use
|
2317
|
+
# $expand=changedTime,createdTime
|
2190
2318
|
# @param top [Integer] The number of results to return. If null is passed,
|
2191
2319
|
# returns all resource groups.
|
2192
2320
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -0,0 +1,88 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2019-03-01/generated/azure_mgmt_resources/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Resources::Mgmt::V2019_03_01
|
23
|
+
autoload :Operations, '2019-03-01/generated/azure_mgmt_resources/operations.rb'
|
24
|
+
autoload :Deployments, '2019-03-01/generated/azure_mgmt_resources/deployments.rb'
|
25
|
+
autoload :Providers, '2019-03-01/generated/azure_mgmt_resources/providers.rb'
|
26
|
+
autoload :Resources, '2019-03-01/generated/azure_mgmt_resources/resources.rb'
|
27
|
+
autoload :ResourceGroups, '2019-03-01/generated/azure_mgmt_resources/resource_groups.rb'
|
28
|
+
autoload :Tags, '2019-03-01/generated/azure_mgmt_resources/tags.rb'
|
29
|
+
autoload :DeploymentOperations, '2019-03-01/generated/azure_mgmt_resources/deployment_operations.rb'
|
30
|
+
autoload :ResourceManagementClient, '2019-03-01/generated/azure_mgmt_resources/resource_management_client.rb'
|
31
|
+
|
32
|
+
module Models
|
33
|
+
autoload :IdentityUserAssignedIdentitiesValue, '2019-03-01/generated/azure_mgmt_resources/models/identity_user_assigned_identities_value.rb'
|
34
|
+
autoload :Identity, '2019-03-01/generated/azure_mgmt_resources/models/identity.rb'
|
35
|
+
autoload :GenericResourceFilter, '2019-03-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
36
|
+
autoload :ResourceGroupFilter, '2019-03-01/generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
37
|
+
autoload :ParametersLink, '2019-03-01/generated/azure_mgmt_resources/models/parameters_link.rb'
|
38
|
+
autoload :ResourceListResult, '2019-03-01/generated/azure_mgmt_resources/models/resource_list_result.rb'
|
39
|
+
autoload :OnErrorDeployment, '2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment.rb'
|
40
|
+
autoload :ResourceGroupProperties, '2019-03-01/generated/azure_mgmt_resources/models/resource_group_properties.rb'
|
41
|
+
autoload :Deployment, '2019-03-01/generated/azure_mgmt_resources/models/deployment.rb'
|
42
|
+
autoload :ResourceGroup, '2019-03-01/generated/azure_mgmt_resources/models/resource_group.rb'
|
43
|
+
autoload :ResourceManagementErrorWithDetails, '2019-03-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
|
44
|
+
autoload :ResourceGroupPatchable, '2019-03-01/generated/azure_mgmt_resources/models/resource_group_patchable.rb'
|
45
|
+
autoload :AliasType, '2019-03-01/generated/azure_mgmt_resources/models/alias_type.rb'
|
46
|
+
autoload :ResourceGroupListResult, '2019-03-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb'
|
47
|
+
autoload :Provider, '2019-03-01/generated/azure_mgmt_resources/models/provider.rb'
|
48
|
+
autoload :ResourcesMoveInfo, '2019-03-01/generated/azure_mgmt_resources/models/resources_move_info.rb'
|
49
|
+
autoload :Dependency, '2019-03-01/generated/azure_mgmt_resources/models/dependency.rb'
|
50
|
+
autoload :ExportTemplateRequest, '2019-03-01/generated/azure_mgmt_resources/models/export_template_request.rb'
|
51
|
+
autoload :DeploymentPropertiesExtended, '2019-03-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
|
52
|
+
autoload :TagCount, '2019-03-01/generated/azure_mgmt_resources/models/tag_count.rb'
|
53
|
+
autoload :DeploymentExtended, '2019-03-01/generated/azure_mgmt_resources/models/deployment_extended.rb'
|
54
|
+
autoload :TagValue, '2019-03-01/generated/azure_mgmt_resources/models/tag_value.rb'
|
55
|
+
autoload :ProviderListResult, '2019-03-01/generated/azure_mgmt_resources/models/provider_list_result.rb'
|
56
|
+
autoload :TagDetails, '2019-03-01/generated/azure_mgmt_resources/models/tag_details.rb'
|
57
|
+
autoload :Sku, '2019-03-01/generated/azure_mgmt_resources/models/sku.rb'
|
58
|
+
autoload :TagsListResult, '2019-03-01/generated/azure_mgmt_resources/models/tags_list_result.rb'
|
59
|
+
autoload :TemplateLink, '2019-03-01/generated/azure_mgmt_resources/models/template_link.rb'
|
60
|
+
autoload :TargetResource, '2019-03-01/generated/azure_mgmt_resources/models/target_resource.rb'
|
61
|
+
autoload :DeploymentProperties, '2019-03-01/generated/azure_mgmt_resources/models/deployment_properties.rb'
|
62
|
+
autoload :HttpMessage, '2019-03-01/generated/azure_mgmt_resources/models/http_message.rb'
|
63
|
+
autoload :AliasPathType, '2019-03-01/generated/azure_mgmt_resources/models/alias_path_type.rb'
|
64
|
+
autoload :DeploymentOperationProperties, '2019-03-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb'
|
65
|
+
autoload :BasicDependency, '2019-03-01/generated/azure_mgmt_resources/models/basic_dependency.rb'
|
66
|
+
autoload :DeploymentOperation, '2019-03-01/generated/azure_mgmt_resources/models/deployment_operation.rb'
|
67
|
+
autoload :DeploymentValidateResult, '2019-03-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb'
|
68
|
+
autoload :DeploymentOperationsListResult, '2019-03-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb'
|
69
|
+
autoload :Plan, '2019-03-01/generated/azure_mgmt_resources/models/plan.rb'
|
70
|
+
autoload :ResourceProviderOperationDisplayProperties, '2019-03-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
|
71
|
+
autoload :DebugSetting, '2019-03-01/generated/azure_mgmt_resources/models/debug_setting.rb'
|
72
|
+
autoload :Resource, '2019-03-01/generated/azure_mgmt_resources/models/resource.rb'
|
73
|
+
autoload :ProviderResourceType, '2019-03-01/generated/azure_mgmt_resources/models/provider_resource_type.rb'
|
74
|
+
autoload :SubResource, '2019-03-01/generated/azure_mgmt_resources/models/sub_resource.rb'
|
75
|
+
autoload :DeploymentListResult, '2019-03-01/generated/azure_mgmt_resources/models/deployment_list_result.rb'
|
76
|
+
autoload :ResourceGroupExportResult, '2019-03-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb'
|
77
|
+
autoload :DeploymentExportResult, '2019-03-01/generated/azure_mgmt_resources/models/deployment_export_result.rb'
|
78
|
+
autoload :OperationDisplay, '2019-03-01/generated/azure_mgmt_resources/models/operation_display.rb'
|
79
|
+
autoload :DeploymentExtendedFilter, '2019-03-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
80
|
+
autoload :Operation, '2019-03-01/generated/azure_mgmt_resources/models/operation.rb'
|
81
|
+
autoload :OnErrorDeploymentExtended, '2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment_extended.rb'
|
82
|
+
autoload :OperationListResult, '2019-03-01/generated/azure_mgmt_resources/models/operation_list_result.rb'
|
83
|
+
autoload :GenericResource, '2019-03-01/generated/azure_mgmt_resources/models/generic_resource.rb'
|
84
|
+
autoload :DeploymentMode, '2019-03-01/generated/azure_mgmt_resources/models/deployment_mode.rb'
|
85
|
+
autoload :OnErrorDeploymentType, '2019-03-01/generated/azure_mgmt_resources/models/on_error_deployment_type.rb'
|
86
|
+
autoload :ResourceIdentityType, '2019-03-01/generated/azure_mgmt_resources/models/resource_identity_type.rb'
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,665 @@
|
|
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::V2019_03_01
|
7
|
+
#
|
8
|
+
# Provides operations for working with resources and resource groups.
|
9
|
+
#
|
10
|
+
class DeploymentOperations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the DeploymentOperations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ResourceManagementClient] reference to the ResourceManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets a deployments operation.
|
26
|
+
#
|
27
|
+
# @param deployment_name [String] The name of the deployment.
|
28
|
+
# @param operation_id [String] The ID of the operation to get.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [DeploymentOperation] operation results.
|
33
|
+
#
|
34
|
+
def get_at_subscription_scope(deployment_name, operation_id, custom_headers:nil)
|
35
|
+
response = get_at_subscription_scope_async(deployment_name, operation_id, custom_headers:custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets a deployments operation.
|
41
|
+
#
|
42
|
+
# @param deployment_name [String] The name of the deployment.
|
43
|
+
# @param operation_id [String] The ID of the operation to get.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def get_at_subscription_scope_with_http_info(deployment_name, operation_id, custom_headers:nil)
|
50
|
+
get_at_subscription_scope_async(deployment_name, operation_id, custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Gets a deployments operation.
|
55
|
+
#
|
56
|
+
# @param deployment_name [String] The name of the deployment.
|
57
|
+
# @param operation_id [String] The ID of the operation to get.
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def get_at_subscription_scope_async(deployment_name, operation_id, custom_headers:nil)
|
64
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
65
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
|
66
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
|
67
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
68
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
69
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
71
|
+
|
72
|
+
|
73
|
+
request_headers = {}
|
74
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
|
+
|
76
|
+
# Set Headers
|
77
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}'
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
options = {
|
84
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
|
+
path_params: {'deploymentName' => deployment_name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
86
|
+
query_params: {'api-version' => @client.api_version},
|
87
|
+
headers: request_headers.merge(custom_headers || {}),
|
88
|
+
base_url: request_url
|
89
|
+
}
|
90
|
+
promise = @client.make_request_async(:get, path_template, options)
|
91
|
+
|
92
|
+
promise = promise.then do |result|
|
93
|
+
http_response = result.response
|
94
|
+
status_code = http_response.status
|
95
|
+
response_content = http_response.body
|
96
|
+
unless status_code == 200
|
97
|
+
error_model = JSON.load(response_content)
|
98
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
99
|
+
end
|
100
|
+
|
101
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
102
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
103
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
104
|
+
# Deserialize Response
|
105
|
+
if status_code == 200
|
106
|
+
begin
|
107
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
108
|
+
result_mapper = Azure::Resources::Mgmt::V2019_03_01::Models::DeploymentOperation.mapper()
|
109
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
110
|
+
rescue Exception => e
|
111
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
result
|
116
|
+
end
|
117
|
+
|
118
|
+
promise.execute
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Gets all deployments operations for a deployment.
|
123
|
+
#
|
124
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
125
|
+
# to get.
|
126
|
+
# @param top [Integer] The number of results to return.
|
127
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
|
+
# will be added to the HTTP request.
|
129
|
+
#
|
130
|
+
# @return [Array<DeploymentOperation>] operation results.
|
131
|
+
#
|
132
|
+
def list_at_subscription_scope(deployment_name, top:nil, custom_headers:nil)
|
133
|
+
first_page = list_at_subscription_scope_as_lazy(deployment_name, top:top, custom_headers:custom_headers)
|
134
|
+
first_page.get_all_items
|
135
|
+
end
|
136
|
+
|
137
|
+
#
|
138
|
+
# Gets all deployments operations for a deployment.
|
139
|
+
#
|
140
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
141
|
+
# to get.
|
142
|
+
# @param top [Integer] The number of results to return.
|
143
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
144
|
+
# will be added to the HTTP request.
|
145
|
+
#
|
146
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
147
|
+
#
|
148
|
+
def list_at_subscription_scope_with_http_info(deployment_name, top:nil, custom_headers:nil)
|
149
|
+
list_at_subscription_scope_async(deployment_name, top:top, custom_headers:custom_headers).value!
|
150
|
+
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Gets all deployments operations for a deployment.
|
154
|
+
#
|
155
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
156
|
+
# to get.
|
157
|
+
# @param top [Integer] The number of results to return.
|
158
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
159
|
+
# to the HTTP request.
|
160
|
+
#
|
161
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
162
|
+
#
|
163
|
+
def list_at_subscription_scope_async(deployment_name, top:nil, custom_headers:nil)
|
164
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
165
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
|
166
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
|
167
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
168
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
169
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
170
|
+
|
171
|
+
|
172
|
+
request_headers = {}
|
173
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
174
|
+
|
175
|
+
# Set Headers
|
176
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
177
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
178
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations'
|
179
|
+
|
180
|
+
request_url = @base_url || @client.base_url
|
181
|
+
|
182
|
+
options = {
|
183
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
184
|
+
path_params: {'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
185
|
+
query_params: {'$top' => top,'api-version' => @client.api_version},
|
186
|
+
headers: request_headers.merge(custom_headers || {}),
|
187
|
+
base_url: request_url
|
188
|
+
}
|
189
|
+
promise = @client.make_request_async(:get, path_template, options)
|
190
|
+
|
191
|
+
promise = promise.then do |result|
|
192
|
+
http_response = result.response
|
193
|
+
status_code = http_response.status
|
194
|
+
response_content = http_response.body
|
195
|
+
unless status_code == 200
|
196
|
+
error_model = JSON.load(response_content)
|
197
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
198
|
+
end
|
199
|
+
|
200
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
201
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
202
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
203
|
+
# Deserialize Response
|
204
|
+
if status_code == 200
|
205
|
+
begin
|
206
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
207
|
+
result_mapper = Azure::Resources::Mgmt::V2019_03_01::Models::DeploymentOperationsListResult.mapper()
|
208
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
209
|
+
rescue Exception => e
|
210
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
result
|
215
|
+
end
|
216
|
+
|
217
|
+
promise.execute
|
218
|
+
end
|
219
|
+
|
220
|
+
#
|
221
|
+
# Gets a deployments operation.
|
222
|
+
#
|
223
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
224
|
+
# is case insensitive.
|
225
|
+
# @param deployment_name [String] The name of the deployment.
|
226
|
+
# @param operation_id [String] The ID of the operation to get.
|
227
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
|
+
# will be added to the HTTP request.
|
229
|
+
#
|
230
|
+
# @return [DeploymentOperation] operation results.
|
231
|
+
#
|
232
|
+
def get(resource_group_name, deployment_name, operation_id, custom_headers:nil)
|
233
|
+
response = get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value!
|
234
|
+
response.body unless response.nil?
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# Gets a deployments operation.
|
239
|
+
#
|
240
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
241
|
+
# is case insensitive.
|
242
|
+
# @param deployment_name [String] The name of the deployment.
|
243
|
+
# @param operation_id [String] The ID of the operation to get.
|
244
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
245
|
+
# will be added to the HTTP request.
|
246
|
+
#
|
247
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
248
|
+
#
|
249
|
+
def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers:nil)
|
250
|
+
get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value!
|
251
|
+
end
|
252
|
+
|
253
|
+
#
|
254
|
+
# Gets a deployments operation.
|
255
|
+
#
|
256
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
257
|
+
# is case insensitive.
|
258
|
+
# @param deployment_name [String] The name of the deployment.
|
259
|
+
# @param operation_id [String] The ID of the operation to get.
|
260
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
261
|
+
# to the HTTP request.
|
262
|
+
#
|
263
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
264
|
+
#
|
265
|
+
def get_async(resource_group_name, deployment_name, operation_id, custom_headers:nil)
|
266
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
267
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
268
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
269
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
270
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
271
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
|
272
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
|
273
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
274
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
275
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
276
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
277
|
+
|
278
|
+
|
279
|
+
request_headers = {}
|
280
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
281
|
+
|
282
|
+
# Set Headers
|
283
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
284
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
285
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'
|
286
|
+
|
287
|
+
request_url = @base_url || @client.base_url
|
288
|
+
|
289
|
+
options = {
|
290
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
291
|
+
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
292
|
+
query_params: {'api-version' => @client.api_version},
|
293
|
+
headers: request_headers.merge(custom_headers || {}),
|
294
|
+
base_url: request_url
|
295
|
+
}
|
296
|
+
promise = @client.make_request_async(:get, path_template, options)
|
297
|
+
|
298
|
+
promise = promise.then do |result|
|
299
|
+
http_response = result.response
|
300
|
+
status_code = http_response.status
|
301
|
+
response_content = http_response.body
|
302
|
+
unless status_code == 200
|
303
|
+
error_model = JSON.load(response_content)
|
304
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
305
|
+
end
|
306
|
+
|
307
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
308
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
309
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
310
|
+
# Deserialize Response
|
311
|
+
if status_code == 200
|
312
|
+
begin
|
313
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
314
|
+
result_mapper = Azure::Resources::Mgmt::V2019_03_01::Models::DeploymentOperation.mapper()
|
315
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
316
|
+
rescue Exception => e
|
317
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
result
|
322
|
+
end
|
323
|
+
|
324
|
+
promise.execute
|
325
|
+
end
|
326
|
+
|
327
|
+
#
|
328
|
+
# Gets all deployments operations for a deployment.
|
329
|
+
#
|
330
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
331
|
+
# is case insensitive.
|
332
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
333
|
+
# to get.
|
334
|
+
# @param top [Integer] The number of results to return.
|
335
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
336
|
+
# will be added to the HTTP request.
|
337
|
+
#
|
338
|
+
# @return [Array<DeploymentOperation>] operation results.
|
339
|
+
#
|
340
|
+
def list(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
341
|
+
first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers)
|
342
|
+
first_page.get_all_items
|
343
|
+
end
|
344
|
+
|
345
|
+
#
|
346
|
+
# Gets all deployments operations for a deployment.
|
347
|
+
#
|
348
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
349
|
+
# is case insensitive.
|
350
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
351
|
+
# to get.
|
352
|
+
# @param top [Integer] The number of results to return.
|
353
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
354
|
+
# will be added to the HTTP request.
|
355
|
+
#
|
356
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
357
|
+
#
|
358
|
+
def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
359
|
+
list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value!
|
360
|
+
end
|
361
|
+
|
362
|
+
#
|
363
|
+
# Gets all deployments operations for a deployment.
|
364
|
+
#
|
365
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
366
|
+
# is case insensitive.
|
367
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
368
|
+
# to get.
|
369
|
+
# @param top [Integer] The number of results to return.
|
370
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
371
|
+
# to the HTTP request.
|
372
|
+
#
|
373
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
|
+
#
|
375
|
+
def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
376
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
377
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
378
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
379
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
380
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
381
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MaxLength': '64'" if !deployment_name.nil? && deployment_name.length > 64
|
382
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'MinLength': '1'" if !deployment_name.nil? && deployment_name.length < 1
|
383
|
+
fail ArgumentError, "'deployment_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !deployment_name.nil? && deployment_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
384
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
385
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
386
|
+
|
387
|
+
|
388
|
+
request_headers = {}
|
389
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
390
|
+
|
391
|
+
# Set Headers
|
392
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
393
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
394
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'
|
395
|
+
|
396
|
+
request_url = @base_url || @client.base_url
|
397
|
+
|
398
|
+
options = {
|
399
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
400
|
+
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
401
|
+
query_params: {'$top' => top,'api-version' => @client.api_version},
|
402
|
+
headers: request_headers.merge(custom_headers || {}),
|
403
|
+
base_url: request_url
|
404
|
+
}
|
405
|
+
promise = @client.make_request_async(:get, path_template, options)
|
406
|
+
|
407
|
+
promise = promise.then do |result|
|
408
|
+
http_response = result.response
|
409
|
+
status_code = http_response.status
|
410
|
+
response_content = http_response.body
|
411
|
+
unless status_code == 200
|
412
|
+
error_model = JSON.load(response_content)
|
413
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
414
|
+
end
|
415
|
+
|
416
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
417
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
418
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
419
|
+
# Deserialize Response
|
420
|
+
if status_code == 200
|
421
|
+
begin
|
422
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
423
|
+
result_mapper = Azure::Resources::Mgmt::V2019_03_01::Models::DeploymentOperationsListResult.mapper()
|
424
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
425
|
+
rescue Exception => e
|
426
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
result
|
431
|
+
end
|
432
|
+
|
433
|
+
promise.execute
|
434
|
+
end
|
435
|
+
|
436
|
+
#
|
437
|
+
# Gets all deployments operations for a deployment.
|
438
|
+
#
|
439
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
440
|
+
# to List operation.
|
441
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
442
|
+
# will be added to the HTTP request.
|
443
|
+
#
|
444
|
+
# @return [DeploymentOperationsListResult] operation results.
|
445
|
+
#
|
446
|
+
def list_at_subscription_scope_next(next_page_link, custom_headers:nil)
|
447
|
+
response = list_at_subscription_scope_next_async(next_page_link, custom_headers:custom_headers).value!
|
448
|
+
response.body unless response.nil?
|
449
|
+
end
|
450
|
+
|
451
|
+
#
|
452
|
+
# Gets all deployments operations for a deployment.
|
453
|
+
#
|
454
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
455
|
+
# to List operation.
|
456
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
457
|
+
# will be added to the HTTP request.
|
458
|
+
#
|
459
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
460
|
+
#
|
461
|
+
def list_at_subscription_scope_next_with_http_info(next_page_link, custom_headers:nil)
|
462
|
+
list_at_subscription_scope_next_async(next_page_link, custom_headers:custom_headers).value!
|
463
|
+
end
|
464
|
+
|
465
|
+
#
|
466
|
+
# Gets all deployments operations for a deployment.
|
467
|
+
#
|
468
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
469
|
+
# to List operation.
|
470
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
471
|
+
# to the HTTP request.
|
472
|
+
#
|
473
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
474
|
+
#
|
475
|
+
def list_at_subscription_scope_next_async(next_page_link, custom_headers:nil)
|
476
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
477
|
+
|
478
|
+
|
479
|
+
request_headers = {}
|
480
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
481
|
+
|
482
|
+
# Set Headers
|
483
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
484
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
485
|
+
path_template = '{nextLink}'
|
486
|
+
|
487
|
+
request_url = @base_url || @client.base_url
|
488
|
+
|
489
|
+
options = {
|
490
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
491
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
492
|
+
headers: request_headers.merge(custom_headers || {}),
|
493
|
+
base_url: request_url
|
494
|
+
}
|
495
|
+
promise = @client.make_request_async(:get, path_template, options)
|
496
|
+
|
497
|
+
promise = promise.then do |result|
|
498
|
+
http_response = result.response
|
499
|
+
status_code = http_response.status
|
500
|
+
response_content = http_response.body
|
501
|
+
unless status_code == 200
|
502
|
+
error_model = JSON.load(response_content)
|
503
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
504
|
+
end
|
505
|
+
|
506
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
507
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
508
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
509
|
+
# Deserialize Response
|
510
|
+
if status_code == 200
|
511
|
+
begin
|
512
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
513
|
+
result_mapper = Azure::Resources::Mgmt::V2019_03_01::Models::DeploymentOperationsListResult.mapper()
|
514
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
515
|
+
rescue Exception => e
|
516
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
result
|
521
|
+
end
|
522
|
+
|
523
|
+
promise.execute
|
524
|
+
end
|
525
|
+
|
526
|
+
#
|
527
|
+
# Gets all deployments operations for a deployment.
|
528
|
+
#
|
529
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
530
|
+
# to List operation.
|
531
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
532
|
+
# will be added to the HTTP request.
|
533
|
+
#
|
534
|
+
# @return [DeploymentOperationsListResult] operation results.
|
535
|
+
#
|
536
|
+
def list_next(next_page_link, custom_headers:nil)
|
537
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
538
|
+
response.body unless response.nil?
|
539
|
+
end
|
540
|
+
|
541
|
+
#
|
542
|
+
# Gets all deployments operations for a deployment.
|
543
|
+
#
|
544
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
545
|
+
# to List operation.
|
546
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
547
|
+
# will be added to the HTTP request.
|
548
|
+
#
|
549
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
550
|
+
#
|
551
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
552
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
553
|
+
end
|
554
|
+
|
555
|
+
#
|
556
|
+
# Gets all deployments operations for a deployment.
|
557
|
+
#
|
558
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
559
|
+
# to List operation.
|
560
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
561
|
+
# to the HTTP request.
|
562
|
+
#
|
563
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
564
|
+
#
|
565
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
566
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
567
|
+
|
568
|
+
|
569
|
+
request_headers = {}
|
570
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
571
|
+
|
572
|
+
# Set Headers
|
573
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
574
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
575
|
+
path_template = '{nextLink}'
|
576
|
+
|
577
|
+
request_url = @base_url || @client.base_url
|
578
|
+
|
579
|
+
options = {
|
580
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
581
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
582
|
+
headers: request_headers.merge(custom_headers || {}),
|
583
|
+
base_url: request_url
|
584
|
+
}
|
585
|
+
promise = @client.make_request_async(:get, path_template, options)
|
586
|
+
|
587
|
+
promise = promise.then do |result|
|
588
|
+
http_response = result.response
|
589
|
+
status_code = http_response.status
|
590
|
+
response_content = http_response.body
|
591
|
+
unless status_code == 200
|
592
|
+
error_model = JSON.load(response_content)
|
593
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
594
|
+
end
|
595
|
+
|
596
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
597
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
598
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
599
|
+
# Deserialize Response
|
600
|
+
if status_code == 200
|
601
|
+
begin
|
602
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
603
|
+
result_mapper = Azure::Resources::Mgmt::V2019_03_01::Models::DeploymentOperationsListResult.mapper()
|
604
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
605
|
+
rescue Exception => e
|
606
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
607
|
+
end
|
608
|
+
end
|
609
|
+
|
610
|
+
result
|
611
|
+
end
|
612
|
+
|
613
|
+
promise.execute
|
614
|
+
end
|
615
|
+
|
616
|
+
#
|
617
|
+
# Gets all deployments operations for a deployment.
|
618
|
+
#
|
619
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
620
|
+
# to get.
|
621
|
+
# @param top [Integer] The number of results to return.
|
622
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
623
|
+
# will be added to the HTTP request.
|
624
|
+
#
|
625
|
+
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
626
|
+
# of the response.
|
627
|
+
#
|
628
|
+
def list_at_subscription_scope_as_lazy(deployment_name, top:nil, custom_headers:nil)
|
629
|
+
response = list_at_subscription_scope_async(deployment_name, top:top, custom_headers:custom_headers).value!
|
630
|
+
unless response.nil?
|
631
|
+
page = response.body
|
632
|
+
page.next_method = Proc.new do |next_page_link|
|
633
|
+
list_at_subscription_scope_next_async(next_page_link, custom_headers:custom_headers)
|
634
|
+
end
|
635
|
+
page
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
#
|
640
|
+
# Gets all deployments operations for a deployment.
|
641
|
+
#
|
642
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
643
|
+
# is case insensitive.
|
644
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
645
|
+
# to get.
|
646
|
+
# @param top [Integer] The number of results to return.
|
647
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
648
|
+
# will be added to the HTTP request.
|
649
|
+
#
|
650
|
+
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
651
|
+
# of the response.
|
652
|
+
#
|
653
|
+
def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
654
|
+
response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value!
|
655
|
+
unless response.nil?
|
656
|
+
page = response.body
|
657
|
+
page.next_method = Proc.new do |next_page_link|
|
658
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
659
|
+
end
|
660
|
+
page
|
661
|
+
end
|
662
|
+
end
|
663
|
+
|
664
|
+
end
|
665
|
+
end
|