azure_mgmt_api_management 0.18.2 → 0.18.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb +2 -2
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +1 -1
- data/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb +3 -3
- data/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb +4 -4
- data/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb +3 -3
- data/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +1 -1
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb +1 -1
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
- data/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
- data/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb +3 -3
- data/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb +4 -4
- data/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb +3 -3
- data/lib/2017-03-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb +10 -10
- data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_attachments.rb +7 -7
- data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue_comments.rb +7 -7
- data/lib/2017-03-01/generated/azure_mgmt_api_management/api_issues.rb +7 -7
- data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/api_management_service.rb +11 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/diagnostic_logger.rb +10 -10
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/logger_sampling_contract.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +3 -3
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_api_management/property.rb +3 -3
- data/lib/2017-03-01/generated/azure_mgmt_api_management/reports.rb +11 -11
- data/lib/2017-03-01/generated/azure_mgmt_api_management/subscription.rb +3 -3
- data/lib/2017-03-01/generated/azure_mgmt_api_management/tag_description.rb +3 -3
- data/lib/2018-01-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_api_management.rb +303 -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_issue.rb +887 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +814 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb +811 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb +369 -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_management_service_skus.rb +244 -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 +131 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +288 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +222 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +313 -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 +179 -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 +322 -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 +442 -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 +431 -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 +100 -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 +100 -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 +221 -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 +249 -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 +75 -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/bearer_token_sending_methods.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 +84 -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/current_user_identity.rb +47 -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/error_response_body.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 +138 -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/issue_attachment_collection.rb +100 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -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_authentication_settings_contract.rb +66 -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 +100 -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 +18 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -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 +80 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +85 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -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 +100 -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/state.rb +19 -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 +178 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +153 -0
- data/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -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 +139 -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 +654 -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 +1194 -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/2018-06-01-preview/generated/azure_mgmt_api_management/api_management_client.rb +1 -1
- data/lib/2019-01-01/generated/azure_mgmt_api_management.rb +313 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api.rb +1203 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb +878 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_export.rb +147 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue.rb +888 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb +811 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb +808 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_client.rb +373 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_operations.rb +222 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_service.rb +1665 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_management_service_skus.rb +244 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_operation.rb +921 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb +645 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_policy.rb +595 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_product.rb +272 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_release.rb +896 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_revision.rb +272 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_schema.rb +777 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_tag_description.rb +783 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/api_version_set.rb +808 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/authorization_server.rb +815 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/backend.rb +931 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/cache.rb +795 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/certificate.rb +718 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/delegation_settings.rb +423 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/diagnostic.rb +816 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/email_template.rb +927 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/group.rb +827 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/group_user.rb +633 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/identity_provider.rb +796 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/issue.rb +384 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/logger.rb +826 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb +79 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/additional_location.rb +131 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/always_log.rb +15 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_contract.rb +310 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb +240 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb +335 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +190 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb +72 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_export_result_value.rb +47 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb +49 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +84 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb +337 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +47 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +47 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb +73 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +81 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +457 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +446 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb +110 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb +145 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb +88 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb +228 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb +260 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb +133 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb +107 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb +78 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb +106 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb +91 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +75 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb +22 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb +309 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb +211 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb +309 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +65 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +131 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb +185 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +124 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb +48 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +74 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb +74 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb +119 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb +63 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +158 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_methods.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/body_diagnostic_settings.rb +49 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_contract.rb +105 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/cache_update_parameters.rb +78 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb +84 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +58 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb +70 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/confirmation.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +107 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/content_format.rb +23 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb +136 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb +147 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb +83 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb +107 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb +68 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_response.rb +79 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb +79 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/export_format.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/export_result_format.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/grant_type.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_contract.rb +131 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb +104 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb +89 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_type.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb +89 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb +137 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb +19 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/http_message_diagnostic.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb +143 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +203 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb +99 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb +20 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +176 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb +97 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb +96 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb +130 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_contract_base_properties.rb +70 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/issue_update_contract.rb +103 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/key_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb +133 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb +89 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb +75 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb +61 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/notification_name.rb +21 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/open_id_authentication_settings_contract.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +122 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +95 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation.rb +80 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb +185 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_display.rb +80 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +114 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb +101 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb +134 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb +69 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb +134 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb +158 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/pipeline_diagnostic_settings.rb +59 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb +87 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_export_format.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb +19 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +83 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +55 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb +111 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb +73 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb +86 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_contract.rb +167 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb +125 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_state.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb +115 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb +140 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_contract.rb +130 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb +70 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb +103 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/protocol.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +77 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +104 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb +73 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb +73 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb +73 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/region_contract.rb +69 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/report_collection.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb +338 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb +106 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_contract.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb +66 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb +245 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource.rb +80 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku.rb +47 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity.rb +84 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_capacity_scale_type.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_result.rb +74 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/resource_sku_results.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/response_contract.rb +99 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sampling_settings.rb +61 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sampling_type.rb +15 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +60 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb +100 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb +90 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/schema_create_or_update_contract.rb +91 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/sku_type.rb +19 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb +16 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/state.rb +19 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb +254 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +139 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb +20 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +158 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb +47 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb +77 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb +50 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb +114 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb +72 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb +86 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb +61 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/template_name.rb +28 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +121 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb +68 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_collection.rb +98 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_contract.rb +178 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb +153 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb +82 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb +109 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_state.rb +18 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb +64 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb +46 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb +139 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +76 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb +17 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb +57 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/module_definition.rb +9 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/network_status.rb +254 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/notification.rb +469 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb +474 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb +495 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb +803 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/operation_operations.rb +304 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/policy.rb +533 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/policy_snippet.rb +126 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/product.rb +1113 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/product_api.rb +636 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/product_group.rb +617 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/product_policy.rb +577 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb +304 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/property.rb +800 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +262 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb +261 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/region.rb +230 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/reports.rb +2099 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb +423 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb +423 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/subscription.rb +1062 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/tag.rb +2998 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/tag_resource.rb +316 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_access.rb +486 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb +291 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb +607 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/user.rb +1079 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/user_confirmation_password.rb +119 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/user_group.rb +279 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/user_identities.rb +242 -0
- data/lib/2019-01-01/generated/azure_mgmt_api_management/user_subscription.rb +300 -0
- data/lib/azure_mgmt_api_management.rb +2 -0
- data/lib/profiles/latest/modules/apimanagement_profile_module.rb +723 -663
- data/lib/version.rb +1 -1
- metadata +571 -3
@@ -0,0 +1,244 @@
|
|
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 ApiManagementServiceSkus
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ApiManagementServiceSkus 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
|
+
# Gets available SKUs for API Management service
|
26
|
+
#
|
27
|
+
# Gets all available SKU for a given API Management service
|
28
|
+
#
|
29
|
+
# @param resource_group_name [String] The name of the resource group.
|
30
|
+
# @param service_name [String] The name of the API Management service.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [Array<ResourceSkuResult>] operation results.
|
35
|
+
#
|
36
|
+
def list_available_service_skus(resource_group_name, service_name, custom_headers:nil)
|
37
|
+
first_page = list_available_service_skus_as_lazy(resource_group_name, service_name, custom_headers:custom_headers)
|
38
|
+
first_page.get_all_items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets available SKUs for API Management service
|
43
|
+
#
|
44
|
+
# Gets all available SKU for a given API Management service
|
45
|
+
#
|
46
|
+
# @param resource_group_name [String] The name of the resource group.
|
47
|
+
# @param service_name [String] The name of the API Management service.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def list_available_service_skus_with_http_info(resource_group_name, service_name, custom_headers:nil)
|
54
|
+
list_available_service_skus_async(resource_group_name, service_name, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets available SKUs for API Management service
|
59
|
+
#
|
60
|
+
# Gets all available SKU for a given API Management service
|
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 [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def list_available_service_skus_async(resource_group_name, service_name, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
72
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
73
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
74
|
+
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?
|
75
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
76
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
77
|
+
|
78
|
+
|
79
|
+
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
|
+
|
82
|
+
# Set Headers
|
83
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus'
|
86
|
+
|
87
|
+
request_url = @base_url || @client.base_url
|
88
|
+
|
89
|
+
options = {
|
90
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
91
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id},
|
92
|
+
query_params: {'api-version' => @client.api_version},
|
93
|
+
headers: request_headers.merge(custom_headers || {}),
|
94
|
+
base_url: request_url
|
95
|
+
}
|
96
|
+
promise = @client.make_request_async(:get, path_template, options)
|
97
|
+
|
98
|
+
promise = promise.then do |result|
|
99
|
+
http_response = result.response
|
100
|
+
status_code = http_response.status
|
101
|
+
response_content = http_response.body
|
102
|
+
unless status_code == 200
|
103
|
+
error_model = JSON.load(response_content)
|
104
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
105
|
+
end
|
106
|
+
|
107
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
+
# Deserialize Response
|
109
|
+
if status_code == 200
|
110
|
+
begin
|
111
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
112
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ResourceSkuResults.mapper()
|
113
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
114
|
+
rescue Exception => e
|
115
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
promise.execute
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Gets available SKUs for API Management service
|
127
|
+
#
|
128
|
+
# Gets all available SKU for a given API Management service
|
129
|
+
#
|
130
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
131
|
+
# to List operation.
|
132
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
133
|
+
# will be added to the HTTP request.
|
134
|
+
#
|
135
|
+
# @return [ResourceSkuResults] operation results.
|
136
|
+
#
|
137
|
+
def list_available_service_skus_next(next_page_link, custom_headers:nil)
|
138
|
+
response = list_available_service_skus_next_async(next_page_link, custom_headers:custom_headers).value!
|
139
|
+
response.body unless response.nil?
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets available SKUs for API Management service
|
144
|
+
#
|
145
|
+
# Gets all available SKU for a given API Management service
|
146
|
+
#
|
147
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
148
|
+
# to List operation.
|
149
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
|
+
# will be added to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
153
|
+
#
|
154
|
+
def list_available_service_skus_next_with_http_info(next_page_link, custom_headers:nil)
|
155
|
+
list_available_service_skus_next_async(next_page_link, custom_headers:custom_headers).value!
|
156
|
+
end
|
157
|
+
|
158
|
+
#
|
159
|
+
# Gets available SKUs for API Management service
|
160
|
+
#
|
161
|
+
# Gets all available SKU for a given API Management service
|
162
|
+
#
|
163
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
164
|
+
# to List operation.
|
165
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
166
|
+
# to the HTTP request.
|
167
|
+
#
|
168
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
|
+
#
|
170
|
+
def list_available_service_skus_next_async(next_page_link, custom_headers:nil)
|
171
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
172
|
+
|
173
|
+
|
174
|
+
request_headers = {}
|
175
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
176
|
+
|
177
|
+
# Set Headers
|
178
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
179
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
180
|
+
path_template = '{nextLink}'
|
181
|
+
|
182
|
+
request_url = @base_url || @client.base_url
|
183
|
+
|
184
|
+
options = {
|
185
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
186
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
187
|
+
headers: request_headers.merge(custom_headers || {}),
|
188
|
+
base_url: request_url
|
189
|
+
}
|
190
|
+
promise = @client.make_request_async(:get, path_template, options)
|
191
|
+
|
192
|
+
promise = promise.then do |result|
|
193
|
+
http_response = result.response
|
194
|
+
status_code = http_response.status
|
195
|
+
response_content = http_response.body
|
196
|
+
unless status_code == 200
|
197
|
+
error_model = JSON.load(response_content)
|
198
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
199
|
+
end
|
200
|
+
|
201
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
202
|
+
# Deserialize Response
|
203
|
+
if status_code == 200
|
204
|
+
begin
|
205
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
206
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::ResourceSkuResults.mapper()
|
207
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
208
|
+
rescue Exception => e
|
209
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
result
|
214
|
+
end
|
215
|
+
|
216
|
+
promise.execute
|
217
|
+
end
|
218
|
+
|
219
|
+
#
|
220
|
+
# Gets available SKUs for API Management service
|
221
|
+
#
|
222
|
+
# Gets all available SKU for a given API Management service
|
223
|
+
#
|
224
|
+
# @param resource_group_name [String] The name of the resource group.
|
225
|
+
# @param service_name [String] The name of the API Management service.
|
226
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
227
|
+
# will be added to the HTTP request.
|
228
|
+
#
|
229
|
+
# @return [ResourceSkuResults] which provide lazy access to pages of the
|
230
|
+
# response.
|
231
|
+
#
|
232
|
+
def list_available_service_skus_as_lazy(resource_group_name, service_name, custom_headers:nil)
|
233
|
+
response = list_available_service_skus_async(resource_group_name, service_name, custom_headers:custom_headers).value!
|
234
|
+
unless response.nil?
|
235
|
+
page = response.body
|
236
|
+
page.next_method = Proc.new do |next_page_link|
|
237
|
+
list_available_service_skus_next_async(next_page_link, custom_headers:custom_headers)
|
238
|
+
end
|
239
|
+
page
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
end
|
244
|
+
end
|
@@ -0,0 +1,905 @@
|
|
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 ApiOperation
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ApiOperation 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 a collection of the operations for the specified 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 api_id [String] API revision identifier. Must be unique in the current
|
30
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
31
|
+
# where n is the revision number.
|
32
|
+
# @param filter [String] | Field | Supported operators | Supported
|
33
|
+
# functions |
|
34
|
+
# |-------------|------------------------|-----------------------------------|
|
35
|
+
# | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
36
|
+
# | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
37
|
+
# | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
38
|
+
# | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
39
|
+
# @param top [Integer] Number of records to return.
|
40
|
+
# @param skip [Integer] Number of records to skip.
|
41
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
|
+
# will be added to the HTTP request.
|
43
|
+
#
|
44
|
+
# @return [Array<OperationContract>] operation results.
|
45
|
+
#
|
46
|
+
def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
47
|
+
first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers)
|
48
|
+
first_page.get_all_items
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Lists a collection of the operations for the specified API.
|
53
|
+
#
|
54
|
+
# @param resource_group_name [String] The name of the resource group.
|
55
|
+
# @param service_name [String] The name of the API Management service.
|
56
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
57
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
58
|
+
# where n is the revision number.
|
59
|
+
# @param filter [String] | Field | Supported operators | Supported
|
60
|
+
# functions |
|
61
|
+
# |-------------|------------------------|-----------------------------------|
|
62
|
+
# | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
63
|
+
# | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
64
|
+
# | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
65
|
+
# | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
66
|
+
# @param top [Integer] Number of records to return.
|
67
|
+
# @param skip [Integer] Number of records to skip.
|
68
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
69
|
+
# will be added to the HTTP request.
|
70
|
+
#
|
71
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
72
|
+
#
|
73
|
+
def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
74
|
+
list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# Lists a collection of the operations for the specified API.
|
79
|
+
#
|
80
|
+
# @param resource_group_name [String] The name of the resource group.
|
81
|
+
# @param service_name [String] The name of the API Management service.
|
82
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
83
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
84
|
+
# where n is the revision number.
|
85
|
+
# @param filter [String] | Field | Supported operators | Supported
|
86
|
+
# functions |
|
87
|
+
# |-------------|------------------------|-----------------------------------|
|
88
|
+
# | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
89
|
+
# | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
90
|
+
# | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
91
|
+
# | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
92
|
+
# @param top [Integer] Number of records to return.
|
93
|
+
# @param skip [Integer] Number of records to skip.
|
94
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
95
|
+
# to the HTTP request.
|
96
|
+
#
|
97
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
98
|
+
#
|
99
|
+
def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
100
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
101
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
102
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
103
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
104
|
+
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?
|
105
|
+
fail ArgumentError, 'api_id is nil' if api_id.nil?
|
106
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
|
107
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
|
108
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
|
109
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
110
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
111
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
112
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
113
|
+
|
114
|
+
|
115
|
+
request_headers = {}
|
116
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
117
|
+
|
118
|
+
# Set Headers
|
119
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
120
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
121
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations'
|
122
|
+
|
123
|
+
request_url = @base_url || @client.base_url
|
124
|
+
|
125
|
+
options = {
|
126
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
127
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id},
|
128
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version},
|
129
|
+
headers: request_headers.merge(custom_headers || {}),
|
130
|
+
base_url: request_url
|
131
|
+
}
|
132
|
+
promise = @client.make_request_async(:get, path_template, options)
|
133
|
+
|
134
|
+
promise = promise.then do |result|
|
135
|
+
http_response = result.response
|
136
|
+
status_code = http_response.status
|
137
|
+
response_content = http_response.body
|
138
|
+
unless status_code == 200
|
139
|
+
error_model = JSON.load(response_content)
|
140
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
141
|
+
end
|
142
|
+
|
143
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
144
|
+
# Deserialize Response
|
145
|
+
if status_code == 200
|
146
|
+
begin
|
147
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
148
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationCollection.mapper()
|
149
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
150
|
+
rescue Exception => e
|
151
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
result
|
156
|
+
end
|
157
|
+
|
158
|
+
promise.execute
|
159
|
+
end
|
160
|
+
|
161
|
+
#
|
162
|
+
# Gets the entity state (Etag) version of the API operation specified by its
|
163
|
+
# identifier.
|
164
|
+
#
|
165
|
+
# @param resource_group_name [String] The name of the resource group.
|
166
|
+
# @param service_name [String] The name of the API Management service.
|
167
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
168
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
169
|
+
# where n is the revision number.
|
170
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
171
|
+
# unique in the current API Management service instance.
|
172
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
173
|
+
# will be added to the HTTP request.
|
174
|
+
#
|
175
|
+
#
|
176
|
+
def get_entity_tag(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
|
177
|
+
response = get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
|
178
|
+
nil
|
179
|
+
end
|
180
|
+
|
181
|
+
#
|
182
|
+
# Gets the entity state (Etag) version of the API operation specified by its
|
183
|
+
# identifier.
|
184
|
+
#
|
185
|
+
# @param resource_group_name [String] The name of the resource group.
|
186
|
+
# @param service_name [String] The name of the API Management service.
|
187
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
188
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
189
|
+
# where n is the revision number.
|
190
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
191
|
+
# unique in the current API Management service instance.
|
192
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
193
|
+
# will be added to the HTTP request.
|
194
|
+
#
|
195
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
196
|
+
#
|
197
|
+
def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
|
198
|
+
get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
|
199
|
+
end
|
200
|
+
|
201
|
+
#
|
202
|
+
# Gets the entity state (Etag) version of the API operation specified by its
|
203
|
+
# identifier.
|
204
|
+
#
|
205
|
+
# @param resource_group_name [String] The name of the resource group.
|
206
|
+
# @param service_name [String] The name of the API Management service.
|
207
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
208
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
209
|
+
# where n is the revision number.
|
210
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
211
|
+
# unique in the current API Management service instance.
|
212
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
213
|
+
# to the HTTP request.
|
214
|
+
#
|
215
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
216
|
+
#
|
217
|
+
def get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
|
218
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
219
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
220
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
221
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
222
|
+
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?
|
223
|
+
fail ArgumentError, 'api_id is nil' if api_id.nil?
|
224
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
|
225
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
|
226
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
|
227
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
228
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
|
229
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
|
230
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
|
231
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
232
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
233
|
+
|
234
|
+
|
235
|
+
request_headers = {}
|
236
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
237
|
+
|
238
|
+
# Set Headers
|
239
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
240
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
241
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
|
242
|
+
|
243
|
+
request_url = @base_url || @client.base_url
|
244
|
+
|
245
|
+
options = {
|
246
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
247
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
248
|
+
query_params: {'api-version' => @client.api_version},
|
249
|
+
headers: request_headers.merge(custom_headers || {}),
|
250
|
+
base_url: request_url
|
251
|
+
}
|
252
|
+
promise = @client.make_request_async(:head, path_template, options)
|
253
|
+
|
254
|
+
promise = promise.then do |result|
|
255
|
+
http_response = result.response
|
256
|
+
status_code = http_response.status
|
257
|
+
response_content = http_response.body
|
258
|
+
unless status_code == 200
|
259
|
+
error_model = JSON.load(response_content)
|
260
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
261
|
+
end
|
262
|
+
|
263
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
264
|
+
|
265
|
+
result
|
266
|
+
end
|
267
|
+
|
268
|
+
promise.execute
|
269
|
+
end
|
270
|
+
|
271
|
+
#
|
272
|
+
# Gets the details of the API Operation specified by its identifier.
|
273
|
+
#
|
274
|
+
# @param resource_group_name [String] The name of the resource group.
|
275
|
+
# @param service_name [String] The name of the API Management service.
|
276
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
277
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
278
|
+
# where n is the revision number.
|
279
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
280
|
+
# unique in the current API Management service instance.
|
281
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
282
|
+
# will be added to the HTTP request.
|
283
|
+
#
|
284
|
+
# @return [OperationContract] operation results.
|
285
|
+
#
|
286
|
+
def get(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
|
287
|
+
response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
|
288
|
+
response.body unless response.nil?
|
289
|
+
end
|
290
|
+
|
291
|
+
#
|
292
|
+
# Gets the details of the API Operation specified by its identifier.
|
293
|
+
#
|
294
|
+
# @param resource_group_name [String] The name of the resource group.
|
295
|
+
# @param service_name [String] The name of the API Management service.
|
296
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
297
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
298
|
+
# where n is the revision number.
|
299
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
300
|
+
# unique in the current API Management service instance.
|
301
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
302
|
+
# will be added to the HTTP request.
|
303
|
+
#
|
304
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
305
|
+
#
|
306
|
+
def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
|
307
|
+
get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value!
|
308
|
+
end
|
309
|
+
|
310
|
+
#
|
311
|
+
# Gets the details of the API Operation specified by its identifier.
|
312
|
+
#
|
313
|
+
# @param resource_group_name [String] The name of the resource group.
|
314
|
+
# @param service_name [String] The name of the API Management service.
|
315
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
316
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
317
|
+
# where n is the revision number.
|
318
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
319
|
+
# unique in the current API Management service instance.
|
320
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
321
|
+
# to the HTTP request.
|
322
|
+
#
|
323
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
324
|
+
#
|
325
|
+
def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil)
|
326
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
327
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
328
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
329
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
330
|
+
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?
|
331
|
+
fail ArgumentError, 'api_id is nil' if api_id.nil?
|
332
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
|
333
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
|
334
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
|
335
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
336
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
|
337
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
|
338
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
|
339
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
340
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
341
|
+
|
342
|
+
|
343
|
+
request_headers = {}
|
344
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
345
|
+
|
346
|
+
# Set Headers
|
347
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
348
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
349
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
|
350
|
+
|
351
|
+
request_url = @base_url || @client.base_url
|
352
|
+
|
353
|
+
options = {
|
354
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
355
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
356
|
+
query_params: {'api-version' => @client.api_version},
|
357
|
+
headers: request_headers.merge(custom_headers || {}),
|
358
|
+
base_url: request_url
|
359
|
+
}
|
360
|
+
promise = @client.make_request_async(:get, path_template, options)
|
361
|
+
|
362
|
+
promise = promise.then do |result|
|
363
|
+
http_response = result.response
|
364
|
+
status_code = http_response.status
|
365
|
+
response_content = http_response.body
|
366
|
+
unless status_code == 200
|
367
|
+
error_model = JSON.load(response_content)
|
368
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
369
|
+
end
|
370
|
+
|
371
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
372
|
+
# Deserialize Response
|
373
|
+
if status_code == 200
|
374
|
+
begin
|
375
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
376
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationContract.mapper()
|
377
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
378
|
+
rescue Exception => e
|
379
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
380
|
+
end
|
381
|
+
end
|
382
|
+
|
383
|
+
result
|
384
|
+
end
|
385
|
+
|
386
|
+
promise.execute
|
387
|
+
end
|
388
|
+
|
389
|
+
#
|
390
|
+
# Creates a new operation in the API or updates an existing one.
|
391
|
+
#
|
392
|
+
# @param resource_group_name [String] The name of the resource group.
|
393
|
+
# @param service_name [String] The name of the API Management service.
|
394
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
395
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
396
|
+
# where n is the revision number.
|
397
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
398
|
+
# unique in the current API Management service instance.
|
399
|
+
# @param parameters [OperationContract] Create parameters.
|
400
|
+
# @param if_match [String] ETag of the Entity. Not required when creating an
|
401
|
+
# entity, but required when updating an entity.
|
402
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
403
|
+
# will be added to the HTTP request.
|
404
|
+
#
|
405
|
+
# @return [OperationContract] operation results.
|
406
|
+
#
|
407
|
+
def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, if_match:nil, custom_headers:nil)
|
408
|
+
response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
|
409
|
+
response.body unless response.nil?
|
410
|
+
end
|
411
|
+
|
412
|
+
#
|
413
|
+
# Creates a new operation in the API or updates an existing one.
|
414
|
+
#
|
415
|
+
# @param resource_group_name [String] The name of the resource group.
|
416
|
+
# @param service_name [String] The name of the API Management service.
|
417
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
418
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
419
|
+
# where n is the revision number.
|
420
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
421
|
+
# unique in the current API Management service instance.
|
422
|
+
# @param parameters [OperationContract] Create parameters.
|
423
|
+
# @param if_match [String] ETag of the Entity. Not required when creating an
|
424
|
+
# entity, but required when updating an entity.
|
425
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
426
|
+
# will be added to the HTTP request.
|
427
|
+
#
|
428
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
429
|
+
#
|
430
|
+
def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match:nil, custom_headers:nil)
|
431
|
+
create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match:if_match, custom_headers:custom_headers).value!
|
432
|
+
end
|
433
|
+
|
434
|
+
#
|
435
|
+
# Creates a new operation in the API or updates an existing one.
|
436
|
+
#
|
437
|
+
# @param resource_group_name [String] The name of the resource group.
|
438
|
+
# @param service_name [String] The name of the API Management service.
|
439
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
440
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
441
|
+
# where n is the revision number.
|
442
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
443
|
+
# unique in the current API Management service instance.
|
444
|
+
# @param parameters [OperationContract] Create parameters.
|
445
|
+
# @param if_match [String] ETag of the Entity. Not required when creating an
|
446
|
+
# entity, but required when updating an entity.
|
447
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
448
|
+
# to the HTTP request.
|
449
|
+
#
|
450
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
451
|
+
#
|
452
|
+
def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match:nil, custom_headers:nil)
|
453
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
454
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
455
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
456
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
457
|
+
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?
|
458
|
+
fail ArgumentError, 'api_id is nil' if api_id.nil?
|
459
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
|
460
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
|
461
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
|
462
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
463
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
|
464
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
|
465
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
|
466
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
467
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
468
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
469
|
+
|
470
|
+
|
471
|
+
request_headers = {}
|
472
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
473
|
+
|
474
|
+
# Set Headers
|
475
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
476
|
+
request_headers['If-Match'] = if_match unless if_match.nil?
|
477
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
478
|
+
|
479
|
+
# Serialize Request
|
480
|
+
request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationContract.mapper()
|
481
|
+
request_content = @client.serialize(request_mapper, parameters)
|
482
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
483
|
+
|
484
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
|
485
|
+
|
486
|
+
request_url = @base_url || @client.base_url
|
487
|
+
|
488
|
+
options = {
|
489
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
490
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
491
|
+
query_params: {'api-version' => @client.api_version},
|
492
|
+
body: request_content,
|
493
|
+
headers: request_headers.merge(custom_headers || {}),
|
494
|
+
base_url: request_url
|
495
|
+
}
|
496
|
+
promise = @client.make_request_async(:put, path_template, options)
|
497
|
+
|
498
|
+
promise = promise.then do |result|
|
499
|
+
http_response = result.response
|
500
|
+
status_code = http_response.status
|
501
|
+
response_content = http_response.body
|
502
|
+
unless status_code == 201 || status_code == 200
|
503
|
+
error_model = JSON.load(response_content)
|
504
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
505
|
+
end
|
506
|
+
|
507
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
508
|
+
# Deserialize Response
|
509
|
+
if status_code == 201
|
510
|
+
begin
|
511
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
512
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationContract.mapper()
|
513
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
514
|
+
rescue Exception => e
|
515
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
516
|
+
end
|
517
|
+
end
|
518
|
+
# Deserialize Response
|
519
|
+
if status_code == 200
|
520
|
+
begin
|
521
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
522
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationContract.mapper()
|
523
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
524
|
+
rescue Exception => e
|
525
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
result
|
530
|
+
end
|
531
|
+
|
532
|
+
promise.execute
|
533
|
+
end
|
534
|
+
|
535
|
+
#
|
536
|
+
# Updates the details of the operation in the API specified by its identifier.
|
537
|
+
#
|
538
|
+
# @param resource_group_name [String] The name of the resource group.
|
539
|
+
# @param service_name [String] The name of the API Management service.
|
540
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
541
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
542
|
+
# where n is the revision number.
|
543
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
544
|
+
# unique in the current API Management service instance.
|
545
|
+
# @param parameters [OperationUpdateContract] API Operation Update parameters.
|
546
|
+
# @param if_match [String] ETag of the Entity. ETag should match the current
|
547
|
+
# entity state from the header response of the GET request or it should be *
|
548
|
+
# for unconditional update.
|
549
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
550
|
+
# will be added to the HTTP request.
|
551
|
+
#
|
552
|
+
#
|
553
|
+
def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil)
|
554
|
+
response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value!
|
555
|
+
nil
|
556
|
+
end
|
557
|
+
|
558
|
+
#
|
559
|
+
# Updates the details of the operation in the API specified by its identifier.
|
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 api_id [String] API revision identifier. Must be unique in the current
|
564
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
565
|
+
# where n is the revision number.
|
566
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
567
|
+
# unique in the current API Management service instance.
|
568
|
+
# @param parameters [OperationUpdateContract] API Operation Update parameters.
|
569
|
+
# @param if_match [String] ETag of the Entity. ETag should match the current
|
570
|
+
# entity state from the header response of the GET request or it should be *
|
571
|
+
# for unconditional update.
|
572
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
573
|
+
# will be added to the HTTP request.
|
574
|
+
#
|
575
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
576
|
+
#
|
577
|
+
def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil)
|
578
|
+
update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value!
|
579
|
+
end
|
580
|
+
|
581
|
+
#
|
582
|
+
# Updates the details of the operation in the API specified by its identifier.
|
583
|
+
#
|
584
|
+
# @param resource_group_name [String] The name of the resource group.
|
585
|
+
# @param service_name [String] The name of the API Management service.
|
586
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
587
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
588
|
+
# where n is the revision number.
|
589
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
590
|
+
# unique in the current API Management service instance.
|
591
|
+
# @param parameters [OperationUpdateContract] API Operation Update parameters.
|
592
|
+
# @param if_match [String] ETag of the Entity. ETag should match the current
|
593
|
+
# entity state from the header response of the GET request or it should be *
|
594
|
+
# for unconditional update.
|
595
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
596
|
+
# to the HTTP request.
|
597
|
+
#
|
598
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
599
|
+
#
|
600
|
+
def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil)
|
601
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
602
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
603
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
604
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
605
|
+
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?
|
606
|
+
fail ArgumentError, 'api_id is nil' if api_id.nil?
|
607
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
|
608
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
|
609
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
|
610
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
611
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
|
612
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
|
613
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
|
614
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
615
|
+
fail ArgumentError, 'if_match is nil' if if_match.nil?
|
616
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
617
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
618
|
+
|
619
|
+
|
620
|
+
request_headers = {}
|
621
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
622
|
+
|
623
|
+
# Set Headers
|
624
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
625
|
+
request_headers['If-Match'] = if_match unless if_match.nil?
|
626
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
627
|
+
|
628
|
+
# Serialize Request
|
629
|
+
request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationUpdateContract.mapper()
|
630
|
+
request_content = @client.serialize(request_mapper, parameters)
|
631
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
632
|
+
|
633
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
|
634
|
+
|
635
|
+
request_url = @base_url || @client.base_url
|
636
|
+
|
637
|
+
options = {
|
638
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
639
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
640
|
+
query_params: {'api-version' => @client.api_version},
|
641
|
+
body: request_content,
|
642
|
+
headers: request_headers.merge(custom_headers || {}),
|
643
|
+
base_url: request_url
|
644
|
+
}
|
645
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
646
|
+
|
647
|
+
promise = promise.then do |result|
|
648
|
+
http_response = result.response
|
649
|
+
status_code = http_response.status
|
650
|
+
response_content = http_response.body
|
651
|
+
unless status_code == 204
|
652
|
+
error_model = JSON.load(response_content)
|
653
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
654
|
+
end
|
655
|
+
|
656
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
657
|
+
|
658
|
+
result
|
659
|
+
end
|
660
|
+
|
661
|
+
promise.execute
|
662
|
+
end
|
663
|
+
|
664
|
+
#
|
665
|
+
# Deletes the specified operation in the API.
|
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 api_id [String] API revision identifier. Must be unique in the current
|
670
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
671
|
+
# where n is the revision number.
|
672
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
673
|
+
# unique in the current API Management service instance.
|
674
|
+
# @param if_match [String] ETag of the Entity. ETag should match the current
|
675
|
+
# entity state from the header response of the GET request or it should be *
|
676
|
+
# for unconditional update.
|
677
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
678
|
+
# will be added to the HTTP request.
|
679
|
+
#
|
680
|
+
#
|
681
|
+
def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil)
|
682
|
+
response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value!
|
683
|
+
nil
|
684
|
+
end
|
685
|
+
|
686
|
+
#
|
687
|
+
# Deletes the specified operation in the API.
|
688
|
+
#
|
689
|
+
# @param resource_group_name [String] The name of the resource group.
|
690
|
+
# @param service_name [String] The name of the API Management service.
|
691
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
692
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
693
|
+
# where n is the revision number.
|
694
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
695
|
+
# unique in the current API Management service instance.
|
696
|
+
# @param if_match [String] ETag of the Entity. ETag should match the current
|
697
|
+
# entity state from the header response of the GET request or it should be *
|
698
|
+
# for unconditional update.
|
699
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
700
|
+
# will be added to the HTTP request.
|
701
|
+
#
|
702
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
703
|
+
#
|
704
|
+
def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil)
|
705
|
+
delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value!
|
706
|
+
end
|
707
|
+
|
708
|
+
#
|
709
|
+
# Deletes the specified operation in the API.
|
710
|
+
#
|
711
|
+
# @param resource_group_name [String] The name of the resource group.
|
712
|
+
# @param service_name [String] The name of the API Management service.
|
713
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
714
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
715
|
+
# where n is the revision number.
|
716
|
+
# @param operation_id [String] Operation identifier within an API. Must be
|
717
|
+
# unique in the current API Management service instance.
|
718
|
+
# @param if_match [String] ETag of the Entity. ETag should match the current
|
719
|
+
# entity state from the header response of the GET request or it should be *
|
720
|
+
# for unconditional update.
|
721
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
722
|
+
# to the HTTP request.
|
723
|
+
#
|
724
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
725
|
+
#
|
726
|
+
def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil)
|
727
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
728
|
+
fail ArgumentError, 'service_name is nil' if service_name.nil?
|
729
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50
|
730
|
+
fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1
|
731
|
+
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?
|
732
|
+
fail ArgumentError, 'api_id is nil' if api_id.nil?
|
733
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256
|
734
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1
|
735
|
+
fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil?
|
736
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
737
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '80'" if !operation_id.nil? && operation_id.length > 80
|
738
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1
|
739
|
+
fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '(^[\w]+$)|(^[\w][\w\-]+[\w]$)'" if !operation_id.nil? && operation_id.match(Regexp.new('^(^[\w]+$)|(^[\w][\w\-]+[\w]$)$')).nil?
|
740
|
+
fail ArgumentError, 'if_match is nil' if if_match.nil?
|
741
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
742
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
743
|
+
|
744
|
+
|
745
|
+
request_headers = {}
|
746
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
747
|
+
|
748
|
+
# Set Headers
|
749
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
750
|
+
request_headers['If-Match'] = if_match unless if_match.nil?
|
751
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
752
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}'
|
753
|
+
|
754
|
+
request_url = @base_url || @client.base_url
|
755
|
+
|
756
|
+
options = {
|
757
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
758
|
+
path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
759
|
+
query_params: {'api-version' => @client.api_version},
|
760
|
+
headers: request_headers.merge(custom_headers || {}),
|
761
|
+
base_url: request_url
|
762
|
+
}
|
763
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
764
|
+
|
765
|
+
promise = promise.then do |result|
|
766
|
+
http_response = result.response
|
767
|
+
status_code = http_response.status
|
768
|
+
response_content = http_response.body
|
769
|
+
unless status_code == 200 || status_code == 204
|
770
|
+
error_model = JSON.load(response_content)
|
771
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
772
|
+
end
|
773
|
+
|
774
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
775
|
+
|
776
|
+
result
|
777
|
+
end
|
778
|
+
|
779
|
+
promise.execute
|
780
|
+
end
|
781
|
+
|
782
|
+
#
|
783
|
+
# Lists a collection of the operations for the specified API.
|
784
|
+
#
|
785
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
786
|
+
# to List operation.
|
787
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
788
|
+
# will be added to the HTTP request.
|
789
|
+
#
|
790
|
+
# @return [OperationCollection] operation results.
|
791
|
+
#
|
792
|
+
def list_by_api_next(next_page_link, custom_headers:nil)
|
793
|
+
response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
|
794
|
+
response.body unless response.nil?
|
795
|
+
end
|
796
|
+
|
797
|
+
#
|
798
|
+
# Lists a collection of the operations for the specified API.
|
799
|
+
#
|
800
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
801
|
+
# to List operation.
|
802
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
803
|
+
# will be added to the HTTP request.
|
804
|
+
#
|
805
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
806
|
+
#
|
807
|
+
def list_by_api_next_with_http_info(next_page_link, custom_headers:nil)
|
808
|
+
list_by_api_next_async(next_page_link, custom_headers:custom_headers).value!
|
809
|
+
end
|
810
|
+
|
811
|
+
#
|
812
|
+
# Lists a collection of the operations for the specified API.
|
813
|
+
#
|
814
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
815
|
+
# to List operation.
|
816
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
817
|
+
# to the HTTP request.
|
818
|
+
#
|
819
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
820
|
+
#
|
821
|
+
def list_by_api_next_async(next_page_link, custom_headers:nil)
|
822
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
823
|
+
|
824
|
+
|
825
|
+
request_headers = {}
|
826
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
827
|
+
|
828
|
+
# Set Headers
|
829
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
830
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
831
|
+
path_template = '{nextLink}'
|
832
|
+
|
833
|
+
request_url = @base_url || @client.base_url
|
834
|
+
|
835
|
+
options = {
|
836
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
837
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
838
|
+
headers: request_headers.merge(custom_headers || {}),
|
839
|
+
base_url: request_url
|
840
|
+
}
|
841
|
+
promise = @client.make_request_async(:get, path_template, options)
|
842
|
+
|
843
|
+
promise = promise.then do |result|
|
844
|
+
http_response = result.response
|
845
|
+
status_code = http_response.status
|
846
|
+
response_content = http_response.body
|
847
|
+
unless status_code == 200
|
848
|
+
error_model = JSON.load(response_content)
|
849
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
850
|
+
end
|
851
|
+
|
852
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
853
|
+
# Deserialize Response
|
854
|
+
if status_code == 200
|
855
|
+
begin
|
856
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
857
|
+
result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01::Models::OperationCollection.mapper()
|
858
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
859
|
+
rescue Exception => e
|
860
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
861
|
+
end
|
862
|
+
end
|
863
|
+
|
864
|
+
result
|
865
|
+
end
|
866
|
+
|
867
|
+
promise.execute
|
868
|
+
end
|
869
|
+
|
870
|
+
#
|
871
|
+
# Lists a collection of the operations for the specified API.
|
872
|
+
#
|
873
|
+
# @param resource_group_name [String] The name of the resource group.
|
874
|
+
# @param service_name [String] The name of the API Management service.
|
875
|
+
# @param api_id [String] API revision identifier. Must be unique in the current
|
876
|
+
# API Management service instance. Non-current revision has ;rev=n as a suffix
|
877
|
+
# where n is the revision number.
|
878
|
+
# @param filter [String] | Field | Supported operators | Supported
|
879
|
+
# functions |
|
880
|
+
# |-------------|------------------------|-----------------------------------|
|
881
|
+
# | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
882
|
+
# | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
883
|
+
# | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
884
|
+
# | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith |
|
885
|
+
# @param top [Integer] Number of records to return.
|
886
|
+
# @param skip [Integer] Number of records to skip.
|
887
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
888
|
+
# will be added to the HTTP request.
|
889
|
+
#
|
890
|
+
# @return [OperationCollection] which provide lazy access to pages of the
|
891
|
+
# response.
|
892
|
+
#
|
893
|
+
def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil)
|
894
|
+
response = list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
|
895
|
+
unless response.nil?
|
896
|
+
page = response.body
|
897
|
+
page.next_method = Proc.new do |next_page_link|
|
898
|
+
list_by_api_next_async(next_page_link, custom_headers:custom_headers)
|
899
|
+
end
|
900
|
+
page
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
904
|
+
end
|
905
|
+
end
|