azure_mgmt_api_management 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management.rb +167 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +252 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_services.rb +1855 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/api_operations.rb +751 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/api_products.rb +272 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/apis.rb +820 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/authorization_servers.rb +692 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/backends.rb +699 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/certificates.rb +600 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb +549 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/groups.rb +736 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/identity_providers.rb +557 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/loggers.rb +677 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/additional_region.rb +112 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_contract.rb +168 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_export_result.rb +70 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb +313 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +46 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +128 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +79 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +294 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +61 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +76 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_protocol_contract.rb +16 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_type_contract.rb +16 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/async_operation_state.rb +18 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +47 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb +66 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_response.rb +73 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +66 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/bearer_token_sending_methods_contract.rb +16 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_contract.rb +84 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/client_authentication_method_contract.rb +16 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_body_contract.rb +79 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_response.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/grant_types_contract.rb +18 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb +119 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_create_parameters.rb +85 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_type_contract.rb +17 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_update_parameters.rb +85 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/hostname_configuration.rb +71 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/http_status_code.rb +20 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +106 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_list.rb +56 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_name_type.rb +19 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +91 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_create_parameters.rb +91 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_response.rb +111 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_update_parameters.rb +90 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/method_contract.rb +22 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb +300 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb +285 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +106 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb +95 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_contract.rb +162 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb +110 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_status.rb +17 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/patch_parameters.rb +46 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +85 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_contract.rb +159 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_state_contract.rb +16 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_update_parameters.rb +139 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb +118 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_create_parameters.rb +103 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +108 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_contract.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_list_result.rb +55 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb +331 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/reports_aggregation.rb +21 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/representation_contract.rb +58 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/result_contract.rb +82 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/sku_type.rb +17 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb +226 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_state_contract.rb +20 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +142 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_long_running_operation_result.rb +94 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_collection.rb +109 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb +138 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_create_parameters.rb +120 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_state_contract.rb +16 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_update_parameters.rb +111 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +85 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/module_definition.rb +9 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/open_id_connect_providers.rb +691 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/policy_snippets.rb +142 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/product_apis.rb +515 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb +524 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/products.rb +737 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb +688 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +238 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_period_keys.rb +237 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/regions.rb +120 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb +281 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb +895 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access.rb +394 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access_git.rb +288 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration.rb +505 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb +123 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/user_groups.rb +287 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/user_identities.rb +146 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/user_subscriptions.rb +312 -0
- data/lib/2016-07-07/generated/azure_mgmt_api_management/users.rb +874 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management.rb +193 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_export.rb +130 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +284 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb +1995 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations.rb +751 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations_policy.rb +394 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_policy.rb +364 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_products.rb +272 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/apis.rb +715 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/authorization_servers.rb +696 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/backends.rb +699 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/certificates.rb +612 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/group_users.rb +549 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/groups.rb +736 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/identity_providers.rb +557 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/loggers.rb +695 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/additional_region.rb +112 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_contract.rb +152 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +86 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_export_result.rb +70 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +46 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +128 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +79 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +353 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +61 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +76 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +310 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_protocol_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_type_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_update_contract.rb +152 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/async_operation_state.rb +18 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +47 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +225 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_contract.rb +211 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +135 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_response.rb +203 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +196 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/bearer_token_sending_methods_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_contract.rb +84 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/client_authentication_method_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +104 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_body_contract.rb +79 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_response.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/grant_types_contract.rb +18 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb +120 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_type_contract.rb +17 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/hostname_configuration.rb +71 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/http_status_code.rb +20 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +106 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_list.rb +56 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_name_type.rb +20 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +91 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/key_type_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_create_parameters.rb +91 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_response.rb +111 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_update_parameters.rb +90 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/method_contract.rb +22 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb +300 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb +285 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +106 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb +95 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation.rb +58 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_contract.rb +148 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +103 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_result_contract.rb +110 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_update_contract.rb +148 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +85 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_contract.rb +159 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_state_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_update_parameters.rb +139 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_contract.rb +118 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_create_parameters.rb +103 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +108 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_contract.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_list_result.rb +55 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb +336 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/reports_aggregation.rb +21 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/representation_contract.rb +58 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/resource.rb +101 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/result_contract.rb +82 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/sku_type.rb +17 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_contract.rb +226 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_state_contract.rb +20 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +142 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_collection.rb +109 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_contract.rb +138 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_create_parameters.rb +120 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_collection.rb +55 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_state_contract.rb +16 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_update_parameters.rb +111 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +87 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/module_definition.rb +9 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb +126 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/open_id_connect_providers.rb +697 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb +515 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/product_groups.rb +524 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/product_policy.rb +364 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/products.rb +737 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/properties.rb +268 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb +451 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +238 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_period_keys.rb +237 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/regions.rb +120 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb +281 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb +922 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access.rb +394 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access_git.rb +288 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration.rb +505 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb +123 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_policy.rb +334 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/user_groups.rb +287 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/user_identities.rb +130 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/user_subscriptions.rb +312 -0
- data/lib/2016-10-10/generated/azure_mgmt_api_management/users.rb +993 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management.rb +281 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb +1144 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb +874 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +649 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb +147 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb +352 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb +1914 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb +905 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb +639 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb +589 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb +893 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb +280 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb +738 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb +864 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb +819 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb +931 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb +730 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb +416 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb +812 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +614 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb +896 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb +839 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb +657 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb +819 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +80 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +48 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb +107 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +260 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +200 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +285 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +151 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb +47 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +321 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +441 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +60 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +77 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +430 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +72 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +199 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +221 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +96 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +48 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +85 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb +20 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +74 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +88 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +88 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +139 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb +71 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb +18 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +131 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +191 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +164 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb +121 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +86 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb +71 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb +87 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb +18 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +244 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +128 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +146 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb +179 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +154 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +83 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +140 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb +254 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb +469 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +807 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb +316 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb +526 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb +126 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb +862 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb +645 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb +643 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb +571 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb +312 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb +804 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb +230 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb +1690 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb +416 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb +416 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb +1070 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb +3081 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb +787 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb +356 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb +401 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb +1099 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb +287 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb +242 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb +312 -0
- data/lib/azure_mgmt_api_management.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/apimanagement_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/apimanagement_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/apimanagement_profile_module.rb +963 -0
- data/lib/version.rb +7 -0
- metadata +694 -0
|
@@ -0,0 +1,230 @@
|
|
|
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::ApiManagement::Mgmt::V2018_01_01
|
|
7
|
+
#
|
|
8
|
+
# ApiManagement Client
|
|
9
|
+
#
|
|
10
|
+
class Regions
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Creates and initializes a new instance of the Regions class.
|
|
15
|
+
# @param client service class for accessing basic functionality.
|
|
16
|
+
#
|
|
17
|
+
def initialize(client)
|
|
18
|
+
@client = client
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# @return [ApiManagementClient] reference to the ApiManagementClient
|
|
22
|
+
attr_reader :client
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
# Lists all azure regions in which the service exists.
|
|
26
|
+
#
|
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
28
|
+
# @param service_name [String] The name of the API Management service.
|
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
30
|
+
# will be added to the HTTP request.
|
|
31
|
+
#
|
|
32
|
+
# @return [Array<RegionContract>] operation results.
|
|
33
|
+
#
|
|
34
|
+
def list_by_service(resource_group_name, service_name, custom_headers:nil)
|
|
35
|
+
first_page = list_by_service_as_lazy(resource_group_name, service_name, custom_headers:custom_headers)
|
|
36
|
+
first_page.get_all_items
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
# Lists all azure regions in which the service exists.
|
|
41
|
+
#
|
|
42
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
43
|
+
# @param service_name [String] The name of the API Management service.
|
|
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 list_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil)
|
|
50
|
+
list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value!
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
#
|
|
54
|
+
# Lists all azure regions in which the service exists.
|
|
55
|
+
#
|
|
56
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
57
|
+
# @param service_name [String] The name of the API Management service.
|
|
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 list_by_service_async(resource_group_name, service_name, custom_headers:nil)
|
|
64
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
65
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
66
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
67
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
68
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
69
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
70
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
request_headers = {}
|
|
74
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
75
|
+
|
|
76
|
+
# Set Headers
|
|
77
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
78
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
79
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions'
|
|
80
|
+
|
|
81
|
+
request_url = @base_url || @client.base_url
|
|
82
|
+
|
|
83
|
+
options = {
|
|
84
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
85
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
86
|
+
query_params: {'api-version' => @client.api_version},
|
|
87
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
88
|
+
base_url: request_url
|
|
89
|
+
}
|
|
90
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
91
|
+
|
|
92
|
+
promise = promise.then do |result|
|
|
93
|
+
http_response = result.response
|
|
94
|
+
status_code = http_response.status
|
|
95
|
+
response_content = http_response.body
|
|
96
|
+
unless status_code == 200
|
|
97
|
+
error_model = JSON.load(response_content)
|
|
98
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
102
|
+
# Deserialize Response
|
|
103
|
+
if status_code == 200
|
|
104
|
+
begin
|
|
105
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
106
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::RegionListResult.mapper()
|
|
107
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
108
|
+
rescue Exception => e
|
|
109
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
result
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
promise.execute
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
#
|
|
120
|
+
# Lists all azure regions in which the service exists.
|
|
121
|
+
#
|
|
122
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
123
|
+
# to List operation.
|
|
124
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
125
|
+
# will be added to the HTTP request.
|
|
126
|
+
#
|
|
127
|
+
# @return [RegionListResult] operation results.
|
|
128
|
+
#
|
|
129
|
+
def list_by_service_next(next_page_link, custom_headers:nil)
|
|
130
|
+
response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
131
|
+
response.body unless response.nil?
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
#
|
|
135
|
+
# Lists all azure regions in which the service exists.
|
|
136
|
+
#
|
|
137
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
138
|
+
# to List operation.
|
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
140
|
+
# will be added to the HTTP request.
|
|
141
|
+
#
|
|
142
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
143
|
+
#
|
|
144
|
+
def list_by_service_next_with_http_info(next_page_link, custom_headers:nil)
|
|
145
|
+
list_by_service_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
#
|
|
149
|
+
# Lists all azure regions in which the service exists.
|
|
150
|
+
#
|
|
151
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
152
|
+
# to List operation.
|
|
153
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
154
|
+
# to the HTTP request.
|
|
155
|
+
#
|
|
156
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
157
|
+
#
|
|
158
|
+
def list_by_service_next_async(next_page_link, custom_headers:nil)
|
|
159
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
request_headers = {}
|
|
163
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
164
|
+
|
|
165
|
+
# Set Headers
|
|
166
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
167
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
168
|
+
path_template = '{nextLink}'
|
|
169
|
+
|
|
170
|
+
request_url = @base_url || @client.base_url
|
|
171
|
+
|
|
172
|
+
options = {
|
|
173
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
174
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
175
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
176
|
+
base_url: request_url
|
|
177
|
+
}
|
|
178
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
179
|
+
|
|
180
|
+
promise = promise.then do |result|
|
|
181
|
+
http_response = result.response
|
|
182
|
+
status_code = http_response.status
|
|
183
|
+
response_content = http_response.body
|
|
184
|
+
unless status_code == 200
|
|
185
|
+
error_model = JSON.load(response_content)
|
|
186
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
190
|
+
# Deserialize Response
|
|
191
|
+
if status_code == 200
|
|
192
|
+
begin
|
|
193
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
194
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::RegionListResult.mapper()
|
|
195
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
196
|
+
rescue Exception => e
|
|
197
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
result
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
promise.execute
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
#
|
|
208
|
+
# Lists all azure regions in which the service exists.
|
|
209
|
+
#
|
|
210
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
211
|
+
# @param service_name [String] The name of the API Management service.
|
|
212
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
213
|
+
# will be added to the HTTP request.
|
|
214
|
+
#
|
|
215
|
+
# @return [RegionListResult] which provide lazy access to pages of the
|
|
216
|
+
# response.
|
|
217
|
+
#
|
|
218
|
+
def list_by_service_as_lazy(resource_group_name, service_name, custom_headers:nil)
|
|
219
|
+
response = list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value!
|
|
220
|
+
unless response.nil?
|
|
221
|
+
page = response.body
|
|
222
|
+
page.next_method = Proc.new do |next_page_link|
|
|
223
|
+
list_by_service_next_async(next_page_link, custom_headers:custom_headers)
|
|
224
|
+
end
|
|
225
|
+
page
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
end
|
|
230
|
+
end
|
|
@@ -0,0 +1,1690 @@
|
|
|
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::ApiManagement::Mgmt::V2018_01_01
|
|
7
|
+
#
|
|
8
|
+
# ApiManagement Client
|
|
9
|
+
#
|
|
10
|
+
class Reports
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Creates and initializes a new instance of the Reports class.
|
|
15
|
+
# @param client service class for accessing basic functionality.
|
|
16
|
+
#
|
|
17
|
+
def initialize(client)
|
|
18
|
+
@client = client
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# @return [ApiManagementClient] reference to the ApiManagementClient
|
|
22
|
+
attr_reader :client
|
|
23
|
+
|
|
24
|
+
#
|
|
25
|
+
# Lists report records by API.
|
|
26
|
+
#
|
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
28
|
+
# @param service_name [String] The name of the API Management service.
|
|
29
|
+
# @param filter [String] The filter to apply on the operation.
|
|
30
|
+
# @param top [Integer] Number of records to return.
|
|
31
|
+
# @param skip [Integer] Number of records to skip.
|
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
33
|
+
# will be added to the HTTP request.
|
|
34
|
+
#
|
|
35
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
36
|
+
#
|
|
37
|
+
def list_by_api(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
38
|
+
first_page = list_by_api_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
39
|
+
first_page.get_all_items
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
#
|
|
43
|
+
# Lists report records by API.
|
|
44
|
+
#
|
|
45
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
46
|
+
# @param service_name [String] The name of the API Management service.
|
|
47
|
+
# @param filter [String] The filter to apply on the operation.
|
|
48
|
+
# @param top [Integer] Number of records to return.
|
|
49
|
+
# @param skip [Integer] Number of records to skip.
|
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
51
|
+
# will be added to the HTTP request.
|
|
52
|
+
#
|
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
54
|
+
#
|
|
55
|
+
def list_by_api_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
56
|
+
list_by_api_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
#
|
|
60
|
+
# Lists report records by API.
|
|
61
|
+
#
|
|
62
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
63
|
+
# @param service_name [String] The name of the API Management service.
|
|
64
|
+
# @param filter [String] The filter to apply on the operation.
|
|
65
|
+
# @param top [Integer] Number of records to return.
|
|
66
|
+
# @param skip [Integer] Number of records to skip.
|
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
68
|
+
# to the HTTP request.
|
|
69
|
+
#
|
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
71
|
+
#
|
|
72
|
+
def list_by_api_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
73
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
74
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
75
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
76
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
77
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
78
|
+
fail ArgumentError, 'filter is nil' if filter.nil?
|
|
79
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
80
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
81
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
82
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
request_headers = {}
|
|
86
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
87
|
+
|
|
88
|
+
# Set Headers
|
|
89
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
90
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
91
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi'
|
|
92
|
+
|
|
93
|
+
request_url = @base_url || @client.base_url
|
|
94
|
+
|
|
95
|
+
options = {
|
|
96
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
97
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
98
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
99
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
100
|
+
base_url: request_url
|
|
101
|
+
}
|
|
102
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
103
|
+
|
|
104
|
+
promise = promise.then do |result|
|
|
105
|
+
http_response = result.response
|
|
106
|
+
status_code = http_response.status
|
|
107
|
+
response_content = http_response.body
|
|
108
|
+
unless status_code == 200
|
|
109
|
+
error_model = JSON.load(response_content)
|
|
110
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
114
|
+
# Deserialize Response
|
|
115
|
+
if status_code == 200
|
|
116
|
+
begin
|
|
117
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
118
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
119
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
120
|
+
rescue Exception => e
|
|
121
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
result
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
promise.execute
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
#
|
|
132
|
+
# Lists report records by User.
|
|
133
|
+
#
|
|
134
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
135
|
+
# @param service_name [String] The name of the API Management service.
|
|
136
|
+
# @param filter [String] The filter to apply on the operation.
|
|
137
|
+
# @param top [Integer] Number of records to return.
|
|
138
|
+
# @param skip [Integer] Number of records to skip.
|
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
140
|
+
# will be added to the HTTP request.
|
|
141
|
+
#
|
|
142
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
143
|
+
#
|
|
144
|
+
def list_by_user(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
145
|
+
first_page = list_by_user_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
146
|
+
first_page.get_all_items
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
#
|
|
150
|
+
# Lists report records by User.
|
|
151
|
+
#
|
|
152
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
153
|
+
# @param service_name [String] The name of the API Management service.
|
|
154
|
+
# @param filter [String] The filter to apply on the operation.
|
|
155
|
+
# @param top [Integer] Number of records to return.
|
|
156
|
+
# @param skip [Integer] Number of records to skip.
|
|
157
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
158
|
+
# will be added to the HTTP request.
|
|
159
|
+
#
|
|
160
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
161
|
+
#
|
|
162
|
+
def list_by_user_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
163
|
+
list_by_user_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
#
|
|
167
|
+
# Lists report records by User.
|
|
168
|
+
#
|
|
169
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
170
|
+
# @param service_name [String] The name of the API Management service.
|
|
171
|
+
# @param filter [String] The filter to apply on the operation.
|
|
172
|
+
# @param top [Integer] Number of records to return.
|
|
173
|
+
# @param skip [Integer] Number of records to skip.
|
|
174
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
175
|
+
# to the HTTP request.
|
|
176
|
+
#
|
|
177
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
178
|
+
#
|
|
179
|
+
def list_by_user_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
180
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
181
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
182
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
183
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
184
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
185
|
+
fail ArgumentError, 'filter is nil' if filter.nil?
|
|
186
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
187
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
188
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
189
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
request_headers = {}
|
|
193
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
194
|
+
|
|
195
|
+
# Set Headers
|
|
196
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
197
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
198
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser'
|
|
199
|
+
|
|
200
|
+
request_url = @base_url || @client.base_url
|
|
201
|
+
|
|
202
|
+
options = {
|
|
203
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
204
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
205
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
206
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
207
|
+
base_url: request_url
|
|
208
|
+
}
|
|
209
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
210
|
+
|
|
211
|
+
promise = promise.then do |result|
|
|
212
|
+
http_response = result.response
|
|
213
|
+
status_code = http_response.status
|
|
214
|
+
response_content = http_response.body
|
|
215
|
+
unless status_code == 200
|
|
216
|
+
error_model = JSON.load(response_content)
|
|
217
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
221
|
+
# Deserialize Response
|
|
222
|
+
if status_code == 200
|
|
223
|
+
begin
|
|
224
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
225
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
226
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
227
|
+
rescue Exception => e
|
|
228
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
promise.execute
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
#
|
|
239
|
+
# Lists report records by API Operations.
|
|
240
|
+
#
|
|
241
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
242
|
+
# @param service_name [String] The name of the API Management service.
|
|
243
|
+
# @param filter [String] The filter to apply on the operation.
|
|
244
|
+
# @param top [Integer] Number of records to return.
|
|
245
|
+
# @param skip [Integer] Number of records to skip.
|
|
246
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
247
|
+
# will be added to the HTTP request.
|
|
248
|
+
#
|
|
249
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
250
|
+
#
|
|
251
|
+
def list_by_operation(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
252
|
+
first_page = list_by_operation_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
253
|
+
first_page.get_all_items
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
#
|
|
257
|
+
# Lists report records by API Operations.
|
|
258
|
+
#
|
|
259
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
260
|
+
# @param service_name [String] The name of the API Management service.
|
|
261
|
+
# @param filter [String] The filter to apply on the operation.
|
|
262
|
+
# @param top [Integer] Number of records to return.
|
|
263
|
+
# @param skip [Integer] Number of records to skip.
|
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
265
|
+
# will be added to the HTTP request.
|
|
266
|
+
#
|
|
267
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
268
|
+
#
|
|
269
|
+
def list_by_operation_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
270
|
+
list_by_operation_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
#
|
|
274
|
+
# Lists report records by API Operations.
|
|
275
|
+
#
|
|
276
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
277
|
+
# @param service_name [String] The name of the API Management service.
|
|
278
|
+
# @param filter [String] The filter to apply on the operation.
|
|
279
|
+
# @param top [Integer] Number of records to return.
|
|
280
|
+
# @param skip [Integer] Number of records to skip.
|
|
281
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
282
|
+
# to the HTTP request.
|
|
283
|
+
#
|
|
284
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
285
|
+
#
|
|
286
|
+
def list_by_operation_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
287
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
288
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
289
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
290
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
291
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
292
|
+
fail ArgumentError, 'filter is nil' if filter.nil?
|
|
293
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
294
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
295
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
296
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
request_headers = {}
|
|
300
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
301
|
+
|
|
302
|
+
# Set Headers
|
|
303
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
304
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
305
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation'
|
|
306
|
+
|
|
307
|
+
request_url = @base_url || @client.base_url
|
|
308
|
+
|
|
309
|
+
options = {
|
|
310
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
311
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
312
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
313
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
314
|
+
base_url: request_url
|
|
315
|
+
}
|
|
316
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
317
|
+
|
|
318
|
+
promise = promise.then do |result|
|
|
319
|
+
http_response = result.response
|
|
320
|
+
status_code = http_response.status
|
|
321
|
+
response_content = http_response.body
|
|
322
|
+
unless status_code == 200
|
|
323
|
+
error_model = JSON.load(response_content)
|
|
324
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
328
|
+
# Deserialize Response
|
|
329
|
+
if status_code == 200
|
|
330
|
+
begin
|
|
331
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
332
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
333
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
334
|
+
rescue Exception => e
|
|
335
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
result
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
promise.execute
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
#
|
|
346
|
+
# Lists report records by Product.
|
|
347
|
+
#
|
|
348
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
349
|
+
# @param service_name [String] The name of the API Management service.
|
|
350
|
+
# @param filter [String] The filter to apply on the operation.
|
|
351
|
+
# @param top [Integer] Number of records to return.
|
|
352
|
+
# @param skip [Integer] Number of records to skip.
|
|
353
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
354
|
+
# will be added to the HTTP request.
|
|
355
|
+
#
|
|
356
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
357
|
+
#
|
|
358
|
+
def list_by_product(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
359
|
+
first_page = list_by_product_as_lazy(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
360
|
+
first_page.get_all_items
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
#
|
|
364
|
+
# Lists report records by Product.
|
|
365
|
+
#
|
|
366
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
367
|
+
# @param service_name [String] The name of the API Management service.
|
|
368
|
+
# @param filter [String] The filter to apply on the operation.
|
|
369
|
+
# @param top [Integer] Number of records to return.
|
|
370
|
+
# @param skip [Integer] Number of records to skip.
|
|
371
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
372
|
+
# will be added to the HTTP request.
|
|
373
|
+
#
|
|
374
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
375
|
+
#
|
|
376
|
+
def list_by_product_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
377
|
+
list_by_product_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
#
|
|
381
|
+
# Lists report records by Product.
|
|
382
|
+
#
|
|
383
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
384
|
+
# @param service_name [String] The name of the API Management service.
|
|
385
|
+
# @param filter [String] The filter to apply on the operation.
|
|
386
|
+
# @param top [Integer] Number of records to return.
|
|
387
|
+
# @param skip [Integer] Number of records to skip.
|
|
388
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
389
|
+
# to the HTTP request.
|
|
390
|
+
#
|
|
391
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
392
|
+
#
|
|
393
|
+
def list_by_product_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
394
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
395
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
396
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
397
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
398
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
399
|
+
fail ArgumentError, 'filter is nil' if filter.nil?
|
|
400
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
401
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
402
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
403
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
request_headers = {}
|
|
407
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
408
|
+
|
|
409
|
+
# Set Headers
|
|
410
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
411
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
412
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct'
|
|
413
|
+
|
|
414
|
+
request_url = @base_url || @client.base_url
|
|
415
|
+
|
|
416
|
+
options = {
|
|
417
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
418
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
419
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
420
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
421
|
+
base_url: request_url
|
|
422
|
+
}
|
|
423
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
424
|
+
|
|
425
|
+
promise = promise.then do |result|
|
|
426
|
+
http_response = result.response
|
|
427
|
+
status_code = http_response.status
|
|
428
|
+
response_content = http_response.body
|
|
429
|
+
unless status_code == 200
|
|
430
|
+
error_model = JSON.load(response_content)
|
|
431
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
435
|
+
# Deserialize Response
|
|
436
|
+
if status_code == 200
|
|
437
|
+
begin
|
|
438
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
439
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
440
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
441
|
+
rescue Exception => e
|
|
442
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
443
|
+
end
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
result
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
promise.execute
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
#
|
|
453
|
+
# Lists report records by GeoGraphy.
|
|
454
|
+
#
|
|
455
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
456
|
+
# @param service_name [String] The name of the API Management service.
|
|
457
|
+
# @param filter [String] The filter to apply on the operation.
|
|
458
|
+
# @param top [Integer] Number of records to return.
|
|
459
|
+
# @param skip [Integer] Number of records to skip.
|
|
460
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
461
|
+
# will be added to the HTTP request.
|
|
462
|
+
#
|
|
463
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
464
|
+
#
|
|
465
|
+
def list_by_geo(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
466
|
+
first_page = list_by_geo_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
467
|
+
first_page.get_all_items
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
#
|
|
471
|
+
# Lists report records by GeoGraphy.
|
|
472
|
+
#
|
|
473
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
474
|
+
# @param service_name [String] The name of the API Management service.
|
|
475
|
+
# @param filter [String] The filter to apply on the operation.
|
|
476
|
+
# @param top [Integer] Number of records to return.
|
|
477
|
+
# @param skip [Integer] Number of records to skip.
|
|
478
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
479
|
+
# will be added to the HTTP request.
|
|
480
|
+
#
|
|
481
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
482
|
+
#
|
|
483
|
+
def list_by_geo_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
484
|
+
list_by_geo_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
#
|
|
488
|
+
# Lists report records by GeoGraphy.
|
|
489
|
+
#
|
|
490
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
491
|
+
# @param service_name [String] The name of the API Management service.
|
|
492
|
+
# @param filter [String] The filter to apply on the operation.
|
|
493
|
+
# @param top [Integer] Number of records to return.
|
|
494
|
+
# @param skip [Integer] Number of records to skip.
|
|
495
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
496
|
+
# to the HTTP request.
|
|
497
|
+
#
|
|
498
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
499
|
+
#
|
|
500
|
+
def list_by_geo_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
501
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
502
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
503
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
504
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
505
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
506
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
507
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
508
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
509
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
request_headers = {}
|
|
513
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
514
|
+
|
|
515
|
+
# Set Headers
|
|
516
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
517
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
518
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo'
|
|
519
|
+
|
|
520
|
+
request_url = @base_url || @client.base_url
|
|
521
|
+
|
|
522
|
+
options = {
|
|
523
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
524
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
525
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
526
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
527
|
+
base_url: request_url
|
|
528
|
+
}
|
|
529
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
530
|
+
|
|
531
|
+
promise = promise.then do |result|
|
|
532
|
+
http_response = result.response
|
|
533
|
+
status_code = http_response.status
|
|
534
|
+
response_content = http_response.body
|
|
535
|
+
unless status_code == 200
|
|
536
|
+
error_model = JSON.load(response_content)
|
|
537
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
541
|
+
# Deserialize Response
|
|
542
|
+
if status_code == 200
|
|
543
|
+
begin
|
|
544
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
545
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
546
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
547
|
+
rescue Exception => e
|
|
548
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
549
|
+
end
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
result
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
promise.execute
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
#
|
|
559
|
+
# Lists report records by subscription.
|
|
560
|
+
#
|
|
561
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
562
|
+
# @param service_name [String] The name of the API Management service.
|
|
563
|
+
# @param filter [String] The filter to apply on the operation.
|
|
564
|
+
# @param top [Integer] Number of records to return.
|
|
565
|
+
# @param skip [Integer] Number of records to skip.
|
|
566
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
567
|
+
# will be added to the HTTP request.
|
|
568
|
+
#
|
|
569
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
570
|
+
#
|
|
571
|
+
def list_by_subscription(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
572
|
+
first_page = list_by_subscription_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
573
|
+
first_page.get_all_items
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
#
|
|
577
|
+
# Lists report records by subscription.
|
|
578
|
+
#
|
|
579
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
580
|
+
# @param service_name [String] The name of the API Management service.
|
|
581
|
+
# @param filter [String] The filter to apply on the operation.
|
|
582
|
+
# @param top [Integer] Number of records to return.
|
|
583
|
+
# @param skip [Integer] Number of records to skip.
|
|
584
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
585
|
+
# will be added to the HTTP request.
|
|
586
|
+
#
|
|
587
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
588
|
+
#
|
|
589
|
+
def list_by_subscription_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
590
|
+
list_by_subscription_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
#
|
|
594
|
+
# Lists report records by subscription.
|
|
595
|
+
#
|
|
596
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
597
|
+
# @param service_name [String] The name of the API Management service.
|
|
598
|
+
# @param filter [String] The filter to apply on the operation.
|
|
599
|
+
# @param top [Integer] Number of records to return.
|
|
600
|
+
# @param skip [Integer] Number of records to skip.
|
|
601
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
602
|
+
# to the HTTP request.
|
|
603
|
+
#
|
|
604
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
605
|
+
#
|
|
606
|
+
def list_by_subscription_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
607
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
608
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
609
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
610
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
611
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
612
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
613
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
614
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
615
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
request_headers = {}
|
|
619
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
620
|
+
|
|
621
|
+
# Set Headers
|
|
622
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
623
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
624
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription'
|
|
625
|
+
|
|
626
|
+
request_url = @base_url || @client.base_url
|
|
627
|
+
|
|
628
|
+
options = {
|
|
629
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
630
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
631
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
632
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
633
|
+
base_url: request_url
|
|
634
|
+
}
|
|
635
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
636
|
+
|
|
637
|
+
promise = promise.then do |result|
|
|
638
|
+
http_response = result.response
|
|
639
|
+
status_code = http_response.status
|
|
640
|
+
response_content = http_response.body
|
|
641
|
+
unless status_code == 200
|
|
642
|
+
error_model = JSON.load(response_content)
|
|
643
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
647
|
+
# Deserialize Response
|
|
648
|
+
if status_code == 200
|
|
649
|
+
begin
|
|
650
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
651
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
652
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
653
|
+
rescue Exception => e
|
|
654
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
result
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
promise.execute
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
#
|
|
665
|
+
# Lists report records by Time.
|
|
666
|
+
#
|
|
667
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
668
|
+
# @param service_name [String] The name of the API Management service.
|
|
669
|
+
# @param interval [Duration] By time interval. Interval must be multiple of 15
|
|
670
|
+
# minutes and may not be zero. The value should be in ISO 8601 format
|
|
671
|
+
# (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
|
|
672
|
+
# convert TimeSpan to a valid interval string: XmlConvert.ToString(new
|
|
673
|
+
# TimeSpan(hours, minutes, secconds))
|
|
674
|
+
# @param filter [String] The filter to apply on the operation.
|
|
675
|
+
# @param top [Integer] Number of records to return.
|
|
676
|
+
# @param skip [Integer] Number of records to skip.
|
|
677
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
678
|
+
# will be added to the HTTP request.
|
|
679
|
+
#
|
|
680
|
+
# @return [Array<ReportRecordContract>] operation results.
|
|
681
|
+
#
|
|
682
|
+
def list_by_time(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
683
|
+
first_page = list_by_time_as_lazy(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
|
|
684
|
+
first_page.get_all_items
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
#
|
|
688
|
+
# Lists report records by Time.
|
|
689
|
+
#
|
|
690
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
691
|
+
# @param service_name [String] The name of the API Management service.
|
|
692
|
+
# @param interval [Duration] By time interval. Interval must be multiple of 15
|
|
693
|
+
# minutes and may not be zero. The value should be in ISO 8601 format
|
|
694
|
+
# (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
|
|
695
|
+
# convert TimeSpan to a valid interval string: XmlConvert.ToString(new
|
|
696
|
+
# TimeSpan(hours, minutes, secconds))
|
|
697
|
+
# @param filter [String] The filter to apply on the operation.
|
|
698
|
+
# @param top [Integer] Number of records to return.
|
|
699
|
+
# @param skip [Integer] Number of records to skip.
|
|
700
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
701
|
+
# will be added to the HTTP request.
|
|
702
|
+
#
|
|
703
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
704
|
+
#
|
|
705
|
+
def list_by_time_with_http_info(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
706
|
+
list_by_time_async(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
#
|
|
710
|
+
# Lists report records by Time.
|
|
711
|
+
#
|
|
712
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
713
|
+
# @param service_name [String] The name of the API Management service.
|
|
714
|
+
# @param interval [Duration] By time interval. Interval must be multiple of 15
|
|
715
|
+
# minutes and may not be zero. The value should be in ISO 8601 format
|
|
716
|
+
# (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
|
|
717
|
+
# convert TimeSpan to a valid interval string: XmlConvert.ToString(new
|
|
718
|
+
# TimeSpan(hours, minutes, secconds))
|
|
719
|
+
# @param filter [String] The filter to apply on the operation.
|
|
720
|
+
# @param top [Integer] Number of records to return.
|
|
721
|
+
# @param skip [Integer] Number of records to skip.
|
|
722
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
723
|
+
# to the HTTP request.
|
|
724
|
+
#
|
|
725
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
726
|
+
#
|
|
727
|
+
def list_by_time_async(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
728
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
729
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
730
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
731
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
732
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
733
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
734
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
735
|
+
fail ArgumentError, 'interval is nil' if interval.nil?
|
|
736
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
737
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
request_headers = {}
|
|
741
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
742
|
+
|
|
743
|
+
# Set Headers
|
|
744
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
745
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
746
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime'
|
|
747
|
+
|
|
748
|
+
request_url = @base_url || @client.base_url
|
|
749
|
+
|
|
750
|
+
options = {
|
|
751
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
752
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
753
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'interval' => interval,'api-version' => @client.api_version},
|
|
754
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
755
|
+
base_url: request_url
|
|
756
|
+
}
|
|
757
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
758
|
+
|
|
759
|
+
promise = promise.then do |result|
|
|
760
|
+
http_response = result.response
|
|
761
|
+
status_code = http_response.status
|
|
762
|
+
response_content = http_response.body
|
|
763
|
+
unless status_code == 200
|
|
764
|
+
error_model = JSON.load(response_content)
|
|
765
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
769
|
+
# Deserialize Response
|
|
770
|
+
if status_code == 200
|
|
771
|
+
begin
|
|
772
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
773
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
774
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
775
|
+
rescue Exception => e
|
|
776
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
777
|
+
end
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
result
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
promise.execute
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
#
|
|
787
|
+
# Lists report records by Request.
|
|
788
|
+
#
|
|
789
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
790
|
+
# @param service_name [String] The name of the API Management service.
|
|
791
|
+
# @param filter [String] The filter to apply on the operation.
|
|
792
|
+
# @param top [Integer] Number of records to return.
|
|
793
|
+
# @param skip [Integer] Number of records to skip.
|
|
794
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
795
|
+
# will be added to the HTTP request.
|
|
796
|
+
#
|
|
797
|
+
# @return [RequestReportCollection] operation results.
|
|
798
|
+
#
|
|
799
|
+
def list_by_request(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
800
|
+
response = list_by_request_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
801
|
+
response.body unless response.nil?
|
|
802
|
+
end
|
|
803
|
+
|
|
804
|
+
#
|
|
805
|
+
# Lists report records by Request.
|
|
806
|
+
#
|
|
807
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
808
|
+
# @param service_name [String] The name of the API Management service.
|
|
809
|
+
# @param filter [String] The filter to apply on the operation.
|
|
810
|
+
# @param top [Integer] Number of records to return.
|
|
811
|
+
# @param skip [Integer] Number of records to skip.
|
|
812
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
813
|
+
# will be added to the HTTP request.
|
|
814
|
+
#
|
|
815
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
816
|
+
#
|
|
817
|
+
def list_by_request_with_http_info(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
818
|
+
list_by_request_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
#
|
|
822
|
+
# Lists report records by Request.
|
|
823
|
+
#
|
|
824
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
825
|
+
# @param service_name [String] The name of the API Management service.
|
|
826
|
+
# @param filter [String] The filter to apply on the operation.
|
|
827
|
+
# @param top [Integer] Number of records to return.
|
|
828
|
+
# @param skip [Integer] Number of records to skip.
|
|
829
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
830
|
+
# to the HTTP request.
|
|
831
|
+
#
|
|
832
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
833
|
+
#
|
|
834
|
+
def list_by_request_async(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
835
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
836
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
|
837
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
|
838
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
|
839
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'" if !service_name.nil? && service_name.match(Regexp.new('^^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$$')).nil?
|
|
840
|
+
fail ArgumentError, 'filter is nil' if filter.nil?
|
|
841
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
|
842
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
|
843
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
844
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
request_headers = {}
|
|
848
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
849
|
+
|
|
850
|
+
# Set Headers
|
|
851
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
852
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
853
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest'
|
|
854
|
+
|
|
855
|
+
request_url = @base_url || @client.base_url
|
|
856
|
+
|
|
857
|
+
options = {
|
|
858
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
859
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
|
860
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
|
861
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
862
|
+
base_url: request_url
|
|
863
|
+
}
|
|
864
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
865
|
+
|
|
866
|
+
promise = promise.then do |result|
|
|
867
|
+
http_response = result.response
|
|
868
|
+
status_code = http_response.status
|
|
869
|
+
response_content = http_response.body
|
|
870
|
+
unless status_code == 200
|
|
871
|
+
error_model = JSON.load(response_content)
|
|
872
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
876
|
+
# Deserialize Response
|
|
877
|
+
if status_code == 200
|
|
878
|
+
begin
|
|
879
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
880
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::RequestReportCollection.mapper()
|
|
881
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
882
|
+
rescue Exception => e
|
|
883
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
result
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
promise.execute
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
#
|
|
894
|
+
# Lists report records by API.
|
|
895
|
+
#
|
|
896
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
897
|
+
# to List operation.
|
|
898
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
899
|
+
# will be added to the HTTP request.
|
|
900
|
+
#
|
|
901
|
+
# @return [ReportCollection] operation results.
|
|
902
|
+
#
|
|
903
|
+
def list_by_api_next(next_page_link, custom_headers:nil)
|
|
904
|
+
response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
905
|
+
response.body unless response.nil?
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
#
|
|
909
|
+
# Lists report records by API.
|
|
910
|
+
#
|
|
911
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
912
|
+
# to List operation.
|
|
913
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
914
|
+
# will be added to the HTTP request.
|
|
915
|
+
#
|
|
916
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
917
|
+
#
|
|
918
|
+
def list_by_api_next_with_http_info(next_page_link, custom_headers:nil)
|
|
919
|
+
list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
#
|
|
923
|
+
# Lists report records by API.
|
|
924
|
+
#
|
|
925
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
926
|
+
# to List operation.
|
|
927
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
928
|
+
# to the HTTP request.
|
|
929
|
+
#
|
|
930
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
931
|
+
#
|
|
932
|
+
def list_by_api_next_async(next_page_link, custom_headers:nil)
|
|
933
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
request_headers = {}
|
|
937
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
938
|
+
|
|
939
|
+
# Set Headers
|
|
940
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
941
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
942
|
+
path_template = '{nextLink}'
|
|
943
|
+
|
|
944
|
+
request_url = @base_url || @client.base_url
|
|
945
|
+
|
|
946
|
+
options = {
|
|
947
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
948
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
949
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
950
|
+
base_url: request_url
|
|
951
|
+
}
|
|
952
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
953
|
+
|
|
954
|
+
promise = promise.then do |result|
|
|
955
|
+
http_response = result.response
|
|
956
|
+
status_code = http_response.status
|
|
957
|
+
response_content = http_response.body
|
|
958
|
+
unless status_code == 200
|
|
959
|
+
error_model = JSON.load(response_content)
|
|
960
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
964
|
+
# Deserialize Response
|
|
965
|
+
if status_code == 200
|
|
966
|
+
begin
|
|
967
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
968
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
969
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
970
|
+
rescue Exception => e
|
|
971
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
972
|
+
end
|
|
973
|
+
end
|
|
974
|
+
|
|
975
|
+
result
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
promise.execute
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
#
|
|
982
|
+
# Lists report records by User.
|
|
983
|
+
#
|
|
984
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
985
|
+
# to List operation.
|
|
986
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
987
|
+
# will be added to the HTTP request.
|
|
988
|
+
#
|
|
989
|
+
# @return [ReportCollection] operation results.
|
|
990
|
+
#
|
|
991
|
+
def list_by_user_next(next_page_link, custom_headers:nil)
|
|
992
|
+
response = list_by_user_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
993
|
+
response.body unless response.nil?
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
#
|
|
997
|
+
# Lists report records by User.
|
|
998
|
+
#
|
|
999
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1000
|
+
# to List operation.
|
|
1001
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1002
|
+
# will be added to the HTTP request.
|
|
1003
|
+
#
|
|
1004
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1005
|
+
#
|
|
1006
|
+
def list_by_user_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1007
|
+
list_by_user_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1008
|
+
end
|
|
1009
|
+
|
|
1010
|
+
#
|
|
1011
|
+
# Lists report records by User.
|
|
1012
|
+
#
|
|
1013
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1014
|
+
# to List operation.
|
|
1015
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1016
|
+
# to the HTTP request.
|
|
1017
|
+
#
|
|
1018
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1019
|
+
#
|
|
1020
|
+
def list_by_user_next_async(next_page_link, custom_headers:nil)
|
|
1021
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
request_headers = {}
|
|
1025
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1026
|
+
|
|
1027
|
+
# Set Headers
|
|
1028
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1029
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1030
|
+
path_template = '{nextLink}'
|
|
1031
|
+
|
|
1032
|
+
request_url = @base_url || @client.base_url
|
|
1033
|
+
|
|
1034
|
+
options = {
|
|
1035
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1036
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1037
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1038
|
+
base_url: request_url
|
|
1039
|
+
}
|
|
1040
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1041
|
+
|
|
1042
|
+
promise = promise.then do |result|
|
|
1043
|
+
http_response = result.response
|
|
1044
|
+
status_code = http_response.status
|
|
1045
|
+
response_content = http_response.body
|
|
1046
|
+
unless status_code == 200
|
|
1047
|
+
error_model = JSON.load(response_content)
|
|
1048
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1052
|
+
# Deserialize Response
|
|
1053
|
+
if status_code == 200
|
|
1054
|
+
begin
|
|
1055
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1056
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
1057
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1058
|
+
rescue Exception => e
|
|
1059
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1060
|
+
end
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
result
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
promise.execute
|
|
1067
|
+
end
|
|
1068
|
+
|
|
1069
|
+
#
|
|
1070
|
+
# Lists report records by API Operations.
|
|
1071
|
+
#
|
|
1072
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1073
|
+
# to List operation.
|
|
1074
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1075
|
+
# will be added to the HTTP request.
|
|
1076
|
+
#
|
|
1077
|
+
# @return [ReportCollection] operation results.
|
|
1078
|
+
#
|
|
1079
|
+
def list_by_operation_next(next_page_link, custom_headers:nil)
|
|
1080
|
+
response = list_by_operation_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1081
|
+
response.body unless response.nil?
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
#
|
|
1085
|
+
# Lists report records by API Operations.
|
|
1086
|
+
#
|
|
1087
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1088
|
+
# to List operation.
|
|
1089
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1090
|
+
# will be added to the HTTP request.
|
|
1091
|
+
#
|
|
1092
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1093
|
+
#
|
|
1094
|
+
def list_by_operation_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1095
|
+
list_by_operation_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
#
|
|
1099
|
+
# Lists report records by API Operations.
|
|
1100
|
+
#
|
|
1101
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1102
|
+
# to List operation.
|
|
1103
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1104
|
+
# to the HTTP request.
|
|
1105
|
+
#
|
|
1106
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1107
|
+
#
|
|
1108
|
+
def list_by_operation_next_async(next_page_link, custom_headers:nil)
|
|
1109
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
request_headers = {}
|
|
1113
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1114
|
+
|
|
1115
|
+
# Set Headers
|
|
1116
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1117
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1118
|
+
path_template = '{nextLink}'
|
|
1119
|
+
|
|
1120
|
+
request_url = @base_url || @client.base_url
|
|
1121
|
+
|
|
1122
|
+
options = {
|
|
1123
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1124
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1125
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1126
|
+
base_url: request_url
|
|
1127
|
+
}
|
|
1128
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1129
|
+
|
|
1130
|
+
promise = promise.then do |result|
|
|
1131
|
+
http_response = result.response
|
|
1132
|
+
status_code = http_response.status
|
|
1133
|
+
response_content = http_response.body
|
|
1134
|
+
unless status_code == 200
|
|
1135
|
+
error_model = JSON.load(response_content)
|
|
1136
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1140
|
+
# Deserialize Response
|
|
1141
|
+
if status_code == 200
|
|
1142
|
+
begin
|
|
1143
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1144
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
1145
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1146
|
+
rescue Exception => e
|
|
1147
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1148
|
+
end
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
result
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
promise.execute
|
|
1155
|
+
end
|
|
1156
|
+
|
|
1157
|
+
#
|
|
1158
|
+
# Lists report records by Product.
|
|
1159
|
+
#
|
|
1160
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1161
|
+
# to List operation.
|
|
1162
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1163
|
+
# will be added to the HTTP request.
|
|
1164
|
+
#
|
|
1165
|
+
# @return [ReportCollection] operation results.
|
|
1166
|
+
#
|
|
1167
|
+
def list_by_product_next(next_page_link, custom_headers:nil)
|
|
1168
|
+
response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1169
|
+
response.body unless response.nil?
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
#
|
|
1173
|
+
# Lists report records by Product.
|
|
1174
|
+
#
|
|
1175
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1176
|
+
# to List operation.
|
|
1177
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1178
|
+
# will be added to the HTTP request.
|
|
1179
|
+
#
|
|
1180
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1181
|
+
#
|
|
1182
|
+
def list_by_product_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1183
|
+
list_by_product_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
#
|
|
1187
|
+
# Lists report records by Product.
|
|
1188
|
+
#
|
|
1189
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1190
|
+
# to List operation.
|
|
1191
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1192
|
+
# to the HTTP request.
|
|
1193
|
+
#
|
|
1194
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1195
|
+
#
|
|
1196
|
+
def list_by_product_next_async(next_page_link, custom_headers:nil)
|
|
1197
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
request_headers = {}
|
|
1201
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1202
|
+
|
|
1203
|
+
# Set Headers
|
|
1204
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1205
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1206
|
+
path_template = '{nextLink}'
|
|
1207
|
+
|
|
1208
|
+
request_url = @base_url || @client.base_url
|
|
1209
|
+
|
|
1210
|
+
options = {
|
|
1211
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1212
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1213
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1214
|
+
base_url: request_url
|
|
1215
|
+
}
|
|
1216
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1217
|
+
|
|
1218
|
+
promise = promise.then do |result|
|
|
1219
|
+
http_response = result.response
|
|
1220
|
+
status_code = http_response.status
|
|
1221
|
+
response_content = http_response.body
|
|
1222
|
+
unless status_code == 200
|
|
1223
|
+
error_model = JSON.load(response_content)
|
|
1224
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1225
|
+
end
|
|
1226
|
+
|
|
1227
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1228
|
+
# Deserialize Response
|
|
1229
|
+
if status_code == 200
|
|
1230
|
+
begin
|
|
1231
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1232
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
1233
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1234
|
+
rescue Exception => e
|
|
1235
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1236
|
+
end
|
|
1237
|
+
end
|
|
1238
|
+
|
|
1239
|
+
result
|
|
1240
|
+
end
|
|
1241
|
+
|
|
1242
|
+
promise.execute
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
#
|
|
1246
|
+
# Lists report records by GeoGraphy.
|
|
1247
|
+
#
|
|
1248
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1249
|
+
# to List operation.
|
|
1250
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1251
|
+
# will be added to the HTTP request.
|
|
1252
|
+
#
|
|
1253
|
+
# @return [ReportCollection] operation results.
|
|
1254
|
+
#
|
|
1255
|
+
def list_by_geo_next(next_page_link, custom_headers:nil)
|
|
1256
|
+
response = list_by_geo_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1257
|
+
response.body unless response.nil?
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
#
|
|
1261
|
+
# Lists report records by GeoGraphy.
|
|
1262
|
+
#
|
|
1263
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1264
|
+
# to List operation.
|
|
1265
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1266
|
+
# will be added to the HTTP request.
|
|
1267
|
+
#
|
|
1268
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1269
|
+
#
|
|
1270
|
+
def list_by_geo_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1271
|
+
list_by_geo_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1272
|
+
end
|
|
1273
|
+
|
|
1274
|
+
#
|
|
1275
|
+
# Lists report records by GeoGraphy.
|
|
1276
|
+
#
|
|
1277
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1278
|
+
# to List operation.
|
|
1279
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1280
|
+
# to the HTTP request.
|
|
1281
|
+
#
|
|
1282
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1283
|
+
#
|
|
1284
|
+
def list_by_geo_next_async(next_page_link, custom_headers:nil)
|
|
1285
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
request_headers = {}
|
|
1289
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1290
|
+
|
|
1291
|
+
# Set Headers
|
|
1292
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1293
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1294
|
+
path_template = '{nextLink}'
|
|
1295
|
+
|
|
1296
|
+
request_url = @base_url || @client.base_url
|
|
1297
|
+
|
|
1298
|
+
options = {
|
|
1299
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1300
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1301
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1302
|
+
base_url: request_url
|
|
1303
|
+
}
|
|
1304
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1305
|
+
|
|
1306
|
+
promise = promise.then do |result|
|
|
1307
|
+
http_response = result.response
|
|
1308
|
+
status_code = http_response.status
|
|
1309
|
+
response_content = http_response.body
|
|
1310
|
+
unless status_code == 200
|
|
1311
|
+
error_model = JSON.load(response_content)
|
|
1312
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1315
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1316
|
+
# Deserialize Response
|
|
1317
|
+
if status_code == 200
|
|
1318
|
+
begin
|
|
1319
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1320
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
1321
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1322
|
+
rescue Exception => e
|
|
1323
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1324
|
+
end
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1327
|
+
result
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1330
|
+
promise.execute
|
|
1331
|
+
end
|
|
1332
|
+
|
|
1333
|
+
#
|
|
1334
|
+
# Lists report records by subscription.
|
|
1335
|
+
#
|
|
1336
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1337
|
+
# to List operation.
|
|
1338
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1339
|
+
# will be added to the HTTP request.
|
|
1340
|
+
#
|
|
1341
|
+
# @return [ReportCollection] operation results.
|
|
1342
|
+
#
|
|
1343
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
|
1344
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1345
|
+
response.body unless response.nil?
|
|
1346
|
+
end
|
|
1347
|
+
|
|
1348
|
+
#
|
|
1349
|
+
# Lists report records by subscription.
|
|
1350
|
+
#
|
|
1351
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1352
|
+
# to List operation.
|
|
1353
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1354
|
+
# will be added to the HTTP request.
|
|
1355
|
+
#
|
|
1356
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1357
|
+
#
|
|
1358
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1359
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
#
|
|
1363
|
+
# Lists report records by subscription.
|
|
1364
|
+
#
|
|
1365
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1366
|
+
# to List operation.
|
|
1367
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1368
|
+
# to the HTTP request.
|
|
1369
|
+
#
|
|
1370
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1371
|
+
#
|
|
1372
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
|
1373
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
request_headers = {}
|
|
1377
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1378
|
+
|
|
1379
|
+
# Set Headers
|
|
1380
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1381
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1382
|
+
path_template = '{nextLink}'
|
|
1383
|
+
|
|
1384
|
+
request_url = @base_url || @client.base_url
|
|
1385
|
+
|
|
1386
|
+
options = {
|
|
1387
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1388
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1389
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1390
|
+
base_url: request_url
|
|
1391
|
+
}
|
|
1392
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1393
|
+
|
|
1394
|
+
promise = promise.then do |result|
|
|
1395
|
+
http_response = result.response
|
|
1396
|
+
status_code = http_response.status
|
|
1397
|
+
response_content = http_response.body
|
|
1398
|
+
unless status_code == 200
|
|
1399
|
+
error_model = JSON.load(response_content)
|
|
1400
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1404
|
+
# Deserialize Response
|
|
1405
|
+
if status_code == 200
|
|
1406
|
+
begin
|
|
1407
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1408
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
1409
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1410
|
+
rescue Exception => e
|
|
1411
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1412
|
+
end
|
|
1413
|
+
end
|
|
1414
|
+
|
|
1415
|
+
result
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
promise.execute
|
|
1419
|
+
end
|
|
1420
|
+
|
|
1421
|
+
#
|
|
1422
|
+
# Lists report records by Time.
|
|
1423
|
+
#
|
|
1424
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1425
|
+
# to List operation.
|
|
1426
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1427
|
+
# will be added to the HTTP request.
|
|
1428
|
+
#
|
|
1429
|
+
# @return [ReportCollection] operation results.
|
|
1430
|
+
#
|
|
1431
|
+
def list_by_time_next(next_page_link, custom_headers:nil)
|
|
1432
|
+
response = list_by_time_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1433
|
+
response.body unless response.nil?
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
#
|
|
1437
|
+
# Lists report records by Time.
|
|
1438
|
+
#
|
|
1439
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1440
|
+
# to List operation.
|
|
1441
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1442
|
+
# will be added to the HTTP request.
|
|
1443
|
+
#
|
|
1444
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1445
|
+
#
|
|
1446
|
+
def list_by_time_next_with_http_info(next_page_link, custom_headers:nil)
|
|
1447
|
+
list_by_time_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
1448
|
+
end
|
|
1449
|
+
|
|
1450
|
+
#
|
|
1451
|
+
# Lists report records by Time.
|
|
1452
|
+
#
|
|
1453
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
1454
|
+
# to List operation.
|
|
1455
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1456
|
+
# to the HTTP request.
|
|
1457
|
+
#
|
|
1458
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1459
|
+
#
|
|
1460
|
+
def list_by_time_next_async(next_page_link, custom_headers:nil)
|
|
1461
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
request_headers = {}
|
|
1465
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1466
|
+
|
|
1467
|
+
# Set Headers
|
|
1468
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1469
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1470
|
+
path_template = '{nextLink}'
|
|
1471
|
+
|
|
1472
|
+
request_url = @base_url || @client.base_url
|
|
1473
|
+
|
|
1474
|
+
options = {
|
|
1475
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1476
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
1477
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1478
|
+
base_url: request_url
|
|
1479
|
+
}
|
|
1480
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
1481
|
+
|
|
1482
|
+
promise = promise.then do |result|
|
|
1483
|
+
http_response = result.response
|
|
1484
|
+
status_code = http_response.status
|
|
1485
|
+
response_content = http_response.body
|
|
1486
|
+
unless status_code == 200
|
|
1487
|
+
error_model = JSON.load(response_content)
|
|
1488
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1489
|
+
end
|
|
1490
|
+
|
|
1491
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1492
|
+
# Deserialize Response
|
|
1493
|
+
if status_code == 200
|
|
1494
|
+
begin
|
|
1495
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1496
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ReportCollection.mapper()
|
|
1497
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1498
|
+
rescue Exception => e
|
|
1499
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1500
|
+
end
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
result
|
|
1504
|
+
end
|
|
1505
|
+
|
|
1506
|
+
promise.execute
|
|
1507
|
+
end
|
|
1508
|
+
|
|
1509
|
+
#
|
|
1510
|
+
# Lists report records by API.
|
|
1511
|
+
#
|
|
1512
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1513
|
+
# @param service_name [String] The name of the API Management service.
|
|
1514
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1515
|
+
# @param top [Integer] Number of records to return.
|
|
1516
|
+
# @param skip [Integer] Number of records to skip.
|
|
1517
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1518
|
+
# will be added to the HTTP request.
|
|
1519
|
+
#
|
|
1520
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1521
|
+
# response.
|
|
1522
|
+
#
|
|
1523
|
+
def list_by_api_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
1524
|
+
response = list_by_api_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1525
|
+
unless response.nil?
|
|
1526
|
+
page = response.body
|
|
1527
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1528
|
+
list_by_api_next_async(next_page_link, custom_headers:custom_headers)
|
|
1529
|
+
end
|
|
1530
|
+
page
|
|
1531
|
+
end
|
|
1532
|
+
end
|
|
1533
|
+
|
|
1534
|
+
#
|
|
1535
|
+
# Lists report records by User.
|
|
1536
|
+
#
|
|
1537
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1538
|
+
# @param service_name [String] The name of the API Management service.
|
|
1539
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1540
|
+
# @param top [Integer] Number of records to return.
|
|
1541
|
+
# @param skip [Integer] Number of records to skip.
|
|
1542
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1543
|
+
# will be added to the HTTP request.
|
|
1544
|
+
#
|
|
1545
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1546
|
+
# response.
|
|
1547
|
+
#
|
|
1548
|
+
def list_by_user_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
1549
|
+
response = list_by_user_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1550
|
+
unless response.nil?
|
|
1551
|
+
page = response.body
|
|
1552
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1553
|
+
list_by_user_next_async(next_page_link, custom_headers:custom_headers)
|
|
1554
|
+
end
|
|
1555
|
+
page
|
|
1556
|
+
end
|
|
1557
|
+
end
|
|
1558
|
+
|
|
1559
|
+
#
|
|
1560
|
+
# Lists report records by API Operations.
|
|
1561
|
+
#
|
|
1562
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1563
|
+
# @param service_name [String] The name of the API Management service.
|
|
1564
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1565
|
+
# @param top [Integer] Number of records to return.
|
|
1566
|
+
# @param skip [Integer] Number of records to skip.
|
|
1567
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1568
|
+
# will be added to the HTTP request.
|
|
1569
|
+
#
|
|
1570
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1571
|
+
# response.
|
|
1572
|
+
#
|
|
1573
|
+
def list_by_operation_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
1574
|
+
response = list_by_operation_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1575
|
+
unless response.nil?
|
|
1576
|
+
page = response.body
|
|
1577
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1578
|
+
list_by_operation_next_async(next_page_link, custom_headers:custom_headers)
|
|
1579
|
+
end
|
|
1580
|
+
page
|
|
1581
|
+
end
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
#
|
|
1585
|
+
# Lists report records by Product.
|
|
1586
|
+
#
|
|
1587
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1588
|
+
# @param service_name [String] The name of the API Management service.
|
|
1589
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1590
|
+
# @param top [Integer] Number of records to return.
|
|
1591
|
+
# @param skip [Integer] Number of records to skip.
|
|
1592
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1593
|
+
# will be added to the HTTP request.
|
|
1594
|
+
#
|
|
1595
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1596
|
+
# response.
|
|
1597
|
+
#
|
|
1598
|
+
def list_by_product_as_lazy(resource_group_name, service_name, filter, top:nil, skip:nil, custom_headers:nil)
|
|
1599
|
+
response = list_by_product_async(resource_group_name, service_name, filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1600
|
+
unless response.nil?
|
|
1601
|
+
page = response.body
|
|
1602
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1603
|
+
list_by_product_next_async(next_page_link, custom_headers:custom_headers)
|
|
1604
|
+
end
|
|
1605
|
+
page
|
|
1606
|
+
end
|
|
1607
|
+
end
|
|
1608
|
+
|
|
1609
|
+
#
|
|
1610
|
+
# Lists report records by GeoGraphy.
|
|
1611
|
+
#
|
|
1612
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1613
|
+
# @param service_name [String] The name of the API Management service.
|
|
1614
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1615
|
+
# @param top [Integer] Number of records to return.
|
|
1616
|
+
# @param skip [Integer] Number of records to skip.
|
|
1617
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1618
|
+
# will be added to the HTTP request.
|
|
1619
|
+
#
|
|
1620
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1621
|
+
# response.
|
|
1622
|
+
#
|
|
1623
|
+
def list_by_geo_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
1624
|
+
response = list_by_geo_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1625
|
+
unless response.nil?
|
|
1626
|
+
page = response.body
|
|
1627
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1628
|
+
list_by_geo_next_async(next_page_link, custom_headers:custom_headers)
|
|
1629
|
+
end
|
|
1630
|
+
page
|
|
1631
|
+
end
|
|
1632
|
+
end
|
|
1633
|
+
|
|
1634
|
+
#
|
|
1635
|
+
# Lists report records by subscription.
|
|
1636
|
+
#
|
|
1637
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1638
|
+
# @param service_name [String] The name of the API Management service.
|
|
1639
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1640
|
+
# @param top [Integer] Number of records to return.
|
|
1641
|
+
# @param skip [Integer] Number of records to skip.
|
|
1642
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1643
|
+
# will be added to the HTTP request.
|
|
1644
|
+
#
|
|
1645
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1646
|
+
# response.
|
|
1647
|
+
#
|
|
1648
|
+
def list_by_subscription_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
1649
|
+
response = list_by_subscription_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1650
|
+
unless response.nil?
|
|
1651
|
+
page = response.body
|
|
1652
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1653
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
|
1654
|
+
end
|
|
1655
|
+
page
|
|
1656
|
+
end
|
|
1657
|
+
end
|
|
1658
|
+
|
|
1659
|
+
#
|
|
1660
|
+
# Lists report records by Time.
|
|
1661
|
+
#
|
|
1662
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
1663
|
+
# @param service_name [String] The name of the API Management service.
|
|
1664
|
+
# @param interval [Duration] By time interval. Interval must be multiple of 15
|
|
1665
|
+
# minutes and may not be zero. The value should be in ISO 8601 format
|
|
1666
|
+
# (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
|
|
1667
|
+
# convert TimeSpan to a valid interval string: XmlConvert.ToString(new
|
|
1668
|
+
# TimeSpan(hours, minutes, secconds))
|
|
1669
|
+
# @param filter [String] The filter to apply on the operation.
|
|
1670
|
+
# @param top [Integer] Number of records to return.
|
|
1671
|
+
# @param skip [Integer] Number of records to skip.
|
|
1672
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1673
|
+
# will be added to the HTTP request.
|
|
1674
|
+
#
|
|
1675
|
+
# @return [ReportCollection] which provide lazy access to pages of the
|
|
1676
|
+
# response.
|
|
1677
|
+
#
|
|
1678
|
+
def list_by_time_as_lazy(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
|
1679
|
+
response = list_by_time_async(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
|
1680
|
+
unless response.nil?
|
|
1681
|
+
page = response.body
|
|
1682
|
+
page.next_method = Proc.new do |next_page_link|
|
|
1683
|
+
list_by_time_next_async(next_page_link, custom_headers:custom_headers)
|
|
1684
|
+
end
|
|
1685
|
+
page
|
|
1686
|
+
end
|
|
1687
|
+
end
|
|
1688
|
+
|
|
1689
|
+
end
|
|
1690
|
+
end
|