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
@@ -0,0 +1,515 @@
|
|
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 Providers
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Providers 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
|
+
# Unregisters a subscription from a resource provider.
|
26
|
+
#
|
27
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
28
|
+
# provider to unregister.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Provider] operation results.
|
33
|
+
#
|
34
|
+
def unregister(resource_provider_namespace, custom_headers = nil)
|
35
|
+
response = unregister_async(resource_provider_namespace, custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Unregisters a subscription from a resource provider.
|
41
|
+
#
|
42
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
43
|
+
# provider to unregister.
|
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 unregister_with_http_info(resource_provider_namespace, custom_headers = nil)
|
50
|
+
unregister_async(resource_provider_namespace, custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Unregisters a subscription from a resource provider.
|
55
|
+
#
|
56
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
57
|
+
# provider to unregister.
|
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 unregister_async(resource_provider_namespace, custom_headers = nil)
|
64
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
65
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
66
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
67
|
+
|
68
|
+
|
69
|
+
request_headers = {}
|
70
|
+
|
71
|
+
# Set Headers
|
72
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
73
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
74
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'
|
75
|
+
|
76
|
+
request_url = @base_url || @client.base_url
|
77
|
+
|
78
|
+
options = {
|
79
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
80
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
|
81
|
+
query_params: {'api-version' => @client.api_version},
|
82
|
+
headers: request_headers.merge(custom_headers || {}),
|
83
|
+
base_url: request_url
|
84
|
+
}
|
85
|
+
promise = @client.make_request_async(:post, path_template, options)
|
86
|
+
|
87
|
+
promise = promise.then do |result|
|
88
|
+
http_response = result.response
|
89
|
+
status_code = http_response.status
|
90
|
+
response_content = http_response.body
|
91
|
+
unless status_code == 200
|
92
|
+
error_model = JSON.load(response_content)
|
93
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
94
|
+
end
|
95
|
+
|
96
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
97
|
+
# Deserialize Response
|
98
|
+
if status_code == 200
|
99
|
+
begin
|
100
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::Provider.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
103
|
+
rescue Exception => e
|
104
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
promise.execute
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# Registers a subscription with a resource provider.
|
116
|
+
#
|
117
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
118
|
+
# provider to register.
|
119
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
120
|
+
# will be added to the HTTP request.
|
121
|
+
#
|
122
|
+
# @return [Provider] operation results.
|
123
|
+
#
|
124
|
+
def register(resource_provider_namespace, custom_headers = nil)
|
125
|
+
response = register_async(resource_provider_namespace, custom_headers).value!
|
126
|
+
response.body unless response.nil?
|
127
|
+
end
|
128
|
+
|
129
|
+
#
|
130
|
+
# Registers a subscription with a resource provider.
|
131
|
+
#
|
132
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
133
|
+
# provider to register.
|
134
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
135
|
+
# will be added to the HTTP request.
|
136
|
+
#
|
137
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
138
|
+
#
|
139
|
+
def register_with_http_info(resource_provider_namespace, custom_headers = nil)
|
140
|
+
register_async(resource_provider_namespace, custom_headers).value!
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# Registers a subscription with a resource provider.
|
145
|
+
#
|
146
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
147
|
+
# provider to register.
|
148
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
149
|
+
# to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
152
|
+
#
|
153
|
+
def register_async(resource_provider_namespace, custom_headers = nil)
|
154
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
155
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
156
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
157
|
+
|
158
|
+
|
159
|
+
request_headers = {}
|
160
|
+
|
161
|
+
# Set Headers
|
162
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
163
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
164
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'
|
165
|
+
|
166
|
+
request_url = @base_url || @client.base_url
|
167
|
+
|
168
|
+
options = {
|
169
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
170
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
|
171
|
+
query_params: {'api-version' => @client.api_version},
|
172
|
+
headers: request_headers.merge(custom_headers || {}),
|
173
|
+
base_url: request_url
|
174
|
+
}
|
175
|
+
promise = @client.make_request_async(:post, path_template, options)
|
176
|
+
|
177
|
+
promise = promise.then do |result|
|
178
|
+
http_response = result.response
|
179
|
+
status_code = http_response.status
|
180
|
+
response_content = http_response.body
|
181
|
+
unless status_code == 200
|
182
|
+
error_model = JSON.load(response_content)
|
183
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
184
|
+
end
|
185
|
+
|
186
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
187
|
+
# Deserialize Response
|
188
|
+
if status_code == 200
|
189
|
+
begin
|
190
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
191
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::Provider.mapper()
|
192
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
193
|
+
rescue Exception => e
|
194
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
result
|
199
|
+
end
|
200
|
+
|
201
|
+
promise.execute
|
202
|
+
end
|
203
|
+
|
204
|
+
#
|
205
|
+
# Gets all resource providers for a subscription.
|
206
|
+
#
|
207
|
+
# @param top [Integer] The number of results to return. If null is passed
|
208
|
+
# returns all deployments.
|
209
|
+
# @param expand [String] The properties to include in the results. For example,
|
210
|
+
# use &$expand=metadata in the query string to retrieve resource provider
|
211
|
+
# metadata. To include property aliases in response, use
|
212
|
+
# $expand=resourceTypes/aliases.
|
213
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
214
|
+
# will be added to the HTTP request.
|
215
|
+
#
|
216
|
+
# @return [Array<Provider>] operation results.
|
217
|
+
#
|
218
|
+
def list(top = nil, expand = nil, custom_headers = nil)
|
219
|
+
first_page = list_as_lazy(top, expand, custom_headers)
|
220
|
+
first_page.get_all_items
|
221
|
+
end
|
222
|
+
|
223
|
+
#
|
224
|
+
# Gets all resource providers for a subscription.
|
225
|
+
#
|
226
|
+
# @param top [Integer] The number of results to return. If null is passed
|
227
|
+
# returns all deployments.
|
228
|
+
# @param expand [String] The properties to include in the results. For example,
|
229
|
+
# use &$expand=metadata in the query string to retrieve resource provider
|
230
|
+
# metadata. To include property aliases in response, use
|
231
|
+
# $expand=resourceTypes/aliases.
|
232
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
|
+
# will be added to the HTTP request.
|
234
|
+
#
|
235
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
236
|
+
#
|
237
|
+
def list_with_http_info(top = nil, expand = nil, custom_headers = nil)
|
238
|
+
list_async(top, expand, custom_headers).value!
|
239
|
+
end
|
240
|
+
|
241
|
+
#
|
242
|
+
# Gets all resource providers for a subscription.
|
243
|
+
#
|
244
|
+
# @param top [Integer] The number of results to return. If null is passed
|
245
|
+
# returns all deployments.
|
246
|
+
# @param expand [String] The properties to include in the results. For example,
|
247
|
+
# use &$expand=metadata in the query string to retrieve resource provider
|
248
|
+
# metadata. To include property aliases in response, use
|
249
|
+
# $expand=resourceTypes/aliases.
|
250
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
251
|
+
# to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
254
|
+
#
|
255
|
+
def list_async(top = nil, expand = nil, custom_headers = nil)
|
256
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
257
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
258
|
+
|
259
|
+
|
260
|
+
request_headers = {}
|
261
|
+
|
262
|
+
# Set Headers
|
263
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
264
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
265
|
+
path_template = 'subscriptions/{subscriptionId}/providers'
|
266
|
+
|
267
|
+
request_url = @base_url || @client.base_url
|
268
|
+
|
269
|
+
options = {
|
270
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
271
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
272
|
+
query_params: {'$top' => top,'$expand' => expand,'api-version' => @client.api_version},
|
273
|
+
headers: request_headers.merge(custom_headers || {}),
|
274
|
+
base_url: request_url
|
275
|
+
}
|
276
|
+
promise = @client.make_request_async(:get, path_template, options)
|
277
|
+
|
278
|
+
promise = promise.then do |result|
|
279
|
+
http_response = result.response
|
280
|
+
status_code = http_response.status
|
281
|
+
response_content = http_response.body
|
282
|
+
unless status_code == 200
|
283
|
+
error_model = JSON.load(response_content)
|
284
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
285
|
+
end
|
286
|
+
|
287
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
288
|
+
# Deserialize Response
|
289
|
+
if status_code == 200
|
290
|
+
begin
|
291
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
292
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ProviderListResult.mapper()
|
293
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
294
|
+
rescue Exception => e
|
295
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
result
|
300
|
+
end
|
301
|
+
|
302
|
+
promise.execute
|
303
|
+
end
|
304
|
+
|
305
|
+
#
|
306
|
+
# Gets the specified resource provider.
|
307
|
+
#
|
308
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
309
|
+
# provider.
|
310
|
+
# @param expand [String] The $expand query parameter. For example, to include
|
311
|
+
# property aliases in response, use $expand=resourceTypes/aliases.
|
312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
|
+
# will be added to the HTTP request.
|
314
|
+
#
|
315
|
+
# @return [Provider] operation results.
|
316
|
+
#
|
317
|
+
def get(resource_provider_namespace, expand = nil, custom_headers = nil)
|
318
|
+
response = get_async(resource_provider_namespace, expand, custom_headers).value!
|
319
|
+
response.body unless response.nil?
|
320
|
+
end
|
321
|
+
|
322
|
+
#
|
323
|
+
# Gets the specified resource provider.
|
324
|
+
#
|
325
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
326
|
+
# provider.
|
327
|
+
# @param expand [String] The $expand query parameter. For example, to include
|
328
|
+
# property aliases in response, use $expand=resourceTypes/aliases.
|
329
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
330
|
+
# will be added to the HTTP request.
|
331
|
+
#
|
332
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
333
|
+
#
|
334
|
+
def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil)
|
335
|
+
get_async(resource_provider_namespace, expand, custom_headers).value!
|
336
|
+
end
|
337
|
+
|
338
|
+
#
|
339
|
+
# Gets the specified resource provider.
|
340
|
+
#
|
341
|
+
# @param resource_provider_namespace [String] The namespace of the resource
|
342
|
+
# provider.
|
343
|
+
# @param expand [String] The $expand query parameter. For example, to include
|
344
|
+
# property aliases in response, use $expand=resourceTypes/aliases.
|
345
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
346
|
+
# to the HTTP request.
|
347
|
+
#
|
348
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
349
|
+
#
|
350
|
+
def get_async(resource_provider_namespace, expand = nil, custom_headers = nil)
|
351
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
352
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
353
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
354
|
+
|
355
|
+
|
356
|
+
request_headers = {}
|
357
|
+
|
358
|
+
# Set Headers
|
359
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
360
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
361
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'
|
362
|
+
|
363
|
+
request_url = @base_url || @client.base_url
|
364
|
+
|
365
|
+
options = {
|
366
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
367
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
|
368
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
369
|
+
headers: request_headers.merge(custom_headers || {}),
|
370
|
+
base_url: request_url
|
371
|
+
}
|
372
|
+
promise = @client.make_request_async(:get, path_template, options)
|
373
|
+
|
374
|
+
promise = promise.then do |result|
|
375
|
+
http_response = result.response
|
376
|
+
status_code = http_response.status
|
377
|
+
response_content = http_response.body
|
378
|
+
unless status_code == 200
|
379
|
+
error_model = JSON.load(response_content)
|
380
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
381
|
+
end
|
382
|
+
|
383
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
384
|
+
# Deserialize Response
|
385
|
+
if status_code == 200
|
386
|
+
begin
|
387
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
388
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::Provider.mapper()
|
389
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
390
|
+
rescue Exception => e
|
391
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
392
|
+
end
|
393
|
+
end
|
394
|
+
|
395
|
+
result
|
396
|
+
end
|
397
|
+
|
398
|
+
promise.execute
|
399
|
+
end
|
400
|
+
|
401
|
+
#
|
402
|
+
# Gets all resource providers for a subscription.
|
403
|
+
#
|
404
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
405
|
+
# to List operation.
|
406
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
407
|
+
# will be added to the HTTP request.
|
408
|
+
#
|
409
|
+
# @return [ProviderListResult] operation results.
|
410
|
+
#
|
411
|
+
def list_next(next_page_link, custom_headers = nil)
|
412
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
413
|
+
response.body unless response.nil?
|
414
|
+
end
|
415
|
+
|
416
|
+
#
|
417
|
+
# Gets all resource providers for a subscription.
|
418
|
+
#
|
419
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
420
|
+
# to List operation.
|
421
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
422
|
+
# will be added to the HTTP request.
|
423
|
+
#
|
424
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
425
|
+
#
|
426
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
427
|
+
list_next_async(next_page_link, custom_headers).value!
|
428
|
+
end
|
429
|
+
|
430
|
+
#
|
431
|
+
# Gets all resource providers for a subscription.
|
432
|
+
#
|
433
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
434
|
+
# to List operation.
|
435
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
436
|
+
# to the HTTP request.
|
437
|
+
#
|
438
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
439
|
+
#
|
440
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
441
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
442
|
+
|
443
|
+
|
444
|
+
request_headers = {}
|
445
|
+
|
446
|
+
# Set Headers
|
447
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
448
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
449
|
+
path_template = '{nextLink}'
|
450
|
+
|
451
|
+
request_url = @base_url || @client.base_url
|
452
|
+
|
453
|
+
options = {
|
454
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
455
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
456
|
+
headers: request_headers.merge(custom_headers || {}),
|
457
|
+
base_url: request_url
|
458
|
+
}
|
459
|
+
promise = @client.make_request_async(:get, path_template, options)
|
460
|
+
|
461
|
+
promise = promise.then do |result|
|
462
|
+
http_response = result.response
|
463
|
+
status_code = http_response.status
|
464
|
+
response_content = http_response.body
|
465
|
+
unless status_code == 200
|
466
|
+
error_model = JSON.load(response_content)
|
467
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
468
|
+
end
|
469
|
+
|
470
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
471
|
+
# Deserialize Response
|
472
|
+
if status_code == 200
|
473
|
+
begin
|
474
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
475
|
+
result_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ProviderListResult.mapper()
|
476
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
477
|
+
rescue Exception => e
|
478
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
result
|
483
|
+
end
|
484
|
+
|
485
|
+
promise.execute
|
486
|
+
end
|
487
|
+
|
488
|
+
#
|
489
|
+
# Gets all resource providers for a subscription.
|
490
|
+
#
|
491
|
+
# @param top [Integer] The number of results to return. If null is passed
|
492
|
+
# returns all deployments.
|
493
|
+
# @param expand [String] The properties to include in the results. For example,
|
494
|
+
# use &$expand=metadata in the query string to retrieve resource provider
|
495
|
+
# metadata. To include property aliases in response, use
|
496
|
+
# $expand=resourceTypes/aliases.
|
497
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
498
|
+
# will be added to the HTTP request.
|
499
|
+
#
|
500
|
+
# @return [ProviderListResult] which provide lazy access to pages of the
|
501
|
+
# response.
|
502
|
+
#
|
503
|
+
def list_as_lazy(top = nil, expand = nil, custom_headers = nil)
|
504
|
+
response = list_async(top, expand, custom_headers).value!
|
505
|
+
unless response.nil?
|
506
|
+
page = response.body
|
507
|
+
page.next_method = Proc.new do |next_page_link|
|
508
|
+
list_next_async(next_page_link, custom_headers)
|
509
|
+
end
|
510
|
+
page
|
511
|
+
end
|
512
|
+
end
|
513
|
+
|
514
|
+
end
|
515
|
+
end
|