azure_mgmt_resources 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/lib/2016-02-01/generated/azure_mgmt_resources.rb +79 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +331 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +1000 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_path_type.rb +62 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/alias_type.rb +63 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/basic_dependency.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/debug_setting.rb +45 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/dependency.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment.rb +45 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +45 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_extended.rb +1 -1
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_extended_filter.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +94 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_mode.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +94 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/deployment_validate_result.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/generic_resource_filter.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/http_message.rb +45 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb +68 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/plan.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider.rb +83 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_list_result.rb +94 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource.rb +95 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +56 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_group_filter.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +94 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_group_properties.rb +1 -1
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_identity_type.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_list_result.rb +94 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +83 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/sku.rb +94 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/sub_resource.rb +45 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/tag_value.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/tags_list_result.rb +94 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/models/target_resource.rb +1 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/models/template_link.rb +55 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +507 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +1067 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +805 -0
- data/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +568 -0
- data/lib/{generated → 2016-02-01/generated}/azure_mgmt_resources/version.rb +2 -2
- data/lib/2016-07-01/generated/azure_mgmt_resources.rb +79 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +331 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +1000 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
- data/lib/{generated → 2016-07-01/generated}/azure_mgmt_resources/models/alias_type.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/debug_setting.rb +45 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/dependency.rb +82 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment.rb +45 -0
- data/lib/{generated → 2016-07-01/generated}/azure_mgmt_resources/models/deployment_export_result.rb +1 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_list_result.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation.rb +65 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +117 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties.rb +103 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +179 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource.rb +142 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/http_message.rb +45 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/identity.rb +68 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/plan.rb +74 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider.rb +83 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_list_result.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource.rb +95 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group.rb +97 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +56 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_list_result.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_list_result.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +83 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/sku.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/sub_resource.rb +45 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_details.rb +83 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/tags_list_result.rb +94 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/models/template_link.rb +55 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +507 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +1067 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +151 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +805 -0
- data/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +568 -0
- data/lib/{generated/azure_mgmt_resources/module_definition.rb → 2016-07-01/generated/azure_mgmt_resources/version.rb} +3 -3
- data/lib/2016-09-01/generated/azure_mgmt_resources.rb +79 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/deployment_operations.rb +4 -4
- data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +1086 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/alias_path_type.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/debug_setting.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/dependency.rb +82 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_operation.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_operation_properties.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_operations_list_result.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_properties.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/deployment_properties_extended.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/export_template_request.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/generic_resource.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/http_message.rb +45 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/identity.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/parameters_link.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/plan.rb +74 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/provider.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/provider_list_result.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/provider_resource_type.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource.rb +95 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resource_group.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_export_result.rb +56 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resource_group_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resource_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb +87 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/resources_move_info.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/sku.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/sub_resource.rb +45 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/tag_count.rb +1 -1
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/tag_details.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/tags_list_result.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/models/template_link.rb +1 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/providers.rb +6 -6
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +1086 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +149 -0
- data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +1429 -0
- data/lib/{generated → 2016-09-01/generated}/azure_mgmt_resources/tags.rb +7 -7
- data/lib/2016-09-01/generated/azure_mgmt_resources/version.rb +8 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources.rb +80 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +335 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/deployments.rb +12 -12
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb +61 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/alias_type.rb +62 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb +64 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/debug_setting.rb +52 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/dependency.rb +82 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment.rb +45 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb +44 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb +65 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb +44 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb +95 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb +16 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb +67 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb +125 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb +95 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb +117 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb +183 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb +57 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb +65 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource.rb +145 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb +64 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/http_message.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/identity.rb +68 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb +55 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +74 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider.rb +86 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb +95 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb +115 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +107 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource_group_export_result.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb +54 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb +95 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource_group_patchable.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb +45 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb +15 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb +95 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/resource_management_error_with_details.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb +85 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb +61 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/sku.rb +94 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/models/sub_resource.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_count.rb +54 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_details.rb +85 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/tag_value.rb +65 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb +95 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/target_resource.rb +64 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/template_link.rb +55 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/module_definition.rb +9 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +515 -0
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/resource_groups.rb +11 -11
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/resource_management_client.rb +3 -3
- data/lib/{generated → 2017-05-10/generated}/azure_mgmt_resources/resources.rb +17 -17
- data/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +593 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/version.rb +8 -0
- data/lib/azure_mgmt_resources.rb +6 -1
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/resources_profile_module.rb +240 -0
- data/lib/profiles/latest/resources_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/resources_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +236 -0
- data/lib/profiles/v2017_03_09/resources_module_definition.rb +9 -0
- data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +33 -0
- data/lib/version.rb +7 -0
- metadata +237 -59
- data/lib/generated/azure_mgmt_resources.rb +0 -80
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Resources::Mgmt::V2016_09_01
|
7
7
|
#
|
8
8
|
# Provides operations for working with resources and resource groups.
|
9
9
|
#
|
@@ -179,7 +179,7 @@ module Azure::ARM::Resources
|
|
179
179
|
if status_code == 200
|
180
180
|
begin
|
181
181
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
182
|
-
result_mapper = Azure::
|
182
|
+
result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagValue.mapper()
|
183
183
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
184
184
|
rescue Exception => e
|
185
185
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -189,7 +189,7 @@ module Azure::ARM::Resources
|
|
189
189
|
if status_code == 201
|
190
190
|
begin
|
191
191
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
192
|
-
result_mapper = Azure::
|
192
|
+
result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagValue.mapper()
|
193
193
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
194
194
|
rescue Exception => e
|
195
195
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -288,7 +288,7 @@ module Azure::ARM::Resources
|
|
288
288
|
if status_code == 200
|
289
289
|
begin
|
290
290
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
291
|
-
result_mapper = Azure::
|
291
|
+
result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagDetails.mapper()
|
292
292
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
293
293
|
rescue Exception => e
|
294
294
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -298,7 +298,7 @@ module Azure::ARM::Resources
|
|
298
298
|
if status_code == 201
|
299
299
|
begin
|
300
300
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
301
|
-
result_mapper = Azure::
|
301
|
+
result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagDetails.mapper()
|
302
302
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
303
303
|
rescue Exception => e
|
304
304
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -466,7 +466,7 @@ module Azure::ARM::Resources
|
|
466
466
|
if status_code == 200
|
467
467
|
begin
|
468
468
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
469
|
-
result_mapper = Azure::
|
469
|
+
result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagsListResult.mapper()
|
470
470
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
471
471
|
rescue Exception => e
|
472
472
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -556,7 +556,7 @@ module Azure::ARM::Resources
|
|
556
556
|
if status_code == 200
|
557
557
|
begin
|
558
558
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
559
|
-
result_mapper = Azure::
|
559
|
+
result_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::TagsListResult.mapper()
|
560
560
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
561
561
|
rescue Exception => e
|
562
562
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -0,0 +1,80 @@
|
|
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 '2017-05-10/generated/azure_mgmt_resources/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Resources::Mgmt::V2017_05_10
|
23
|
+
autoload :Deployments, '2017-05-10/generated/azure_mgmt_resources/deployments.rb'
|
24
|
+
autoload :Providers, '2017-05-10/generated/azure_mgmt_resources/providers.rb'
|
25
|
+
autoload :Resources, '2017-05-10/generated/azure_mgmt_resources/resources.rb'
|
26
|
+
autoload :ResourceGroups, '2017-05-10/generated/azure_mgmt_resources/resource_groups.rb'
|
27
|
+
autoload :Tags, '2017-05-10/generated/azure_mgmt_resources/tags.rb'
|
28
|
+
autoload :DeploymentOperations, '2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb'
|
29
|
+
autoload :ResourceManagementClient, '2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb'
|
30
|
+
|
31
|
+
module Models
|
32
|
+
autoload :Sku, '2017-05-10/generated/azure_mgmt_resources/models/sku.rb'
|
33
|
+
autoload :Identity, '2017-05-10/generated/azure_mgmt_resources/models/identity.rb'
|
34
|
+
autoload :GenericResourceFilter, '2017-05-10/generated/azure_mgmt_resources/models/generic_resource_filter.rb'
|
35
|
+
autoload :ResourceGroupFilter, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_filter.rb'
|
36
|
+
autoload :ParametersLink, '2017-05-10/generated/azure_mgmt_resources/models/parameters_link.rb'
|
37
|
+
autoload :ResourceListResult, '2017-05-10/generated/azure_mgmt_resources/models/resource_list_result.rb'
|
38
|
+
autoload :DeploymentProperties, '2017-05-10/generated/azure_mgmt_resources/models/deployment_properties.rb'
|
39
|
+
autoload :ResourceGroupProperties, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_properties.rb'
|
40
|
+
autoload :DeploymentExportResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_export_result.rb'
|
41
|
+
autoload :ResourceGroup, '2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb'
|
42
|
+
autoload :AliasPathType, '2017-05-10/generated/azure_mgmt_resources/models/alias_path_type.rb'
|
43
|
+
autoload :ResourceGroupPatchable, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_patchable.rb'
|
44
|
+
autoload :ProviderResourceType, '2017-05-10/generated/azure_mgmt_resources/models/provider_resource_type.rb'
|
45
|
+
autoload :ResourceGroupListResult, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_list_result.rb'
|
46
|
+
autoload :BasicDependency, '2017-05-10/generated/azure_mgmt_resources/models/basic_dependency.rb'
|
47
|
+
autoload :ResourcesMoveInfo, '2017-05-10/generated/azure_mgmt_resources/models/resources_move_info.rb'
|
48
|
+
autoload :DeploymentPropertiesExtended, '2017-05-10/generated/azure_mgmt_resources/models/deployment_properties_extended.rb'
|
49
|
+
autoload :ExportTemplateRequest, '2017-05-10/generated/azure_mgmt_resources/models/export_template_request.rb'
|
50
|
+
autoload :DeploymentExtended, '2017-05-10/generated/azure_mgmt_resources/models/deployment_extended.rb'
|
51
|
+
autoload :TagCount, '2017-05-10/generated/azure_mgmt_resources/models/tag_count.rb'
|
52
|
+
autoload :ProviderListResult, '2017-05-10/generated/azure_mgmt_resources/models/provider_list_result.rb'
|
53
|
+
autoload :TagValue, '2017-05-10/generated/azure_mgmt_resources/models/tag_value.rb'
|
54
|
+
autoload :DeploymentExtendedFilter, '2017-05-10/generated/azure_mgmt_resources/models/deployment_extended_filter.rb'
|
55
|
+
autoload :TagDetails, '2017-05-10/generated/azure_mgmt_resources/models/tag_details.rb'
|
56
|
+
autoload :DebugSetting, '2017-05-10/generated/azure_mgmt_resources/models/debug_setting.rb'
|
57
|
+
autoload :TagsListResult, '2017-05-10/generated/azure_mgmt_resources/models/tags_list_result.rb'
|
58
|
+
autoload :ResourceManagementErrorWithDetails, '2017-05-10/generated/azure_mgmt_resources/models/resource_management_error_with_details.rb'
|
59
|
+
autoload :TargetResource, '2017-05-10/generated/azure_mgmt_resources/models/target_resource.rb'
|
60
|
+
autoload :Provider, '2017-05-10/generated/azure_mgmt_resources/models/provider.rb'
|
61
|
+
autoload :HttpMessage, '2017-05-10/generated/azure_mgmt_resources/models/http_message.rb'
|
62
|
+
autoload :DeploymentValidateResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_validate_result.rb'
|
63
|
+
autoload :DeploymentOperationProperties, '2017-05-10/generated/azure_mgmt_resources/models/deployment_operation_properties.rb'
|
64
|
+
autoload :Plan, '2017-05-10/generated/azure_mgmt_resources/models/plan.rb'
|
65
|
+
autoload :DeploymentOperation, '2017-05-10/generated/azure_mgmt_resources/models/deployment_operation.rb'
|
66
|
+
autoload :Deployment, '2017-05-10/generated/azure_mgmt_resources/models/deployment.rb'
|
67
|
+
autoload :DeploymentOperationsListResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_operations_list_result.rb'
|
68
|
+
autoload :Dependency, '2017-05-10/generated/azure_mgmt_resources/models/dependency.rb'
|
69
|
+
autoload :ResourceProviderOperationDisplayProperties, '2017-05-10/generated/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb'
|
70
|
+
autoload :TemplateLink, '2017-05-10/generated/azure_mgmt_resources/models/template_link.rb'
|
71
|
+
autoload :Resource, '2017-05-10/generated/azure_mgmt_resources/models/resource.rb'
|
72
|
+
autoload :DeploymentListResult, '2017-05-10/generated/azure_mgmt_resources/models/deployment_list_result.rb'
|
73
|
+
autoload :SubResource, '2017-05-10/generated/azure_mgmt_resources/models/sub_resource.rb'
|
74
|
+
autoload :AliasType, '2017-05-10/generated/azure_mgmt_resources/models/alias_type.rb'
|
75
|
+
autoload :ResourceGroupExportResult, '2017-05-10/generated/azure_mgmt_resources/models/resource_group_export_result.rb'
|
76
|
+
autoload :GenericResource, '2017-05-10/generated/azure_mgmt_resources/models/generic_resource.rb'
|
77
|
+
autoload :DeploymentMode, '2017-05-10/generated/azure_mgmt_resources/models/deployment_mode.rb'
|
78
|
+
autoload :ResourceIdentityType, '2017-05-10/generated/azure_mgmt_resources/models/resource_identity_type.rb'
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,335 @@
|
|
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::V2017_05_10
|
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 resource_group_name [String] The name of the resource group. The name
|
28
|
+
# is case insensitive.
|
29
|
+
# @param deployment_name [String] The name of the deployment.
|
30
|
+
# @param operation_id [String] The ID of the operation to get.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [DeploymentOperation] operation results.
|
35
|
+
#
|
36
|
+
def get(resource_group_name, deployment_name, operation_id, custom_headers = nil)
|
37
|
+
response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets a deployments operation.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
45
|
+
# is case insensitive.
|
46
|
+
# @param deployment_name [String] The name of the deployment.
|
47
|
+
# @param operation_id [String] The ID of the operation to get.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers = nil)
|
54
|
+
get_async(resource_group_name, deployment_name, operation_id, custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets a deployments operation.
|
59
|
+
#
|
60
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
61
|
+
# is case insensitive.
|
62
|
+
# @param deployment_name [String] The name of the deployment.
|
63
|
+
# @param operation_id [String] The ID of the operation to get.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def get_async(resource_group_name, deployment_name, operation_id, custom_headers = nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
72
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
73
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
74
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
|
79
|
+
# Set Headers
|
80
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
81
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
82
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'
|
83
|
+
|
84
|
+
request_url = @base_url || @client.base_url
|
85
|
+
|
86
|
+
options = {
|
87
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
88
|
+
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
89
|
+
query_params: {'api-version' => @client.api_version},
|
90
|
+
headers: request_headers.merge(custom_headers || {}),
|
91
|
+
base_url: request_url
|
92
|
+
}
|
93
|
+
promise = @client.make_request_async(:get, path_template, options)
|
94
|
+
|
95
|
+
promise = promise.then do |result|
|
96
|
+
http_response = result.response
|
97
|
+
status_code = http_response.status
|
98
|
+
response_content = http_response.body
|
99
|
+
unless status_code == 200
|
100
|
+
error_model = JSON.load(response_content)
|
101
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
102
|
+
end
|
103
|
+
|
104
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
105
|
+
# Deserialize Response
|
106
|
+
if status_code == 200
|
107
|
+
begin
|
108
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
109
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::DeploymentOperation.mapper()
|
110
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
111
|
+
rescue Exception => e
|
112
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
promise.execute
|
120
|
+
end
|
121
|
+
|
122
|
+
#
|
123
|
+
# Gets all deployments operations for a deployment.
|
124
|
+
#
|
125
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
126
|
+
# is case insensitive.
|
127
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
128
|
+
# to get.
|
129
|
+
# @param top [Integer] The number of results to return.
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
+
# will be added to the HTTP request.
|
132
|
+
#
|
133
|
+
# @return [Array<DeploymentOperation>] operation results.
|
134
|
+
#
|
135
|
+
def list(resource_group_name, deployment_name, top = nil, custom_headers = nil)
|
136
|
+
first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers)
|
137
|
+
first_page.get_all_items
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Gets all deployments operations for a deployment.
|
142
|
+
#
|
143
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
144
|
+
# is case insensitive.
|
145
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
146
|
+
# to get.
|
147
|
+
# @param top [Integer] The number of results to return.
|
148
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
149
|
+
# will be added to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
152
|
+
#
|
153
|
+
def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil)
|
154
|
+
list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
155
|
+
end
|
156
|
+
|
157
|
+
#
|
158
|
+
# Gets all deployments operations for a deployment.
|
159
|
+
#
|
160
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
161
|
+
# is case insensitive.
|
162
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
163
|
+
# to get.
|
164
|
+
# @param top [Integer] The number of results to return.
|
165
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
166
|
+
# to the HTTP request.
|
167
|
+
#
|
168
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
|
+
#
|
170
|
+
def list_async(resource_group_name, deployment_name, top = nil, custom_headers = nil)
|
171
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
172
|
+
fail ArgumentError, 'deployment_name is nil' if deployment_name.nil?
|
173
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
174
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
175
|
+
|
176
|
+
|
177
|
+
request_headers = {}
|
178
|
+
|
179
|
+
# Set Headers
|
180
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
181
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
182
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'
|
183
|
+
|
184
|
+
request_url = @base_url || @client.base_url
|
185
|
+
|
186
|
+
options = {
|
187
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
188
|
+
path_params: {'resourceGroupName' => resource_group_name,'deploymentName' => deployment_name,'subscriptionId' => @client.subscription_id},
|
189
|
+
query_params: {'$top' => top,'api-version' => @client.api_version},
|
190
|
+
headers: request_headers.merge(custom_headers || {}),
|
191
|
+
base_url: request_url
|
192
|
+
}
|
193
|
+
promise = @client.make_request_async(:get, path_template, options)
|
194
|
+
|
195
|
+
promise = promise.then do |result|
|
196
|
+
http_response = result.response
|
197
|
+
status_code = http_response.status
|
198
|
+
response_content = http_response.body
|
199
|
+
unless status_code == 200
|
200
|
+
error_model = JSON.load(response_content)
|
201
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
202
|
+
end
|
203
|
+
|
204
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
205
|
+
# Deserialize Response
|
206
|
+
if status_code == 200
|
207
|
+
begin
|
208
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
209
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::DeploymentOperationsListResult.mapper()
|
210
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
211
|
+
rescue Exception => e
|
212
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
result
|
217
|
+
end
|
218
|
+
|
219
|
+
promise.execute
|
220
|
+
end
|
221
|
+
|
222
|
+
#
|
223
|
+
# Gets all deployments operations for a deployment.
|
224
|
+
#
|
225
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
226
|
+
# to List operation.
|
227
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
|
+
# will be added to the HTTP request.
|
229
|
+
#
|
230
|
+
# @return [DeploymentOperationsListResult] operation results.
|
231
|
+
#
|
232
|
+
def list_next(next_page_link, custom_headers = nil)
|
233
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
234
|
+
response.body unless response.nil?
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# Gets all deployments operations for a deployment.
|
239
|
+
#
|
240
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
241
|
+
# to List operation.
|
242
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
243
|
+
# will be added to the HTTP request.
|
244
|
+
#
|
245
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
246
|
+
#
|
247
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
248
|
+
list_next_async(next_page_link, custom_headers).value!
|
249
|
+
end
|
250
|
+
|
251
|
+
#
|
252
|
+
# Gets all deployments operations for a deployment.
|
253
|
+
#
|
254
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
255
|
+
# to List operation.
|
256
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
257
|
+
# to the HTTP request.
|
258
|
+
#
|
259
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
260
|
+
#
|
261
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
262
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
263
|
+
|
264
|
+
|
265
|
+
request_headers = {}
|
266
|
+
|
267
|
+
# Set Headers
|
268
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
269
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
270
|
+
path_template = '{nextLink}'
|
271
|
+
|
272
|
+
request_url = @base_url || @client.base_url
|
273
|
+
|
274
|
+
options = {
|
275
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
276
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
277
|
+
headers: request_headers.merge(custom_headers || {}),
|
278
|
+
base_url: request_url
|
279
|
+
}
|
280
|
+
promise = @client.make_request_async(:get, path_template, options)
|
281
|
+
|
282
|
+
promise = promise.then do |result|
|
283
|
+
http_response = result.response
|
284
|
+
status_code = http_response.status
|
285
|
+
response_content = http_response.body
|
286
|
+
unless status_code == 200
|
287
|
+
error_model = JSON.load(response_content)
|
288
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
289
|
+
end
|
290
|
+
|
291
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
292
|
+
# Deserialize Response
|
293
|
+
if status_code == 200
|
294
|
+
begin
|
295
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
296
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::DeploymentOperationsListResult.mapper()
|
297
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
298
|
+
rescue Exception => e
|
299
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
result
|
304
|
+
end
|
305
|
+
|
306
|
+
promise.execute
|
307
|
+
end
|
308
|
+
|
309
|
+
#
|
310
|
+
# Gets all deployments operations for a deployment.
|
311
|
+
#
|
312
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
313
|
+
# is case insensitive.
|
314
|
+
# @param deployment_name [String] The name of the deployment with the operation
|
315
|
+
# to get.
|
316
|
+
# @param top [Integer] The number of results to return.
|
317
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
318
|
+
# will be added to the HTTP request.
|
319
|
+
#
|
320
|
+
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
321
|
+
# of the response.
|
322
|
+
#
|
323
|
+
def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil)
|
324
|
+
response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
325
|
+
unless response.nil?
|
326
|
+
page = response.body
|
327
|
+
page.next_method = Proc.new do |next_page_link|
|
328
|
+
list_next_async(next_page_link, custom_headers)
|
329
|
+
end
|
330
|
+
page
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
334
|
+
end
|
335
|
+
end
|