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,65 @@
|
|
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::V2016_07_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Tag information.
|
10
|
+
#
|
11
|
+
class TagValue
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The tag ID.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The tag value.
|
19
|
+
attr_accessor :tag_value
|
20
|
+
|
21
|
+
# @return [TagCount] The tag value count.
|
22
|
+
attr_accessor :count
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for TagValue class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'TagValue',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'TagValue',
|
36
|
+
model_properties: {
|
37
|
+
id: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
tag_value: {
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'tagValue',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
count: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'count',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'TagCount'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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::V2016_07_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of subscription tags.
|
10
|
+
#
|
11
|
+
class TagsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<TagDetails>] The list of tags.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The URL to get the next set of results.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<TagDetails>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [TagsListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for TagsListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'TagsListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'TagsListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'TagDetailsElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'TagDetails'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: true,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,64 @@
|
|
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::V2016_07_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Target resource.
|
10
|
+
#
|
11
|
+
class TargetResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The ID of the resource.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The name of the resource.
|
19
|
+
attr_accessor :resource_name
|
20
|
+
|
21
|
+
# @return [String] The type of the resource.
|
22
|
+
attr_accessor :resource_type
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for TargetResource class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'TargetResource',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'TargetResource',
|
36
|
+
model_properties: {
|
37
|
+
id: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
resource_name: {
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'resourceName',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
resource_type: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'resourceType',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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::V2016_07_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Entity representing the reference to the template.
|
10
|
+
#
|
11
|
+
class TemplateLink
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] URI referencing the template.
|
16
|
+
attr_accessor :uri
|
17
|
+
|
18
|
+
# @return [String] If included it must match the ContentVersion in the
|
19
|
+
# template.
|
20
|
+
attr_accessor :content_version
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for TemplateLink class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'TemplateLink',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'TemplateLink',
|
34
|
+
model_properties: {
|
35
|
+
uri: {
|
36
|
+
required: true,
|
37
|
+
serialized_name: 'uri',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
content_version: {
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'contentVersion',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::Resources end
|
8
|
+
module Azure::Resources::Mgmt end
|
9
|
+
module Azure::Resources::Mgmt::V2016_07_01 end
|
@@ -0,0 +1,507 @@
|
|
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::V2016_07_01
|
7
|
+
#
|
8
|
+
# Providers
|
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 provider from a subscription.
|
26
|
+
#
|
27
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
28
|
+
# provider.
|
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 provider from a subscription.
|
41
|
+
#
|
42
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
43
|
+
# provider.
|
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 provider from a subscription.
|
55
|
+
#
|
56
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
57
|
+
# provider.
|
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::V2016_07_01::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 provider to be used with a subscription.
|
116
|
+
#
|
117
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
118
|
+
# provider.
|
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 provider to be used with a subscription.
|
131
|
+
#
|
132
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
133
|
+
# provider.
|
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 provider to be used with a subscription.
|
145
|
+
#
|
146
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
147
|
+
# provider.
|
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::V2016_07_01::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 a list of resource providers.
|
206
|
+
#
|
207
|
+
# @param top [Integer] Query parameters. If null is passed returns all
|
208
|
+
# deployments.
|
209
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
210
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
211
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
212
|
+
# will be added to the HTTP request.
|
213
|
+
#
|
214
|
+
# @return [Array<Provider>] operation results.
|
215
|
+
#
|
216
|
+
def list(top = nil, expand = nil, custom_headers = nil)
|
217
|
+
first_page = list_as_lazy(top, expand, custom_headers)
|
218
|
+
first_page.get_all_items
|
219
|
+
end
|
220
|
+
|
221
|
+
#
|
222
|
+
# Gets a list of resource providers.
|
223
|
+
#
|
224
|
+
# @param top [Integer] Query parameters. If null is passed returns all
|
225
|
+
# deployments.
|
226
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
227
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
228
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
229
|
+
# will be added to the HTTP request.
|
230
|
+
#
|
231
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
232
|
+
#
|
233
|
+
def list_with_http_info(top = nil, expand = nil, custom_headers = nil)
|
234
|
+
list_async(top, expand, custom_headers).value!
|
235
|
+
end
|
236
|
+
|
237
|
+
#
|
238
|
+
# Gets a list of resource providers.
|
239
|
+
#
|
240
|
+
# @param top [Integer] Query parameters. If null is passed returns all
|
241
|
+
# deployments.
|
242
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
243
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
244
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
245
|
+
# to the HTTP request.
|
246
|
+
#
|
247
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
248
|
+
#
|
249
|
+
def list_async(top = nil, expand = nil, custom_headers = nil)
|
250
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
251
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
252
|
+
|
253
|
+
|
254
|
+
request_headers = {}
|
255
|
+
|
256
|
+
# Set Headers
|
257
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
258
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
259
|
+
path_template = 'subscriptions/{subscriptionId}/providers'
|
260
|
+
|
261
|
+
request_url = @base_url || @client.base_url
|
262
|
+
|
263
|
+
options = {
|
264
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
265
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
266
|
+
query_params: {'$top' => top,'$expand' => expand,'api-version' => @client.api_version},
|
267
|
+
headers: request_headers.merge(custom_headers || {}),
|
268
|
+
base_url: request_url
|
269
|
+
}
|
270
|
+
promise = @client.make_request_async(:get, path_template, options)
|
271
|
+
|
272
|
+
promise = promise.then do |result|
|
273
|
+
http_response = result.response
|
274
|
+
status_code = http_response.status
|
275
|
+
response_content = http_response.body
|
276
|
+
unless status_code == 200
|
277
|
+
error_model = JSON.load(response_content)
|
278
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
279
|
+
end
|
280
|
+
|
281
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
282
|
+
# Deserialize Response
|
283
|
+
if status_code == 200
|
284
|
+
begin
|
285
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
286
|
+
result_mapper = Azure::Resources::Mgmt::V2016_07_01::Models::ProviderListResult.mapper()
|
287
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
288
|
+
rescue Exception => e
|
289
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
result
|
294
|
+
end
|
295
|
+
|
296
|
+
promise.execute
|
297
|
+
end
|
298
|
+
|
299
|
+
#
|
300
|
+
# Gets a resource provider.
|
301
|
+
#
|
302
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
303
|
+
# provider.
|
304
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
305
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
306
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
307
|
+
# will be added to the HTTP request.
|
308
|
+
#
|
309
|
+
# @return [Provider] operation results.
|
310
|
+
#
|
311
|
+
def get(resource_provider_namespace, expand = nil, custom_headers = nil)
|
312
|
+
response = get_async(resource_provider_namespace, expand, custom_headers).value!
|
313
|
+
response.body unless response.nil?
|
314
|
+
end
|
315
|
+
|
316
|
+
#
|
317
|
+
# Gets a resource provider.
|
318
|
+
#
|
319
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
320
|
+
# provider.
|
321
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
322
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
323
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
324
|
+
# will be added to the HTTP request.
|
325
|
+
#
|
326
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
327
|
+
#
|
328
|
+
def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil)
|
329
|
+
get_async(resource_provider_namespace, expand, custom_headers).value!
|
330
|
+
end
|
331
|
+
|
332
|
+
#
|
333
|
+
# Gets a resource provider.
|
334
|
+
#
|
335
|
+
# @param resource_provider_namespace [String] Namespace of the resource
|
336
|
+
# provider.
|
337
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
338
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
339
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
340
|
+
# to the HTTP request.
|
341
|
+
#
|
342
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
343
|
+
#
|
344
|
+
def get_async(resource_provider_namespace, expand = nil, custom_headers = nil)
|
345
|
+
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
346
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
347
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
348
|
+
|
349
|
+
|
350
|
+
request_headers = {}
|
351
|
+
|
352
|
+
# Set Headers
|
353
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
354
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
355
|
+
path_template = 'subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'
|
356
|
+
|
357
|
+
request_url = @base_url || @client.base_url
|
358
|
+
|
359
|
+
options = {
|
360
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
361
|
+
path_params: {'resourceProviderNamespace' => resource_provider_namespace,'subscriptionId' => @client.subscription_id},
|
362
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
363
|
+
headers: request_headers.merge(custom_headers || {}),
|
364
|
+
base_url: request_url
|
365
|
+
}
|
366
|
+
promise = @client.make_request_async(:get, path_template, options)
|
367
|
+
|
368
|
+
promise = promise.then do |result|
|
369
|
+
http_response = result.response
|
370
|
+
status_code = http_response.status
|
371
|
+
response_content = http_response.body
|
372
|
+
unless status_code == 200
|
373
|
+
error_model = JSON.load(response_content)
|
374
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
375
|
+
end
|
376
|
+
|
377
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
378
|
+
# Deserialize Response
|
379
|
+
if status_code == 200
|
380
|
+
begin
|
381
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
382
|
+
result_mapper = Azure::Resources::Mgmt::V2016_07_01::Models::Provider.mapper()
|
383
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
384
|
+
rescue Exception => e
|
385
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
result
|
390
|
+
end
|
391
|
+
|
392
|
+
promise.execute
|
393
|
+
end
|
394
|
+
|
395
|
+
#
|
396
|
+
# Gets a list of resource providers.
|
397
|
+
#
|
398
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
399
|
+
# to List operation.
|
400
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
401
|
+
# will be added to the HTTP request.
|
402
|
+
#
|
403
|
+
# @return [ProviderListResult] operation results.
|
404
|
+
#
|
405
|
+
def list_next(next_page_link, custom_headers = nil)
|
406
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
407
|
+
response.body unless response.nil?
|
408
|
+
end
|
409
|
+
|
410
|
+
#
|
411
|
+
# Gets a list of resource providers.
|
412
|
+
#
|
413
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
414
|
+
# to List operation.
|
415
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
416
|
+
# will be added to the HTTP request.
|
417
|
+
#
|
418
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
419
|
+
#
|
420
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
421
|
+
list_next_async(next_page_link, custom_headers).value!
|
422
|
+
end
|
423
|
+
|
424
|
+
#
|
425
|
+
# Gets a list of resource providers.
|
426
|
+
#
|
427
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
428
|
+
# to List operation.
|
429
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
430
|
+
# to the HTTP request.
|
431
|
+
#
|
432
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
433
|
+
#
|
434
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
435
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
436
|
+
|
437
|
+
|
438
|
+
request_headers = {}
|
439
|
+
|
440
|
+
# Set Headers
|
441
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
442
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
443
|
+
path_template = '{nextLink}'
|
444
|
+
|
445
|
+
request_url = @base_url || @client.base_url
|
446
|
+
|
447
|
+
options = {
|
448
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
449
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
450
|
+
headers: request_headers.merge(custom_headers || {}),
|
451
|
+
base_url: request_url
|
452
|
+
}
|
453
|
+
promise = @client.make_request_async(:get, path_template, options)
|
454
|
+
|
455
|
+
promise = promise.then do |result|
|
456
|
+
http_response = result.response
|
457
|
+
status_code = http_response.status
|
458
|
+
response_content = http_response.body
|
459
|
+
unless status_code == 200
|
460
|
+
error_model = JSON.load(response_content)
|
461
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
462
|
+
end
|
463
|
+
|
464
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
465
|
+
# Deserialize Response
|
466
|
+
if status_code == 200
|
467
|
+
begin
|
468
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
469
|
+
result_mapper = Azure::Resources::Mgmt::V2016_07_01::Models::ProviderListResult.mapper()
|
470
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
471
|
+
rescue Exception => e
|
472
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
result
|
477
|
+
end
|
478
|
+
|
479
|
+
promise.execute
|
480
|
+
end
|
481
|
+
|
482
|
+
#
|
483
|
+
# Gets a list of resource providers.
|
484
|
+
#
|
485
|
+
# @param top [Integer] Query parameters. If null is passed returns all
|
486
|
+
# deployments.
|
487
|
+
# @param expand [String] The $expand query parameter. e.g. To include property
|
488
|
+
# aliases in response, use $expand=resourceTypes/aliases.
|
489
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
490
|
+
# will be added to the HTTP request.
|
491
|
+
#
|
492
|
+
# @return [ProviderListResult] which provide lazy access to pages of the
|
493
|
+
# response.
|
494
|
+
#
|
495
|
+
def list_as_lazy(top = nil, expand = nil, custom_headers = nil)
|
496
|
+
response = list_async(top, expand, custom_headers).value!
|
497
|
+
unless response.nil?
|
498
|
+
page = response.body
|
499
|
+
page.next_method = Proc.new do |next_page_link|
|
500
|
+
list_next_async(next_page_link, custom_headers)
|
501
|
+
end
|
502
|
+
page
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
end
|
507
|
+
end
|