From 568ee32daf3662b98bd0f107f6f99c0f5962c431 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 10 Oct 2018 16:47:16 +0000 Subject: [PATCH] Generated from e9f8a03e4cc603110866082b447f92a9580df5a8 Add apimanagement/resource-manager/readme.typescript.md --- .../analysisservices_profile_module.rb | 112 +- .../modules/apimanagement_profile_module.rb | 198 +- .../modules/automation_profile_module.rb | 362 +-- .../latest/modules/batch_profile_module.rb | 192 +- .../latest/modules/billing_profile_module.rb | 50 +- .../lib/latest/modules/cdn_profile_module.rb | 88 +- .../cognitiveservices_profile_module.rb | 64 +- .../latest/modules/commerce_profile_module.rb | 40 +- .../latest/modules/compute_profile_module.rb | 1076 +++--- .../modules/consumption_profile_module.rb | 72 +- .../containerinstance_profile_module.rb | 192 +- .../containerregistry_profile_module.rb | 134 +- .../containerservice_profile_module.rb | 126 +- .../contentmoderator_profile_module.rb | 238 +- .../customerinsights_profile_module.rb | 346 +- .../modules/customsearch_profile_module.rb | 24 +- .../datalakeanalytics_profile_module.rb | 142 +- .../modules/datalakestore_profile_module.rb | 166 +- .../modules/devspaces_profile_module.rb | 48 +- .../modules/devtestlabs_profile_module.rb | 282 +- .../lib/latest/modules/dns_profile_module.rb | 80 +- .../modules/entitysearch_profile_module.rb | 124 +- .../modules/eventgrid_profile_module.rb | 110 +- .../latest/modules/eventhub_profile_module.rb | 78 +- .../lib/latest/modules/face_profile_module.rb | 68 +- .../latest/modules/features_profile_module.rb | 8 +- .../modules/graphrbac_profile_module.rb | 198 +- .../modules/imagesearch_profile_module.rb | 184 +- .../modules/iotcentral_profile_module.rb | 46 +- .../latest/modules/iothub_profile_module.rb | 108 +- .../latest/modules/keyvault_profile_module.rb | 176 +- .../latest/modules/locks_profile_module.rb | 12 +- .../latest/modules/logic_profile_module.rb | 302 +- .../modules/machinelearning_profile_module.rb | 110 +- .../managedapplications_profile_module.rb | 60 +- .../managedserviceidentity_profile_module.rb | 24 +- .../marketplaceordering_profile_module.rb | 22 +- .../modules/mediaservices_profile_module.rb | 434 +-- .../latest/modules/monitor_profile_module.rb | 322 +- .../latest/modules/network_profile_module.rb | 1794 +++++----- .../modules/newssearch_profile_module.rb | 94 +- .../notificationhubs_profile_module.rb | 164 +- .../operationalinsights_profile_module.rb | 188 +- .../latest/modules/policy_profile_module.rb | 52 +- .../modules/policyinsights_profile_module.rb | 30 +- .../modules/powerbiembedded_profile_module.rb | 56 +- .../recoveryservices_profile_module.rb | 64 +- .../recoveryservicesbackup_profile_module.rb | 856 ++--- ...veryservicessiterecovery_profile_module.rb | 238 +- .../latest/modules/redis_profile_module.rb | 120 +- .../latest/modules/relay_profile_module.rb | 104 +- .../modules/resources_profile_module.rb | 196 +- .../resourcesmanagement_profile_module.rb | 52 +- .../modules/scheduler_profile_module.rb | 114 +- .../latest/modules/search_profile_module.rb | 76 +- .../latest/modules/security_profile_module.rb | 8 +- .../modules/servicebus_profile_module.rb | 174 +- .../modules/servicefabric_profile_module.rb | 214 +- .../latest/modules/signalr_profile_module.rb | 66 +- .../modules/spellcheck_profile_module.rb | 62 +- .../lib/latest/modules/sql_profile_module.rb | 1066 +++--- .../latest/modules/storage_profile_module.rb | 380 +-- .../storsimple8000series_profile_module.rb | 490 +-- .../modules/streamanalytics_profile_module.rb | 116 +- .../modules/subscriptions_profile_module.rb | 8 +- .../modules/textanalytics_profile_module.rb | 38 +- .../modules/trafficmanager_profile_module.rb | 100 +- .../modules/videosearch_profile_module.rb | 158 +- .../lib/latest/modules/web_profile_module.rb | 864 ++--- .../modules/websearch_profile_module.rb | 174 +- .../modules/compute_profile_module.rb | 46 +- .../modules/features_profile_module.rb | 8 +- .../modules/locks_profile_module.rb | 8 +- .../modules/network_profile_module.rb | 82 +- .../modules/resources_profile_module.rb | 66 +- .../modules/storage_profile_module.rb | 8 +- .../modules/subscriptions_profile_module.rb | 8 +- .../api_management_client.rb | 18 +- .../api_management_services.rb | 263 +- .../api_operations.rb | 120 +- .../azure_mgmt_api_management/api_products.rb | 36 +- .../azure_mgmt_api_management/apis.rb | 122 +- .../authorization_servers.rb | 97 +- .../azure_mgmt_api_management/backends.rb | 105 +- .../azure_mgmt_api_management/certificates.rb | 80 +- .../azure_mgmt_api_management/group_users.rb | 76 +- .../azure_mgmt_api_management/groups.rb | 105 +- .../identity_providers.rb | 74 +- .../azure_mgmt_api_management/loggers.rb | 95 +- .../models/access_information_contract.rb | 5 - .../access_information_update_parameters.rb | 2 - .../models/additional_region.rb | 7 - .../models/api_collection.rb | 5 - .../models/api_contract.rb | 11 - .../models/api_export_result.rb | 4 - ...ement_service_backup_restore_parameters.rb | 5 - .../api_management_service_base_parameters.rb | 24 - ...vice_check_name_availability_parameters.rb | 2 - ...management_service_get_sso_token_result.rb | 2 - .../api_management_service_list_result.rb | 4 - ...t_service_manage_deployments_parameters.rb | 8 - ...gement_service_name_availability_result.rb | 4 - .../models/api_management_service_resource.rb | 29 - .../api_management_service_sku_properties.rb | 3 - ...ment_service_update_hostname_parameters.rb | 5 - ...t_service_upload_certificate_parameters.rb | 4 - .../authentication_settings_contract.rb | 2 - .../models/authorization_server_collection.rb | 5 - .../models/backend_collection.rb | 5 - .../models/backend_contract.rb | 3 - .../models/backend_response.rb | 4 - .../models/backend_update_parameters.rb | 3 - .../models/certificate_collection.rb | 5 - .../models/certificate_contract.rb | 5 - ...certificate_create_or_update_parameters.rb | 3 - .../models/certificate_information.rb | 4 - .../models/deploy_configuration_parameters.rb | 3 - .../models/error_body_contract.rb | 5 - .../models/error_field_contract.rb | 4 - .../models/error_response.rb | 3 - .../models/generate_sso_url_result.rb | 2 - .../models/group_collection.rb | 5 - .../models/group_contract.rb | 7 - .../models/group_create_parameters.rb | 5 - .../models/group_update_parameters.rb | 5 - .../models/hostname_configuration.rb | 4 - .../models/identity_provider_contract.rb | 6 - .../models/identity_provider_list.rb | 3 - .../identity_provider_update_parameters.rb | 5 - .../models/logger_collection.rb | 5 - .../models/logger_create_parameters.rb | 6 - .../models/logger_response.rb | 7 - .../models/logger_update_parameters.rb | 6 - .../oauth2authentication_settings_contract.rb | 3 - .../oauth2authorization_server_contract.rb | 23 - ...th2authorization_server_update_contract.rb | 22 - .../open_id_connect_provider_collection.rb | 5 - .../openid_connect_provider_contract.rb | 7 - ...openid_connect_provider_create_contract.rb | 6 - ...openid_connect_provider_update_contract.rb | 6 - .../models/operation_collection.rb | 5 - .../models/operation_contract.rb | 11 - .../models/operation_result_contract.rb | 7 - .../models/parameter_contract.rb | 8 - .../models/patch_parameters.rb | 2 - .../models/policy_snippet_contract.rb | 5 - .../models/product_collection.rb | 5 - .../models/product_contract.rb | 9 - .../models/product_update_parameters.rb | 8 - .../models/property_collection.rb | 5 - .../models/property_contract.rb | 7 - .../models/property_create_parameters.rb | 6 - .../models/property_update_parameters.rb | 6 - .../models/quota_counter_collection.rb | 5 - .../models/quota_counter_contract.rb | 7 - .../models/quota_counter_value_contract.rb | 3 - .../models/region_contract.rb | 3 - .../models/region_list_result.rb | 3 - .../models/report_collection.rb | 5 - .../models/report_record_contract.rb | 27 - .../models/representation_contract.rb | 3 - .../models/request_contract.rb | 8 - .../models/result_contract.rb | 5 - .../models/save_configuration_parameter.rb | 3 - .../models/subscription_collection.rb | 5 - .../models/subscription_contract.rb | 14 - .../models/subscription_create_parameters.rb | 7 - ...bscription_key_parameter_names_contract.rb | 3 - .../models/subscription_update_parameters.rb | 9 - ...enant_configuration_sync_state_contract.rb | 8 - .../tenant_long_running_operation_result.rb | 6 - .../models/token_body_parameter_contract.rb | 3 - .../models/user_collection.rb | 5 - .../models/user_contract.rb | 10 - .../models/user_create_parameters.rb | 7 - .../models/user_identity_contract.rb | 3 - .../models/user_update_parameters.rb | 7 - .../models/virtual_network_configuration.rb | 5 - .../open_id_connect_providers.rb | 95 +- .../policy_snippets.rb | 16 +- .../azure_mgmt_api_management/product_apis.rb | 76 +- .../product_groups.rb | 76 +- .../product_subscriptions.rb | 36 +- .../azure_mgmt_api_management/products.rb | 105 +- .../azure_mgmt_api_management/property.rb | 95 +- .../quota_by_counter_keys.rb | 30 +- .../quota_by_period_keys.rb | 30 +- .../azure_mgmt_api_management/regions.rb | 14 +- .../azure_mgmt_api_management/reports.rb | 33 +- .../subscriptions.rb | 124 +- .../tenant_access.rb | 58 +- .../tenant_access_git.rb | 42 +- .../tenant_configuration.rb | 72 +- .../tenant_configuration_sync_state.rb | 14 +- .../azure_mgmt_api_management/user_groups.rb | 36 +- .../user_identities.rb | 19 +- .../user_subscriptions.rb | 36 +- .../azure_mgmt_api_management/users.rb | 122 +- .../azure_mgmt_api_management/version.rb | 8 + .../azure_mgmt_api_management/api_export.rb | 17 +- .../api_management_client.rb | 18 +- .../api_management_operations.rb | 28 +- .../api_management_services.rb | 285 +- .../api_operations.rb | 120 +- .../api_operations_policy.rb | 65 +- .../azure_mgmt_api_management/api_policy.rb | 56 +- .../azure_mgmt_api_management/api_products.rb | 36 +- .../azure_mgmt_api_management/apis.rb | 105 +- .../authorization_servers.rb | 101 +- .../azure_mgmt_api_management/backends.rb | 105 +- .../azure_mgmt_api_management/certificates.rb | 86 +- .../azure_mgmt_api_management/group_users.rb | 76 +- .../azure_mgmt_api_management/groups.rb | 105 +- .../identity_providers.rb | 74 +- .../azure_mgmt_api_management/loggers.rb | 101 +- .../models/access_information_contract.rb | 5 - .../access_information_update_parameters.rb | 2 - .../models/additional_region.rb | 7 - .../models/api_collection.rb | 5 - .../models/api_contract.rb | 11 - .../models/api_entity_base_contract.rb | 5 - .../models/api_export_result.rb | 4 - ...ement_service_backup_restore_parameters.rb | 5 - ...vice_check_name_availability_parameters.rb | 2 - ...management_service_get_sso_token_result.rb | 2 - .../api_management_service_list_result.rb | 4 - ...t_service_manage_deployments_parameters.rb | 8 - ...gement_service_name_availability_result.rb | 4 - .../models/api_management_service_resource.rb | 29 - .../api_management_service_sku_properties.rb | 3 - ...ment_service_update_hostname_parameters.rb | 5 - ...pi_management_service_update_parameters.rb | 24 - ...t_service_upload_certificate_parameters.rb | 4 - .../models/api_update_contract.rb | 11 - .../authentication_settings_contract.rb | 2 - .../models/authorization_server_collection.rb | 5 - ...ackend_authorization_header_credentials.rb | 3 - .../models/backend_base_parameters.rb | 17 - .../models/backend_collection.rb | 5 - .../models/backend_contract.rb | 19 - .../models/backend_credentials_contract.rb | 11 - .../models/backend_proxy_contract.rb | 4 - .../models/backend_response.rb | 19 - .../models/backend_update_parameters.rb | 18 - .../models/certificate_collection.rb | 5 - .../models/certificate_contract.rb | 5 - ...certificate_create_or_update_parameters.rb | 3 - .../models/certificate_information.rb | 4 - .../models/connectivity_status_contract.rb | 6 - .../models/deploy_configuration_parameters.rb | 3 - .../models/error_body_contract.rb | 5 - .../models/error_field_contract.rb | 4 - .../models/error_response.rb | 3 - .../models/generate_sso_url_result.rb | 2 - .../models/group_collection.rb | 5 - .../models/group_contract.rb | 7 - .../models/group_create_parameters.rb | 5 - .../models/group_update_parameters.rb | 5 - .../models/hostname_configuration.rb | 4 - .../models/identity_provider_contract.rb | 6 - .../models/identity_provider_list.rb | 3 - .../identity_provider_update_parameters.rb | 5 - .../models/logger_collection.rb | 5 - .../models/logger_create_parameters.rb | 6 - .../models/logger_response.rb | 7 - .../models/logger_update_parameters.rb | 6 - .../models/network_status_contract.rb | 5 - .../oauth2authentication_settings_contract.rb | 3 - .../oauth2authorization_server_contract.rb | 23 - ...th2authorization_server_update_contract.rb | 22 - .../open_id_connect_provider_collection.rb | 5 - .../openid_connect_provider_contract.rb | 7 - ...openid_connect_provider_create_contract.rb | 6 - ...openid_connect_provider_update_contract.rb | 6 - .../models/operation.rb | 3 - .../models/operation_collection.rb | 5 - .../models/operation_contract.rb | 11 - .../models/operation_display.rb | 5 - .../models/operation_entity_base_contract.rb | 7 - .../models/operation_list_result.rb | 4 - .../models/operation_result_contract.rb | 7 - .../models/operation_update_contract.rb | 11 - .../models/parameter_contract.rb | 8 - .../models/policy_snippet_contract.rb | 5 - .../models/policy_snippets_collection.rb | 3 - .../models/product_collection.rb | 5 - .../models/product_contract.rb | 9 - .../models/product_update_parameters.rb | 8 - .../models/property_collection.rb | 5 - .../models/property_contract.rb | 7 - .../models/property_create_parameters.rb | 6 - .../models/property_update_parameters.rb | 6 - .../models/quota_counter_collection.rb | 5 - .../models/quota_counter_contract.rb | 7 - .../models/quota_counter_value_contract.rb | 3 - .../models/region_contract.rb | 3 - .../models/region_list_result.rb | 3 - .../models/report_collection.rb | 5 - .../models/report_record_contract.rb | 27 - .../models/representation_contract.rb | 3 - .../models/request_contract.rb | 8 - .../models/resource.rb | 7 - .../models/result_contract.rb | 5 - .../models/save_configuration_parameter.rb | 3 - .../models/subscription_collection.rb | 5 - .../models/subscription_contract.rb | 14 - .../models/subscription_create_parameters.rb | 7 - ...bscription_key_parameter_names_contract.rb | 3 - .../models/subscription_update_parameters.rb | 9 - ...enant_configuration_sync_state_contract.rb | 8 - .../models/token_body_parameter_contract.rb | 3 - .../models/user_collection.rb | 5 - .../models/user_contract.rb | 10 - .../models/user_create_parameters.rb | 7 - .../models/user_identity_collection.rb | 3 - .../models/user_identity_contract.rb | 3 - .../models/user_token_parameters.rb | 3 - .../models/user_token_result.rb | 2 - .../models/user_update_parameters.rb | 7 - .../models/virtual_network_configuration.rb | 5 - .../network_status.rb | 14 +- .../open_id_connect_providers.rb | 101 +- .../policy_snippets.rb | 14 +- .../azure_mgmt_api_management/product_apis.rb | 76 +- .../product_groups.rb | 76 +- .../product_policy.rb | 56 +- .../product_subscriptions.rb | 36 +- .../azure_mgmt_api_management/products.rb | 105 +- .../azure_mgmt_api_management/properties.rb | 33 +- .../azure_mgmt_api_management/property.rb | 68 +- .../quota_by_counter_keys.rb | 30 +- .../quota_by_period_keys.rb | 30 +- .../azure_mgmt_api_management/regions.rb | 14 +- .../azure_mgmt_api_management/reports.rb | 33 +- .../subscriptions.rb | 133 +- .../tenant_access.rb | 58 +- .../tenant_access_git.rb | 42 +- .../tenant_configuration.rb | 72 +- .../tenant_configuration_sync_state.rb | 14 +- .../tenant_policy.rb | 47 +- .../azure_mgmt_api_management/user_groups.rb | 36 +- .../user_identities.rb | 17 +- .../user_subscriptions.rb | 36 +- .../azure_mgmt_api_management/users.rb | 141 +- .../azure_mgmt_api_management/version.rb | 8 + .../generated/azure_mgmt_api_management.rb | 292 ++ .../azure_mgmt_api_management/api.rb | 1099 +++++++ .../api_diagnostic.rb | 818 +++++ .../api_diagnostic_logger.rb | 600 ++++ .../azure_mgmt_api_management/api_export.rb | 140 + .../azure_mgmt_api_management/api_issue.rb | 714 ++++ .../api_issue_attachment.rb | 751 +++++ .../api_issue_comment.rb | 748 +++++ .../api_management_client.rb | 363 +++ .../api_management_operations.rb | 220 ++ .../api_management_service.rb | 1885 +++++++++++ .../api_operation.rb | 849 +++++ .../api_operation_policy.rb | 591 ++++ .../azure_mgmt_api_management/api_policy.rb | 556 ++++ .../azure_mgmt_api_management/api_product.rb | 262 ++ .../azure_mgmt_api_management/api_release.rb | 837 +++++ .../api_revisions.rb | 270 ++ .../azure_mgmt_api_management/api_schema.rb | 692 ++++ .../api_version_set.rb | 826 +++++ .../authorization_server.rb | 781 +++++ .../azure_mgmt_api_management/backend.rb | 888 +++++ .../azure_mgmt_api_management/certificate.rb | 697 ++++ .../delegation_settings.rb | 404 +++ .../azure_mgmt_api_management/diagnostic.rb | 774 +++++ .../diagnostic_logger.rb | 577 ++++ .../email_template.rb | 873 +++++ .../azure_mgmt_api_management/group.rb | 801 +++++ .../azure_mgmt_api_management/group_user.rb | 617 ++++ .../identity_provider.rb | 775 +++++ .../azure_mgmt_api_management/logger.rb | 786 +++++ .../models/access_information_contract.rb | 75 + .../access_information_update_parameters.rb | 46 + .../models/additional_location.rb | 122 + .../models/api_collection.rb | 96 + .../models/api_contract.rb | 267 ++ .../models/api_contract_properties.rb | 204 ++ .../models/api_create_or_update_parameter.rb | 291 ++ ...eate_or_update_properties_wsdl_selector.rb | 54 + .../models/api_entity_base_contract.rb | 167 + .../models/api_export_result.rb | 45 + ..._apply_network_configuration_parameters.rb | 47 + ...ement_service_backup_restore_parameters.rb | 79 + .../api_management_service_base_properties.rb | 298 ++ ...vice_check_name_availability_parameters.rb | 45 + ...management_service_get_sso_token_result.rb | 45 + .../models/api_management_service_identity.rb | 69 + .../api_management_service_list_result.rb | 96 + ...gement_service_name_availability_result.rb | 77 + .../models/api_management_service_resource.rb | 407 +++ .../api_management_service_sku_properties.rb | 57 + ...ment_service_update_hostname_parameters.rb | 72 + ...pi_management_service_update_parameters.rb | 397 +++ ...t_service_upload_certificate_parameters.rb | 68 + .../models/api_release_collection.rb | 96 + .../models/api_release_contract.rb | 102 + .../models/api_revision_collection.rb | 96 + .../models/api_revision_contract.rb | 136 + .../models/api_revision_info_contract.rb | 83 + .../api_tag_resource_contract_properties.rb | 203 ++ .../models/api_type.rb | 16 + .../models/api_update_contract.rb | 232 ++ .../models/api_version_set_collection.rb | 94 + .../models/api_version_set_contract.rb | 124 + .../api_version_set_contract_details.rb | 90 + .../models/api_version_set_entity_base.rb | 74 + .../api_version_set_update_parameters.rb | 100 + .../models/apim_resource.rb | 85 + .../models/async_operation_status.rb | 18 + .../authentication_settings_contract.rb | 46 + .../models/authorization_method.rb | 22 + .../models/authorization_server_collection.rb | 104 + .../models/authorization_server_contract.rb | 284 ++ ...ization_server_contract_base_properties.rb | 195 ++ .../authorization_server_update_contract.rb | 284 ++ ...ackend_authorization_header_credentials.rb | 62 + .../models/backend_base_parameters.rb | 123 + .../models/backend_collection.rb | 94 + .../models/backend_contract.rb | 172 + .../models/backend_credentials_contract.rb | 114 + .../models/backend_properties.rb | 46 + .../models/backend_protocol.rb | 16 + .../models/backend_proxy_contract.rb | 70 + .../models/backend_reconnect_contract.rb | 69 + ...ckend_service_fabric_cluster_properties.rb | 110 + .../models/backend_tls_properties.rb | 60 + .../models/backend_update_parameters.rb | 148 + .../models/bearer_token_sending_method.rb | 16 + .../models/certificate_collection.rb | 94 + .../models/certificate_configuration.rb | 79 + .../models/certificate_contract.rb | 91 + ...certificate_create_or_update_parameters.rb | 55 + .../models/certificate_information.rb | 66 + .../models/client_authentication_method.rb | 16 + .../models/confirmation.rb | 16 + .../models/connectivity_status_contract.rb | 101 + .../models/connectivity_status_type.rb | 17 + .../models/content_format.rb | 20 + .../models/deploy_configuration_parameters.rb | 56 + .../models/diagnostic_collection.rb | 94 + .../models/diagnostic_contract.rb | 69 + .../models/email_template_collection.rb | 94 + .../models/email_template_contract.rb | 136 + ...template_parameters_contract_properties.rb | 79 + .../email_template_update_parameters.rb | 100 + .../models/error_field_contract.rb | 64 + .../models/error_response.rb | 74 + .../models/error_response_body.rb | 74 + .../models/export_format.rb | 17 + .../models/generate_sso_url_result.rb | 44 + .../models/grant_type.rb | 18 + .../models/group_collection.rb | 94 + .../models/group_contract.rb | 122 + .../models/group_contract_properties.rb | 98 + .../models/group_create_parameters.rb | 83 + .../models/group_type.rb | 17 + .../models/group_update_parameters.rb | 83 + .../models/hostname_configuration.rb | 129 + .../models/hostname_configuration_old.rb | 67 + .../models/hostname_type.rb | 18 + .../identity_provider_base_parameters.rb | 123 + .../models/identity_provider_contract.rb | 178 + .../models/identity_provider_list.rb | 95 + .../models/identity_provider_type.rb | 20 + .../identity_provider_update_parameters.rb | 154 + .../models/issue_attachment_collection.rb | 96 + .../models/issue_attachment_contract.rb | 90 + .../models/issue_collection.rb | 96 + .../models/issue_comment_collection.rb | 96 + .../models/issue_comment_contract.rb | 89 + .../models/issue_contract.rb | 120 + .../models/key_type.rb | 16 + .../models/logger_collection.rb | 104 + .../models/logger_contract.rb | 112 + .../models/logger_type.rb | 16 + .../models/logger_update_contract.rb | 83 + .../models/name_availability_reason.rb | 17 + .../models/network_status_contract.rb | 70 + .../network_status_contract_by_location.rb | 58 + .../models/notification_collection.rb | 94 + .../models/notification_contract.rb | 93 + .../models/notification_name.rb | 21 + .../oauth2authentication_settings_contract.rb | 54 + .../open_id_connect_provider_collection.rb | 94 + .../openid_connect_provider_contract.rb | 113 + ...openid_connect_provider_update_contract.rb | 89 + .../models/operation.rb | 75 + .../models/operation_collection.rb | 96 + .../models/operation_contract.rb | 171 + .../models/operation_display.rb | 75 + .../models/operation_entity_base_contract.rb | 106 + .../models/operation_list_result.rb | 97 + .../models/operation_result_contract.rb | 125 + .../operation_result_log_item_contract.rb | 65 + ...ration_tag_resource_contract_properties.rb | 125 + .../models/operation_update_contract.rb | 147 + .../models/parameter_contract.rb | 101 + .../models/policy_collection.rb | 62 + .../models/policy_content_format.rb | 18 + .../models/policy_contract.rb | 81 + .../models/policy_scope_contract.rb | 19 + .../models/policy_snippet_contract.rb | 78 + .../models/policy_snippets_collection.rb | 52 + .../models/portal_delegation_settings.rb | 103 + .../models/portal_signin_settings.rb | 68 + .../models/portal_signup_settings.rb | 80 + .../models/product_collection.rb | 94 + .../models/product_contract.rb | 156 + .../models/product_entity_base_parameters.rb | 118 + .../models/product_state.rb | 16 + ...roduct_tag_resource_contract_properties.rb | 106 + .../models/product_update_parameters.rb | 132 + .../models/property_collection.rb | 94 + .../models/property_contract.rb | 121 + .../models/property_entity_base_parameters.rb | 66 + .../models/property_update_parameters.rb | 97 + .../models/protocol.rb | 16 + .../models/quota_counter_collection.rb | 72 + .../models/quota_counter_contract.rb | 98 + .../models/quota_counter_value_contract.rb | 54 + ...quota_counter_value_contract_properties.rb | 54 + .../models/recipient_email_collection.rb | 62 + .../models/recipient_email_contract.rb | 68 + .../models/recipient_user_collection.rb | 62 + .../models/recipient_user_contract.rb | 68 + .../models/recipients_contract_properties.rb | 68 + .../models/region_contract.rb | 65 + .../models/region_list_result.rb | 104 + ...stration_delegation_settings_properties.rb | 44 + .../models/report_collection.rb | 104 + .../models/report_record_contract.rb | 311 ++ .../models/representation_contract.rb | 99 + .../models/request_contract.rb | 101 + .../models/request_report_collection.rb | 62 + .../models/request_report_record_contract.rb | 226 ++ .../models/resource.rb | 67 + .../models/response_contract.rb | 92 + .../models/save_configuration_parameter.rb | 57 + .../models/schema_collection.rb | 96 + .../models/schema_contract.rb | 81 + .../models/sku_type.rb | 18 + .../models/soap_api_type.rb | 16 + .../azure_mgmt_api_management/models/state.rb | 19 + .../models/subscription_collection.rb | 94 + .../models/subscription_contract.rb | 228 ++ .../models/subscription_create_parameters.rb | 121 + ...bscription_key_parameter_names_contract.rb | 54 + .../models/subscription_state.rb | 20 + .../models/subscription_update_parameters.rb | 137 + ...riptions_delegation_settings_properties.rb | 45 + .../models/tag_collection.rb | 94 + .../models/tag_contract.rb | 72 + .../models/tag_create_update_parameters.rb | 48 + .../models/tag_description_collection.rb | 94 + .../models/tag_description_contract.rb | 106 + .../tag_description_create_parameters.rb | 68 + .../models/tag_resource_collection.rb | 104 + .../models/tag_resource_contract.rb | 81 + .../tag_tag_resource_contract_properties.rb | 58 + .../models/template_name.rb | 28 + ...enant_configuration_sync_state_contract.rb | 113 + .../models/terms_of_service_properties.rb | 64 + .../models/token_body_parameter_contract.rb | 54 + .../models/user_collection.rb | 94 + .../models/user_contract.rb | 165 + .../models/user_create_parameters.rb | 144 + .../models/user_entity_base_parameters.rb | 78 + .../models/user_identity_collection.rb | 104 + .../models/user_identity_contract.rb | 54 + .../models/user_state.rb | 18 + .../models/user_token_parameters.rb | 61 + .../models/user_token_result.rb | 44 + .../models/user_update_parameters.rb | 131 + .../models/versioning_scheme.rb | 17 + .../models/virtual_network_configuration.rb | 72 + .../models/virtual_network_type.rb | 17 + .../models/x509certificate_name.rb | 54 + .../module_definition.rb | 9 + .../network_status.rb | 243 ++ .../azure_mgmt_api_management/notification.rb | 454 +++ .../notification_recipient_email.rb | 458 +++ .../notification_recipient_user.rb | 470 +++ .../open_id_connect_provider.rb | 774 +++++ .../operation_operations.rb | 306 ++ .../azure_mgmt_api_management/policy.rb | 508 +++ .../policy_snippets.rb | 122 + .../azure_mgmt_api_management/product.rb | 824 +++++ .../azure_mgmt_api_management/product_api.rb | 614 ++++ .../product_group.rb | 603 ++++ .../product_policy.rb | 538 +++ .../product_subscriptions.rb | 302 ++ .../azure_mgmt_api_management/property.rb | 771 +++++ .../quota_by_counter_keys.rb | 256 ++ .../quota_by_period_keys.rb | 255 ++ .../azure_mgmt_api_management/regions.rb | 225 ++ .../azure_mgmt_api_management/reports.rb | 1635 ++++++++++ .../sign_in_settings.rb | 404 +++ .../sign_up_settings.rb | 404 +++ .../azure_mgmt_api_management/subscription.rb | 1025 ++++++ .../azure_mgmt_api_management/tag.rb | 2878 +++++++++++++++++ .../tag_description.rb | 739 +++++ .../azure_mgmt_api_management/tag_resource.rb | 349 ++ .../tenant_access.rb | 387 +++ .../tenant_access_git.rb | 279 ++ .../tenant_configuration.rb | 597 ++++ .../azure_mgmt_api_management/user.rb | 1049 ++++++ .../azure_mgmt_api_management/user_group.rb | 277 ++ .../user_identities.rb | 234 ++ .../user_subscription.rb | 302 ++ .../azure_mgmt_api_management/version.rb | 8 + .../lib/azure_mgmt_api_management.rb | 7 +- .../modules/apimanagement_profile_module.rb | 672 ++-- 616 files changed, 67093 insertions(+), 12151 deletions(-) create mode 100644 management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/version.rb create mode 100644 management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/version.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/state.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb create mode 100644 management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/version.rb diff --git a/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb b/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb index f2ff35ae4a..4a11e57f0f 100644 --- a/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb @@ -11,19 +11,6 @@ module Mgmt Operations = Azure::AnalysisServices::Mgmt::V2017_08_01::Operations module Models - AnalysisServicesServerUpdateParameters = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServerUpdateParameters - OperationDisplay = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationDisplay - GatewayListStatusLive = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusLive - OperationListResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationListResult - GatewayError = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayError - Resource = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource - GatewayListStatusError = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusError - AnalysisServicesServers = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServers - CheckServerNameAvailabilityParameters = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityParameters - GatewayDetails = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayDetails - CheckServerNameAvailabilityResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityResult - IPv4FirewallSettings = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::IPv4FirewallSettings - ErrorResponse = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ErrorResponse ResourceSku = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ResourceSku OperationStatus = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationStatus ServerAdministrators = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ServerAdministrators @@ -33,11 +20,24 @@ module Models IPv4FirewallRule = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::IPv4FirewallRule SkuEnumerationForExistingResourceResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuEnumerationForExistingResourceResult AnalysisServicesServer = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer + ConnectionMode = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ConnectionMode + Resource = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource SkuTier = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuTier State = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::State ProvisioningState = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ProvisioningState - ConnectionMode = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ConnectionMode Status = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Status + AnalysisServicesServerUpdateParameters = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServerUpdateParameters + OperationDisplay = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationDisplay + GatewayListStatusLive = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusLive + OperationListResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationListResult + GatewayError = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayError + GatewayListStatusError = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusError + AnalysisServicesServers = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServers + CheckServerNameAvailabilityParameters = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityParameters + GatewayDetails = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayDetails + CheckServerNameAvailabilityResult = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityResult + IPv4FirewallSettings = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::IPv4FirewallSettings + ErrorResponse = Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ErrorResponse end class AnalysisServicesManagementClass @@ -71,45 +71,6 @@ def method_missing(method, *args) end class ModelClasses - def analysis_services_server_update_parameters - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServerUpdateParameters - end - def operation_display - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationDisplay - end - def gateway_list_status_live - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusLive - end - def operation_list_result - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationListResult - end - def gateway_error - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayError - end - def resource - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource - end - def gateway_list_status_error - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusError - end - def analysis_services_servers - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServers - end - def check_server_name_availability_parameters - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityParameters - end - def gateway_details - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayDetails - end - def check_server_name_availability_result - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityResult - end - def ipv4_firewall_settings - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::IPv4FirewallSettings - end - def error_response - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ErrorResponse - end def resource_sku Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ResourceSku end @@ -137,6 +98,12 @@ def sku_enumeration_for_existing_resource_result def analysis_services_server Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServer end + def connection_mode + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ConnectionMode + end + def resource + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Resource + end def sku_tier Azure::AnalysisServices::Mgmt::V2017_08_01::Models::SkuTier end @@ -146,12 +113,45 @@ def state def provisioning_state Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ProvisioningState end - def connection_mode - Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ConnectionMode - end def status Azure::AnalysisServices::Mgmt::V2017_08_01::Models::Status end + def analysis_services_server_update_parameters + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServerUpdateParameters + end + def operation_display + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationDisplay + end + def gateway_list_status_live + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusLive + end + def operation_list_result + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::OperationListResult + end + def gateway_error + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayError + end + def gateway_list_status_error + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayListStatusError + end + def analysis_services_servers + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::AnalysisServicesServers + end + def check_server_name_availability_parameters + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityParameters + end + def gateway_details + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::GatewayDetails + end + def check_server_name_availability_result + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::CheckServerNameAvailabilityResult + end + def ipv4_firewall_settings + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::IPv4FirewallSettings + end + def error_response + Azure::AnalysisServices::Mgmt::V2017_08_01::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb b/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb index 378e87d145..cf58a0d0e2 100644 --- a/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/apimanagement_profile_module.rb @@ -7,33 +7,12 @@ module Azure::Profiles::Latest module ApiManagement module Mgmt - Policy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Policy - PolicySnippets = Azure::ApiManagement::Mgmt::V2018_06_01_preview::PolicySnippets - Regions = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Regions - Api = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Api - ApiRevisions = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiRevisions - ApiRelease = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiRelease - ApiOperation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiOperation - ApiOperationPolicy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiOperationPolicy - ApiProduct = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiProduct - ApiPolicy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiPolicy - ApiSchema = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiSchema - ApiDiagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiDiagnostic - ApiIssue = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiIssue - ApiIssueComment = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiIssueComment - ApiIssueAttachment = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiIssueAttachment - AuthorizationServer = Azure::ApiManagement::Mgmt::V2018_06_01_preview::AuthorizationServer - Backend = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Backend - Certificate = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Certificate - ApiManagementOperations = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementOperations - ApiManagementService = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementService Diagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Diagnostic EmailTemplate = Azure::ApiManagement::Mgmt::V2018_06_01_preview::EmailTemplate - Group = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Group GroupUser = Azure::ApiManagement::Mgmt::V2018_06_01_preview::GroupUser IdentityProvider = Azure::ApiManagement::Mgmt::V2018_06_01_preview::IdentityProvider - Logger = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Logger Notification = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Notification + Group = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Group NotificationRecipientUser = Azure::ApiManagement::Mgmt::V2018_06_01_preview::NotificationRecipientUser NotificationRecipientEmail = Azure::ApiManagement::Mgmt::V2018_06_01_preview::NotificationRecipientEmail NetworkStatus = Azure::ApiManagement::Mgmt::V2018_06_01_preview::NetworkStatus @@ -50,26 +29,52 @@ module Mgmt QuotaByCounterKeys = Azure::ApiManagement::Mgmt::V2018_06_01_preview::QuotaByCounterKeys QuotaByPeriodKeys = Azure::ApiManagement::Mgmt::V2018_06_01_preview::QuotaByPeriodKeys Reports = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Reports - Subscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Subscription TagResource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TagResource - Tag = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Tag TagDescription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TagDescription OperationOperations = Azure::ApiManagement::Mgmt::V2018_06_01_preview::OperationOperations TenantAccess = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantAccess TenantAccessGit = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantAccessGit - TenantConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantConfiguration + ApiManagementService = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementService User = Azure::ApiManagement::Mgmt::V2018_06_01_preview::User - UserGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserGroup + TenantConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantConfiguration UserSubscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserSubscription - UserIdentities = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserIdentities + UserGroup = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserGroup ApiVersionSet = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiVersionSet + Subscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Subscription ApiExport = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiExport + UserIdentities = Azure::ApiManagement::Mgmt::V2018_06_01_preview::UserIdentities + Policy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Policy + Tag = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Tag + Logger = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Logger + PolicySnippets = Azure::ApiManagement::Mgmt::V2018_06_01_preview::PolicySnippets + Regions = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Regions + Api = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Api + ApiRevisions = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiRevisions + ApiRelease = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiRelease + ApiOperation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiOperation + ApiOperationPolicy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiOperationPolicy + ApiProduct = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiProduct + ApiPolicy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiPolicy + ApiSchema = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiSchema + ApiDiagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiDiagnostic + ApiIssue = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiIssue + ApiIssueComment = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiIssueComment + ApiIssueAttachment = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiIssueAttachment + Certificate = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Certificate + Backend = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Backend + ApiManagementOperations = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementOperations + AuthorizationServer = Azure::ApiManagement::Mgmt::V2018_06_01_preview::AuthorizationServer module Models + SubscriptionState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + OperationDisplay = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay + OperationListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult + ErrorResponse = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse + Operation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation + AsyncOperationStatus = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus ApiManagementServiceListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult ErrorFieldContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorFieldContract ApiManagementServiceGetSsoTokenResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult - ErrorResponse = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse ApiManagementServiceCheckNameAvailabilityParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters PolicyCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyCollection ApiManagementServiceNameAvailabilityResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceNameAvailabilityResult @@ -111,7 +116,6 @@ module Models UserTokenParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserTokenParameters RegionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegionContract BodyDiagnosticSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BodyDiagnosticSettings - Resource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource PipelineDiagnosticSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PipelineDiagnosticSettings ApiVersionSetContractDetails = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContractDetails UserIdentityCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserIdentityCollection @@ -119,11 +123,8 @@ module Models ProductEntityBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductEntityBaseParameters ApiManagementServiceUpdateHostnameParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateHostnameParameters OperationTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties - OperationDisplay = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay TagTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties - Operation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation TagResourceCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection - OperationListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult ProductCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductCollection EmailTemplateParametersContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateParametersContractProperties AuthorizationServerCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerCollection @@ -251,18 +252,19 @@ module Models ContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat SoapApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType ApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType - State = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State SamplingType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType AlwaysLog = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog ProductState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState - GrantType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType + Resource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource AuthorizationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod - ClientAuthenticationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod + GrantType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType BearerTokenSendingMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod - BackendProtocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol + ClientAuthenticationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod HostnameType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType - SkuType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + State = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State VirtualNetworkType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType + SkuType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + BackendProtocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol NameAvailabilityReason = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason GroupType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType Confirmation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation @@ -270,8 +272,6 @@ module Models IdentityProviderType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType LoggerType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType ConnectivityStatusType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType - SubscriptionState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState - AsyncOperationStatus = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus KeyType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType VersioningScheme = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme TemplateName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName @@ -281,7 +281,7 @@ module Models end class ApiManagementManagementClass - attr_reader :policy, :policy_snippets, :regions, :api, :api_revisions, :api_release, :api_operation, :api_operation_policy, :api_product, :api_policy, :api_schema, :api_diagnostic, :api_issue, :api_issue_comment, :api_issue_attachment, :authorization_server, :backend, :certificate, :api_management_operations, :api_management_service, :diagnostic, :email_template, :group, :group_user, :identity_provider, :logger, :notification, :notification_recipient_user, :notification_recipient_email, :network_status, :open_id_connect_provider, :sign_in_settings, :sign_up_settings, :delegation_settings, :product, :product_api, :product_group, :product_subscriptions, :product_policy, :property, :quota_by_counter_keys, :quota_by_period_keys, :reports, :subscription, :tag_resource, :tag, :tag_description, :operation_operations, :tenant_access, :tenant_access_git, :tenant_configuration, :user, :user_group, :user_subscription, :user_identities, :api_version_set, :api_export, :configurable, :base_url, :options, :model_classes + attr_reader :diagnostic, :email_template, :group_user, :identity_provider, :notification, :group, :notification_recipient_user, :notification_recipient_email, :network_status, :open_id_connect_provider, :sign_in_settings, :sign_up_settings, :delegation_settings, :product, :product_api, :product_group, :product_subscriptions, :product_policy, :property, :quota_by_counter_keys, :quota_by_period_keys, :reports, :tag_resource, :tag_description, :operation_operations, :tenant_access, :tenant_access_git, :api_management_service, :user, :tenant_configuration, :user_subscription, :user_group, :api_version_set, :subscription, :api_export, :user_identities, :policy, :tag, :logger, :policy_snippets, :regions, :api, :api_revisions, :api_release, :api_operation, :api_operation_policy, :api_product, :api_policy, :api_schema, :api_diagnostic, :api_issue, :api_issue_comment, :api_issue_attachment, :certificate, :backend, :api_management_operations, :authorization_server, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -291,33 +291,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @policy = @client_0.policy - @policy_snippets = @client_0.policy_snippets - @regions = @client_0.regions - @api = @client_0.api - @api_revisions = @client_0.api_revisions - @api_release = @client_0.api_release - @api_operation = @client_0.api_operation - @api_operation_policy = @client_0.api_operation_policy - @api_product = @client_0.api_product - @api_policy = @client_0.api_policy - @api_schema = @client_0.api_schema - @api_diagnostic = @client_0.api_diagnostic - @api_issue = @client_0.api_issue - @api_issue_comment = @client_0.api_issue_comment - @api_issue_attachment = @client_0.api_issue_attachment - @authorization_server = @client_0.authorization_server - @backend = @client_0.backend - @certificate = @client_0.certificate - @api_management_operations = @client_0.api_management_operations - @api_management_service = @client_0.api_management_service @diagnostic = @client_0.diagnostic @email_template = @client_0.email_template - @group = @client_0.group @group_user = @client_0.group_user @identity_provider = @client_0.identity_provider - @logger = @client_0.logger @notification = @client_0.notification + @group = @client_0.group @notification_recipient_user = @client_0.notification_recipient_user @notification_recipient_email = @client_0.notification_recipient_email @network_status = @client_0.network_status @@ -334,20 +313,41 @@ def initialize(configurable, base_url=nil, options=nil) @quota_by_counter_keys = @client_0.quota_by_counter_keys @quota_by_period_keys = @client_0.quota_by_period_keys @reports = @client_0.reports - @subscription = @client_0.subscription @tag_resource = @client_0.tag_resource - @tag = @client_0.tag @tag_description = @client_0.tag_description @operation_operations = @client_0.operation_operations @tenant_access = @client_0.tenant_access @tenant_access_git = @client_0.tenant_access_git - @tenant_configuration = @client_0.tenant_configuration + @api_management_service = @client_0.api_management_service @user = @client_0.user - @user_group = @client_0.user_group + @tenant_configuration = @client_0.tenant_configuration @user_subscription = @client_0.user_subscription - @user_identities = @client_0.user_identities + @user_group = @client_0.user_group @api_version_set = @client_0.api_version_set + @subscription = @client_0.subscription @api_export = @client_0.api_export + @user_identities = @client_0.user_identities + @policy = @client_0.policy + @tag = @client_0.tag + @logger = @client_0.logger + @policy_snippets = @client_0.policy_snippets + @regions = @client_0.regions + @api = @client_0.api + @api_revisions = @client_0.api_revisions + @api_release = @client_0.api_release + @api_operation = @client_0.api_operation + @api_operation_policy = @client_0.api_operation_policy + @api_product = @client_0.api_product + @api_policy = @client_0.api_policy + @api_schema = @client_0.api_schema + @api_diagnostic = @client_0.api_diagnostic + @api_issue = @client_0.api_issue + @api_issue_comment = @client_0.api_issue_comment + @api_issue_attachment = @client_0.api_issue_attachment + @certificate = @client_0.certificate + @backend = @client_0.backend + @api_management_operations = @client_0.api_management_operations + @authorization_server = @client_0.authorization_server @model_classes = ModelClasses.new end @@ -366,6 +366,24 @@ def method_missing(method, *args) end class ModelClasses + def subscription_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + end + def operation_display + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay + end + def operation_list_result + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult + end + def error_response + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse + end + def operation + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation + end + def async_operation_status + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus + end def api_management_service_list_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult end @@ -375,9 +393,6 @@ def error_field_contract def api_management_service_get_sso_token_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult end - def error_response - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorResponse - end def api_management_service_check_name_availability_parameters Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters end @@ -501,9 +516,6 @@ def region_contract def body_diagnostic_settings Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BodyDiagnosticSettings end - def resource - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource - end def pipeline_diagnostic_settings Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PipelineDiagnosticSettings end @@ -525,21 +537,12 @@ def api_management_service_update_hostname_parameters def operation_tag_resource_contract_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationTagResourceContractProperties end - def operation_display - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationDisplay - end def tag_tag_resource_contract_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagTagResourceContractProperties end - def operation - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Operation - end def tag_resource_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceCollection end - def operation_list_result - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationListResult - end def product_collection Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductCollection end @@ -921,9 +924,6 @@ def soap_api_type def api_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType end - def state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State - end def sampling_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType end @@ -933,30 +933,36 @@ def always_log def product_state Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState end - def grant_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType + def resource + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Resource end def authorization_method Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod end - def client_authentication_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod + def grant_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType end def bearer_token_sending_method Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod end - def backend_protocol - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol + def client_authentication_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod end def hostname_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType end - def sku_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + def state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State end def virtual_network_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType end + def sku_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + end + def backend_protocol + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol + end def name_availability_reason Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason end @@ -978,12 +984,6 @@ def logger_type def connectivity_status_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType end - def subscription_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState - end - def async_operation_status - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus - end def key_type Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType end diff --git a/azure_sdk/lib/latest/modules/automation_profile_module.rb b/azure_sdk/lib/latest/modules/automation_profile_module.rb index bfb000644e..a7d60d654e 100644 --- a/azure_sdk/lib/latest/modules/automation_profile_module.rb +++ b/azure_sdk/lib/latest/modules/automation_profile_module.rb @@ -8,27 +8,26 @@ module Azure::Profiles::Latest module Automation module Mgmt AutomationAccountOperations = Azure::Automation::Mgmt::V2015_10_31::AutomationAccountOperations - Operations = Azure::Automation::Mgmt::V2015_10_31::Operations StatisticsOperations = Azure::Automation::Mgmt::V2015_10_31::StatisticsOperations Usages = Azure::Automation::Mgmt::V2015_10_31::Usages Keys = Azure::Automation::Mgmt::V2015_10_31::Keys - CertificateOperations = Azure::Automation::Mgmt::V2015_10_31::CertificateOperations ConnectionOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionOperations ConnectionTypeOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionTypeOperations + CertificateOperations = Azure::Automation::Mgmt::V2015_10_31::CertificateOperations CredentialOperations = Azure::Automation::Mgmt::V2015_10_31::CredentialOperations - DscCompilationJobOperations = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobOperations DscCompilationJobStream = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobStream DscConfigurationOperations = Azure::Automation::Mgmt::V2015_10_31::DscConfigurationOperations + DscCompilationJobOperations = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobOperations AgentRegistrationInformation = Azure::Automation::Mgmt::V2015_10_31::AgentRegistrationInformation - DscNodeOperations = Azure::Automation::Mgmt::V2015_10_31::DscNodeOperations NodeReports = Azure::Automation::Mgmt::V2015_10_31::NodeReports DscNodeConfigurationOperations = Azure::Automation::Mgmt::V2015_10_31::DscNodeConfigurationOperations - HybridRunbookWorkerGroupOperations = Azure::Automation::Mgmt::V2015_10_31::HybridRunbookWorkerGroupOperations + DscNodeOperations = Azure::Automation::Mgmt::V2015_10_31::DscNodeOperations JobOperations = Azure::Automation::Mgmt::V2015_10_31::JobOperations JobStreamOperations = Azure::Automation::Mgmt::V2015_10_31::JobStreamOperations JobScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::JobScheduleOperations LinkedWorkspaceOperations = Azure::Automation::Mgmt::V2015_10_31::LinkedWorkspaceOperations ActivityOperations = Azure::Automation::Mgmt::V2015_10_31::ActivityOperations + HybridRunbookWorkerGroupOperations = Azure::Automation::Mgmt::V2015_10_31::HybridRunbookWorkerGroupOperations ModuleModelOperations = Azure::Automation::Mgmt::V2015_10_31::ModuleModelOperations ObjectDataTypes = Azure::Automation::Mgmt::V2015_10_31::ObjectDataTypes Fields = Azure::Automation::Mgmt::V2015_10_31::Fields @@ -39,31 +38,9 @@ module Mgmt ScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::ScheduleOperations VariableOperations = Azure::Automation::Mgmt::V2015_10_31::VariableOperations WebhookOperations = Azure::Automation::Mgmt::V2015_10_31::WebhookOperations + Operations = Azure::Automation::Mgmt::V2015_10_31::Operations module Models - AgentRegistration = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration - DscNodeExtensionHandlerAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty - DscReportError = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError - DscReportResourceNavigation = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation - AutomationAccountListResult = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult - DscReportResource = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource - Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation - DscMetaConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration - Statistics = Azure::Automation::Mgmt::V2015_10_31::Models::Statistics - DscNodeReport = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport - UsageCounterName = Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName - DscNodeReportListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult - UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult - Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku - KeyListResult = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult - VariableCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters - ScheduleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult - AdvancedScheduleMonthlyOccurrence = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence - ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse - DscNodeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult - WebhookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters - ScheduleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters - CertificateUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters DscNodeConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters ConnectionCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters DscNodeConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult @@ -82,7 +59,6 @@ module Models VariableUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters ScheduleAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleAssociationProperty JobStream = Azure::Automation::Mgmt::V2015_10_31::Models::JobStream - Job = Azure::Automation::Mgmt::V2015_10_31::Models::Job ContentHash = Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash JobListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobListResult DscConfigurationParameter = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter @@ -95,13 +71,11 @@ module Models JobScheduleCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters DscNodeUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters LinkedWorkspace = Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace - OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay ActivityParameterValidationSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterValidationSet StatisticsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult ActivityParameter = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter Key = Azure::Automation::Mgmt::V2015_10_31::Models::Key ActivityParameterSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet - Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource ActivityOutputType = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType CertificateListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult Activity = Azure::Automation::Mgmt::V2015_10_31::Models::Activity @@ -120,10 +94,9 @@ module Models AgentRegistrationRegenerateKeyParameter = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter ModuleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters AutomationAccountCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters + OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField - Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage TypeFieldListResult = Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult - CertificateCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters RunbookParameter = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter ConnectionUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters RunbookDraft = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft @@ -131,58 +104,85 @@ module Models AdvancedSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule ContentSource = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource RunbookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult - DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse RunbookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters - AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty RunbookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters + Job = Azure::Automation::Mgmt::V2015_10_31::Models::Job + Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation ConnectionTypeCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters - RunbookDraftUndoEditResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult + AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters DscConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult TestJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters + RunbookDraftUndoEditResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult + Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku + RunbookCreateOrUpdateDraftProperties = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties ConnectionTypeAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty TestJob = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob - OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult - RunbookCreateOrUpdateDraftProperties = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties + TrackedResource = Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource DscCompilationJobListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult RunbookCreateOrUpdateDraftParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters - TrackedResource = Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource - AutomationAccount = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount - ProxyResource = Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource - Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate - Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential - DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob - DscConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration + AutomationAccount = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount + OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode + Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage + DscConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration + UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration - ModuleModel = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel + Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource Runbook = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook Schedule = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule + ProxyResource = Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource + ModuleModel = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel + DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + AutomationAccountState = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState Variable = Azure::Automation::Mgmt::V2015_10_31::Models::Variable Webhook = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook SkuNameEnum = Azure::Automation::Mgmt::V2015_10_31::Models::SkuNameEnum - AutomationAccountState = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState + JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus AutomationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName AutomationKeyPermissions = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions JobProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState - JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + DscConfigurationState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState JobStreamType = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType ContentSourceType = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSourceType DscConfigurationProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationProvisioningState - DscConfigurationState = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState + RunbookTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum AgentRegistrationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName GroupTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum ModuleProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleProvisioningState - RunbookTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum + ScheduleDay = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay RunbookState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState RunbookProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookProvisioningState HttpStatusCode = Azure::Automation::Mgmt::V2015_10_31::Models::HttpStatusCode - ScheduleDay = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay ScheduleFrequency = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency + Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection + CertificateCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters + AgentRegistration = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + DscNodeExtensionHandlerAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + DscReportError = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError + DscReportResourceNavigation = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation + AutomationAccountListResult = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult + DscReportResource = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource + DscMetaConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration + Statistics = Azure::Automation::Mgmt::V2015_10_31::Models::Statistics + DscNodeReport = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport + UsageCounterName = Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + DscNodeReportListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult + KeyListResult = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult + VariableCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters + ScheduleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult + AdvancedScheduleMonthlyOccurrence = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence + DscNodeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult + WebhookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters + ScheduleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters + CertificateUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters end class AutomationManagementClass - attr_reader :automation_account_operations, :operations, :statistics_operations, :usages, :keys, :certificate_operations, :connection_operations, :connection_type_operations, :credential_operations, :dsc_compilation_job_operations, :dsc_compilation_job_stream, :dsc_configuration_operations, :agent_registration_information, :dsc_node_operations, :node_reports, :dsc_node_configuration_operations, :hybrid_runbook_worker_group_operations, :job_operations, :job_stream_operations, :job_schedule_operations, :linked_workspace_operations, :activity_operations, :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_job_operations, :schedule_operations, :variable_operations, :webhook_operations, :configurable, :base_url, :options, :model_classes + attr_reader :automation_account_operations, :statistics_operations, :usages, :keys, :connection_operations, :connection_type_operations, :certificate_operations, :credential_operations, :dsc_compilation_job_stream, :dsc_configuration_operations, :dsc_compilation_job_operations, :agent_registration_information, :node_reports, :dsc_node_configuration_operations, :dsc_node_operations, :job_operations, :job_stream_operations, :job_schedule_operations, :linked_workspace_operations, :activity_operations, :hybrid_runbook_worker_group_operations, :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_job_operations, :schedule_operations, :variable_operations, :webhook_operations, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -193,27 +193,26 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @automation_account_operations = @client_0.automation_account_operations - @operations = @client_0.operations @statistics_operations = @client_0.statistics_operations @usages = @client_0.usages @keys = @client_0.keys - @certificate_operations = @client_0.certificate_operations @connection_operations = @client_0.connection_operations @connection_type_operations = @client_0.connection_type_operations + @certificate_operations = @client_0.certificate_operations @credential_operations = @client_0.credential_operations - @dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations @dsc_compilation_job_stream = @client_0.dsc_compilation_job_stream @dsc_configuration_operations = @client_0.dsc_configuration_operations + @dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations @agent_registration_information = @client_0.agent_registration_information - @dsc_node_operations = @client_0.dsc_node_operations @node_reports = @client_0.node_reports @dsc_node_configuration_operations = @client_0.dsc_node_configuration_operations - @hybrid_runbook_worker_group_operations = @client_0.hybrid_runbook_worker_group_operations + @dsc_node_operations = @client_0.dsc_node_operations @job_operations = @client_0.job_operations @job_stream_operations = @client_0.job_stream_operations @job_schedule_operations = @client_0.job_schedule_operations @linked_workspace_operations = @client_0.linked_workspace_operations @activity_operations = @client_0.activity_operations + @hybrid_runbook_worker_group_operations = @client_0.hybrid_runbook_worker_group_operations @module_model_operations = @client_0.module_model_operations @object_data_types = @client_0.object_data_types @fields = @client_0.fields @@ -224,6 +223,7 @@ def initialize(configurable, base_url=nil, options=nil) @schedule_operations = @client_0.schedule_operations @variable_operations = @client_0.variable_operations @webhook_operations = @client_0.webhook_operations + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -242,75 +242,6 @@ def method_missing(method, *args) end class ModelClasses - def agent_registration - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration - end - def dsc_node_extension_handler_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty - end - def dsc_report_error - Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError - end - def dsc_report_resource_navigation - Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation - end - def automation_account_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult - end - def dsc_report_resource - Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource - end - def operation - Azure::Automation::Mgmt::V2015_10_31::Models::Operation - end - def dsc_meta_configuration - Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration - end - def statistics - Azure::Automation::Mgmt::V2015_10_31::Models::Statistics - end - def dsc_node_report - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport - end - def usage_counter_name - Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName - end - def dsc_node_report_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult - end - def usage_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult - end - def sku - Azure::Automation::Mgmt::V2015_10_31::Models::Sku - end - def key_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult - end - def variable_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters - end - def schedule_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult - end - def advanced_schedule_monthly_occurrence - Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence - end - def error_response - Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse - end - def dsc_node_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult - end - def webhook_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters - end - def schedule_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters - end - def certificate_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters - end def dsc_node_configuration_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters end @@ -365,9 +296,6 @@ def schedule_association_property def job_stream Azure::Automation::Mgmt::V2015_10_31::Models::JobStream end - def job - Azure::Automation::Mgmt::V2015_10_31::Models::Job - end def content_hash Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash end @@ -404,9 +332,6 @@ def dsc_node_update_parameters def linked_workspace Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace end - def operation_display - Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay - end def activity_parameter_validation_set Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterValidationSet end @@ -422,9 +347,6 @@ def key def activity_parameter_set Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet end - def resource - Azure::Automation::Mgmt::V2015_10_31::Models::Resource - end def activity_output_type Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType end @@ -479,18 +401,15 @@ def module_update_parameters def automation_account_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters end + def operation_display + Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + end def type_field Azure::Automation::Mgmt::V2015_10_31::Models::TypeField end - def usage - Azure::Automation::Mgmt::V2015_10_31::Models::Usage - end def type_field_list_result Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult end - def certificate_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters - end def runbook_parameter Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter end @@ -512,23 +431,29 @@ def content_source def runbook_list_result Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult end - def dsc_node_configuration_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + def error_response + Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse end def runbook_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters end - def automation_account_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + def dsc_node_configuration_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty end def runbook_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters end + def job + Azure::Automation::Mgmt::V2015_10_31::Models::Job + end + def operation + Azure::Automation::Mgmt::V2015_10_31::Models::Operation + end def connection_type_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters end - def runbook_draft_undo_edit_result - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult + def automation_account_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters end def dsc_configuration_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult @@ -536,17 +461,23 @@ def dsc_configuration_list_result def test_job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters end + def runbook_draft_undo_edit_result + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult + end + def sku + Azure::Automation::Mgmt::V2015_10_31::Models::Sku + end + def runbook_create_or_update_draft_properties + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties + end def connection_type_association_property Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty end def test_job Azure::Automation::Mgmt::V2015_10_31::Models::TestJob end - def operation_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult - end - def runbook_create_or_update_draft_properties - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties + def tracked_resource + Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource end def dsc_compilation_job_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult @@ -554,38 +485,32 @@ def dsc_compilation_job_list_result def runbook_create_or_update_draft_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters end - def tracked_resource - Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource + def credential + Azure::Automation::Mgmt::V2015_10_31::Models::Credential end def automation_account Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount end - def proxy_resource - Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource - end - def certificate - Azure::Automation::Mgmt::V2015_10_31::Models::Certificate - end - def connection - Azure::Automation::Mgmt::V2015_10_31::Models::Connection + def operation_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult end - def credential - Azure::Automation::Mgmt::V2015_10_31::Models::Credential + def dsc_node + Azure::Automation::Mgmt::V2015_10_31::Models::DscNode end - def dsc_compilation_job - Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + def usage + Azure::Automation::Mgmt::V2015_10_31::Models::Usage end def dsc_configuration Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration end - def dsc_node - Azure::Automation::Mgmt::V2015_10_31::Models::DscNode + def usage_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult end def dsc_node_configuration Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration end - def module_model - Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel + def resource + Azure::Automation::Mgmt::V2015_10_31::Models::Resource end def runbook Azure::Automation::Mgmt::V2015_10_31::Models::Runbook @@ -593,6 +518,18 @@ def runbook def schedule Azure::Automation::Mgmt::V2015_10_31::Models::Schedule end + def proxy_resource + Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource + end + def module_model + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel + end + def dsc_compilation_job + Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + end + def automation_account_state + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState + end def variable Azure::Automation::Mgmt::V2015_10_31::Models::Variable end @@ -602,8 +539,8 @@ def webhook def sku_name_enum Azure::Automation::Mgmt::V2015_10_31::Models::SkuNameEnum end - def automation_account_state - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState + def job_status + Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus end def automation_key_name Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName @@ -614,8 +551,8 @@ def automation_key_permissions def job_provisioning_state Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState end - def job_status - Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + def dsc_configuration_state + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState end def job_stream_type Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType @@ -626,8 +563,8 @@ def content_source_type def dsc_configuration_provisioning_state Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationProvisioningState end - def dsc_configuration_state - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationState + def runbook_type_enum + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum end def agent_registration_key_name Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName @@ -638,8 +575,8 @@ def group_type_enum def module_provisioning_state Azure::Automation::Mgmt::V2015_10_31::Models::ModuleProvisioningState end - def runbook_type_enum - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum + def schedule_day + Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay end def runbook_state Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState @@ -650,12 +587,75 @@ def runbook_provisioning_state def http_status_code Azure::Automation::Mgmt::V2015_10_31::Models::HttpStatusCode end - def schedule_day - Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay - end def schedule_frequency Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency end + def certificate + Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + end + def connection + Azure::Automation::Mgmt::V2015_10_31::Models::Connection + end + def certificate_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters + end + def agent_registration + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + end + def dsc_node_extension_handler_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + end + def dsc_report_error + Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError + end + def dsc_report_resource_navigation + Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation + end + def automation_account_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult + end + def dsc_report_resource + Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource + end + def dsc_meta_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration + end + def statistics + Azure::Automation::Mgmt::V2015_10_31::Models::Statistics + end + def dsc_node_report + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport + end + def usage_counter_name + Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + end + def dsc_node_report_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult + end + def key_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult + end + def variable_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters + end + def schedule_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult + end + def advanced_schedule_monthly_occurrence + Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence + end + def dsc_node_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult + end + def webhook_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters + end + def schedule_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters + end + def certificate_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters + end end end end diff --git a/azure_sdk/lib/latest/modules/batch_profile_module.rb b/azure_sdk/lib/latest/modules/batch_profile_module.rb index 3145f68949..40fc5ba69b 100644 --- a/azure_sdk/lib/latest/modules/batch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/batch_profile_module.rb @@ -7,15 +7,16 @@ module Azure::Profiles::Latest module Batch module Mgmt + Location = Azure::Batch::Mgmt::V2017_09_01::Location + CertificateOperations = Azure::Batch::Mgmt::V2017_09_01::CertificateOperations + Operations = Azure::Batch::Mgmt::V2017_09_01::Operations BatchAccountOperations = Azure::Batch::Mgmt::V2017_09_01::BatchAccountOperations ApplicationPackageOperations = Azure::Batch::Mgmt::V2017_09_01::ApplicationPackageOperations ApplicationOperations = Azure::Batch::Mgmt::V2017_09_01::ApplicationOperations - Location = Azure::Batch::Mgmt::V2017_09_01::Location - Operations = Azure::Batch::Mgmt::V2017_09_01::Operations - CertificateOperations = Azure::Batch::Mgmt::V2017_09_01::CertificateOperations PoolOperations = Azure::Batch::Mgmt::V2017_09_01::PoolOperations module Models + OSDisk = Azure::Batch::Mgmt::V2017_09_01::Models::OSDisk FixedScaleSettings = Azure::Batch::Mgmt::V2017_09_01::Models::FixedScaleSettings AutoStorageBaseProperties = Azure::Batch::Mgmt::V2017_09_01::Models::AutoStorageBaseProperties AutoScaleSettings = Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleSettings @@ -23,9 +24,7 @@ module Models ScaleSettings = Azure::Batch::Mgmt::V2017_09_01::Models::ScaleSettings KeyVaultReference = Azure::Batch::Mgmt::V2017_09_01::Models::KeyVaultReference BatchAccountUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountUpdateParameters - OperationDisplay = Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay BatchAccountRegenerateKeyParameters = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountRegenerateKeyParameters - OperationListResult = Azure::Batch::Mgmt::V2017_09_01::Models::OperationListResult ActivateApplicationPackageParameters = Azure::Batch::Mgmt::V2017_09_01::Models::ActivateApplicationPackageParameters AutoScaleRunError = Azure::Batch::Mgmt::V2017_09_01::Models::AutoScaleRunError ApplicationPackage = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackage @@ -33,8 +32,6 @@ module Models ListApplicationsResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListApplicationsResult NetworkSecurityGroupRule = Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRule BatchLocationQuota = Azure::Batch::Mgmt::V2017_09_01::Models::BatchLocationQuota - InboundNatPool = Azure::Batch::Mgmt::V2017_09_01::Models::InboundNatPool - ProxyResource = Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource PoolEndpointConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::PoolEndpointConfiguration DeleteCertificateError = Azure::Batch::Mgmt::V2017_09_01::Models::DeleteCertificateError NetworkConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::NetworkConfiguration @@ -42,63 +39,66 @@ module Models TaskSchedulingPolicy = Azure::Batch::Mgmt::V2017_09_01::Models::TaskSchedulingPolicy CloudServiceConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::CloudServiceConfiguration LinuxUserConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::LinuxUserConfiguration - OSDisk = Azure::Batch::Mgmt::V2017_09_01::Models::OSDisk UserAccount = Azure::Batch::Mgmt::V2017_09_01::Models::UserAccount - DataDisk = Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk MetadataItem = Azure::Batch::Mgmt::V2017_09_01::Models::MetadataItem + InboundNatPool = Azure::Batch::Mgmt::V2017_09_01::Models::InboundNatPool DeploymentConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::DeploymentConfiguration - ResourceFile = Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile BatchAccountKeys = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountKeys EnvironmentSetting = Azure::Batch::Mgmt::V2017_09_01::Models::EnvironmentSetting + ResourceFile = Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile Application = Azure::Batch::Mgmt::V2017_09_01::Models::Application - AutoUserSpecification = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserSpecification - Resource = Azure::Batch::Mgmt::V2017_09_01::Models::Resource UserIdentity = Azure::Batch::Mgmt::V2017_09_01::Models::UserIdentity - CheckNameAvailabilityResult = Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityResult StartTask = Azure::Batch::Mgmt::V2017_09_01::Models::StartTask + DataDisk = Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk ImageReference = Azure::Batch::Mgmt::V2017_09_01::Models::ImageReference - CertificateReference = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateReference VirtualMachineConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::VirtualMachineConfiguration - ApplicationPackageReference = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackageReference + AutoUserSpecification = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserSpecification ApplicationCreateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationCreateParameters + ApplicationPackageReference = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackageReference + CertificateReference = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateReference ResizeError = Azure::Batch::Mgmt::V2017_09_01::Models::ResizeError CertificateBaseProperties = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateBaseProperties ResizeOperationStatus = Azure::Batch::Mgmt::V2017_09_01::Models::ResizeOperationStatus - WindowsConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::WindowsConfiguration - Operation = Azure::Batch::Mgmt::V2017_09_01::Models::Operation ApplicationUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationUpdateParameters - ListPoolsResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListPoolsResult + OperationDisplay = Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay BatchAccountListResult = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountListResult - ListCertificatesResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListCertificatesResult - AutoStorageProperties = Azure::Batch::Mgmt::V2017_09_01::Models::AutoStorageProperties + OperationListResult = Azure::Batch::Mgmt::V2017_09_01::Models::OperationListResult + ListPoolsResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListPoolsResult BatchAccount = Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccount - Certificate = Azure::Batch::Mgmt::V2017_09_01::Models::Certificate - CertificateCreateOrUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters + ListCertificatesResult = Azure::Batch::Mgmt::V2017_09_01::Models::ListCertificatesResult + WindowsConfiguration = Azure::Batch::Mgmt::V2017_09_01::Models::WindowsConfiguration + AccountKeyType = Azure::Batch::Mgmt::V2017_09_01::Models::AccountKeyType Pool = Azure::Batch::Mgmt::V2017_09_01::Models::Pool PoolAllocationMode = Azure::Batch::Mgmt::V2017_09_01::Models::PoolAllocationMode - ProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::ProvisioningState - AccountKeyType = Azure::Batch::Mgmt::V2017_09_01::Models::AccountKeyType + AutoStorageProperties = Azure::Batch::Mgmt::V2017_09_01::Models::AutoStorageProperties PackageState = Azure::Batch::Mgmt::V2017_09_01::Models::PackageState CertificateFormat = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateFormat CertificateProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateProvisioningState PoolProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState - AllocationState = Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState + Operation = Azure::Batch::Mgmt::V2017_09_01::Models::Operation CachingType = Azure::Batch::Mgmt::V2017_09_01::Models::CachingType StorageAccountType = Azure::Batch::Mgmt::V2017_09_01::Models::StorageAccountType ComputeNodeDeallocationOption = Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeDeallocationOption - InterNodeCommunicationState = Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState + AllocationState = Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState InboundEndpointProtocol = Azure::Batch::Mgmt::V2017_09_01::Models::InboundEndpointProtocol NetworkSecurityGroupRuleAccess = Azure::Batch::Mgmt::V2017_09_01::Models::NetworkSecurityGroupRuleAccess ComputeNodeFillType = Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeFillType - ElevationLevel = Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel - AutoUserScope = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope + InterNodeCommunicationState = Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState + ProxyResource = Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource CertificateStoreLocation = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateStoreLocation CertificateVisibility = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateVisibility + ElevationLevel = Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel + AutoUserScope = Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope + CheckNameAvailabilityResult = Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityResult + Resource = Azure::Batch::Mgmt::V2017_09_01::Models::Resource + ProvisioningState = Azure::Batch::Mgmt::V2017_09_01::Models::ProvisioningState NameAvailabilityReason = Azure::Batch::Mgmt::V2017_09_01::Models::NameAvailabilityReason + CertificateCreateOrUpdateParameters = Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters + Certificate = Azure::Batch::Mgmt::V2017_09_01::Models::Certificate end class BatchManagementClass - attr_reader :batch_account_operations, :application_package_operations, :application_operations, :location, :operations, :certificate_operations, :pool_operations, :configurable, :base_url, :options, :model_classes + attr_reader :location, :certificate_operations, :operations, :batch_account_operations, :application_package_operations, :application_operations, :pool_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -108,12 +108,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @location = @client_0.location + @certificate_operations = @client_0.certificate_operations + @operations = @client_0.operations @batch_account_operations = @client_0.batch_account_operations @application_package_operations = @client_0.application_package_operations @application_operations = @client_0.application_operations - @location = @client_0.location - @operations = @client_0.operations - @certificate_operations = @client_0.certificate_operations @pool_operations = @client_0.pool_operations @model_classes = ModelClasses.new @@ -133,6 +133,9 @@ def method_missing(method, *args) end class ModelClasses + def osdisk + Azure::Batch::Mgmt::V2017_09_01::Models::OSDisk + end def fixed_scale_settings Azure::Batch::Mgmt::V2017_09_01::Models::FixedScaleSettings end @@ -154,15 +157,9 @@ def key_vault_reference def batch_account_update_parameters Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountUpdateParameters end - def operation_display - Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay - end def batch_account_regenerate_key_parameters Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountRegenerateKeyParameters end - def operation_list_result - Azure::Batch::Mgmt::V2017_09_01::Models::OperationListResult - end def activate_application_package_parameters Azure::Batch::Mgmt::V2017_09_01::Models::ActivateApplicationPackageParameters end @@ -184,12 +181,6 @@ def network_security_group_rule def batch_location_quota Azure::Batch::Mgmt::V2017_09_01::Models::BatchLocationQuota end - def inbound_nat_pool - Azure::Batch::Mgmt::V2017_09_01::Models::InboundNatPool - end - def proxy_resource - Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource - end def pool_endpoint_configuration Azure::Batch::Mgmt::V2017_09_01::Models::PoolEndpointConfiguration end @@ -211,63 +202,57 @@ def cloud_service_configuration def linux_user_configuration Azure::Batch::Mgmt::V2017_09_01::Models::LinuxUserConfiguration end - def osdisk - Azure::Batch::Mgmt::V2017_09_01::Models::OSDisk - end def user_account Azure::Batch::Mgmt::V2017_09_01::Models::UserAccount end - def data_disk - Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk - end def metadata_item Azure::Batch::Mgmt::V2017_09_01::Models::MetadataItem end + def inbound_nat_pool + Azure::Batch::Mgmt::V2017_09_01::Models::InboundNatPool + end def deployment_configuration Azure::Batch::Mgmt::V2017_09_01::Models::DeploymentConfiguration end - def resource_file - Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile - end def batch_account_keys Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountKeys end def environment_setting Azure::Batch::Mgmt::V2017_09_01::Models::EnvironmentSetting end + def resource_file + Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile + end def application Azure::Batch::Mgmt::V2017_09_01::Models::Application end - def auto_user_specification - Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserSpecification - end - def resource - Azure::Batch::Mgmt::V2017_09_01::Models::Resource - end def user_identity Azure::Batch::Mgmt::V2017_09_01::Models::UserIdentity end - def check_name_availability_result - Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityResult - end def start_task Azure::Batch::Mgmt::V2017_09_01::Models::StartTask end + def data_disk + Azure::Batch::Mgmt::V2017_09_01::Models::DataDisk + end def image_reference Azure::Batch::Mgmt::V2017_09_01::Models::ImageReference end - def certificate_reference - Azure::Batch::Mgmt::V2017_09_01::Models::CertificateReference - end def virtual_machine_configuration Azure::Batch::Mgmt::V2017_09_01::Models::VirtualMachineConfiguration end - def application_package_reference - Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackageReference + def auto_user_specification + Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserSpecification end def application_create_parameters Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationCreateParameters end + def application_package_reference + Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationPackageReference + end + def certificate_reference + Azure::Batch::Mgmt::V2017_09_01::Models::CertificateReference + end def resize_error Azure::Batch::Mgmt::V2017_09_01::Models::ResizeError end @@ -277,35 +262,32 @@ def certificate_base_properties def resize_operation_status Azure::Batch::Mgmt::V2017_09_01::Models::ResizeOperationStatus end - def windows_configuration - Azure::Batch::Mgmt::V2017_09_01::Models::WindowsConfiguration - end - def operation - Azure::Batch::Mgmt::V2017_09_01::Models::Operation - end def application_update_parameters Azure::Batch::Mgmt::V2017_09_01::Models::ApplicationUpdateParameters end - def list_pools_result - Azure::Batch::Mgmt::V2017_09_01::Models::ListPoolsResult + def operation_display + Azure::Batch::Mgmt::V2017_09_01::Models::OperationDisplay end def batch_account_list_result Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccountListResult end - def list_certificates_result - Azure::Batch::Mgmt::V2017_09_01::Models::ListCertificatesResult + def operation_list_result + Azure::Batch::Mgmt::V2017_09_01::Models::OperationListResult end - def auto_storage_properties - Azure::Batch::Mgmt::V2017_09_01::Models::AutoStorageProperties + def list_pools_result + Azure::Batch::Mgmt::V2017_09_01::Models::ListPoolsResult end def batch_account Azure::Batch::Mgmt::V2017_09_01::Models::BatchAccount end - def certificate - Azure::Batch::Mgmt::V2017_09_01::Models::Certificate + def list_certificates_result + Azure::Batch::Mgmt::V2017_09_01::Models::ListCertificatesResult end - def certificate_create_or_update_parameters - Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters + def windows_configuration + Azure::Batch::Mgmt::V2017_09_01::Models::WindowsConfiguration + end + def account_key_type + Azure::Batch::Mgmt::V2017_09_01::Models::AccountKeyType end def pool Azure::Batch::Mgmt::V2017_09_01::Models::Pool @@ -313,11 +295,8 @@ def pool def pool_allocation_mode Azure::Batch::Mgmt::V2017_09_01::Models::PoolAllocationMode end - def provisioning_state - Azure::Batch::Mgmt::V2017_09_01::Models::ProvisioningState - end - def account_key_type - Azure::Batch::Mgmt::V2017_09_01::Models::AccountKeyType + def auto_storage_properties + Azure::Batch::Mgmt::V2017_09_01::Models::AutoStorageProperties end def package_state Azure::Batch::Mgmt::V2017_09_01::Models::PackageState @@ -331,8 +310,8 @@ def certificate_provisioning_state def pool_provisioning_state Azure::Batch::Mgmt::V2017_09_01::Models::PoolProvisioningState end - def allocation_state - Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState + def operation + Azure::Batch::Mgmt::V2017_09_01::Models::Operation end def caching_type Azure::Batch::Mgmt::V2017_09_01::Models::CachingType @@ -343,8 +322,8 @@ def storage_account_type def compute_node_deallocation_option Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeDeallocationOption end - def inter_node_communication_state - Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState + def allocation_state + Azure::Batch::Mgmt::V2017_09_01::Models::AllocationState end def inbound_endpoint_protocol Azure::Batch::Mgmt::V2017_09_01::Models::InboundEndpointProtocol @@ -355,11 +334,11 @@ def network_security_group_rule_access def compute_node_fill_type Azure::Batch::Mgmt::V2017_09_01::Models::ComputeNodeFillType end - def elevation_level - Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel + def inter_node_communication_state + Azure::Batch::Mgmt::V2017_09_01::Models::InterNodeCommunicationState end - def auto_user_scope - Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope + def proxy_resource + Azure::Batch::Mgmt::V2017_09_01::Models::ProxyResource end def certificate_store_location Azure::Batch::Mgmt::V2017_09_01::Models::CertificateStoreLocation @@ -367,9 +346,30 @@ def certificate_store_location def certificate_visibility Azure::Batch::Mgmt::V2017_09_01::Models::CertificateVisibility end + def elevation_level + Azure::Batch::Mgmt::V2017_09_01::Models::ElevationLevel + end + def auto_user_scope + Azure::Batch::Mgmt::V2017_09_01::Models::AutoUserScope + end + def check_name_availability_result + Azure::Batch::Mgmt::V2017_09_01::Models::CheckNameAvailabilityResult + end + def resource + Azure::Batch::Mgmt::V2017_09_01::Models::Resource + end + def provisioning_state + Azure::Batch::Mgmt::V2017_09_01::Models::ProvisioningState + end def name_availability_reason Azure::Batch::Mgmt::V2017_09_01::Models::NameAvailabilityReason end + def certificate_create_or_update_parameters + Azure::Batch::Mgmt::V2017_09_01::Models::CertificateCreateOrUpdateParameters + end + def certificate + Azure::Batch::Mgmt::V2017_09_01::Models::Certificate + end end end end diff --git a/azure_sdk/lib/latest/modules/billing_profile_module.rb b/azure_sdk/lib/latest/modules/billing_profile_module.rb index e2b7e7ec8c..c922703f73 100644 --- a/azure_sdk/lib/latest/modules/billing_profile_module.rb +++ b/azure_sdk/lib/latest/modules/billing_profile_module.rb @@ -13,19 +13,19 @@ module Mgmt Operations = Azure::Billing::Mgmt::V2018_03_01_preview::Operations module Models - ErrorResponse = Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse + Invoice = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Invoice ErrorDetails = Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorDetails - OperationListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationListResult - Resource = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Resource + Operation = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Operation + OperationDisplay = Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationDisplay DownloadUrl = Azure::Billing::Mgmt::V2018_03_01_preview::Models::DownloadUrl InvoicesListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::InvoicesListResult - BillingPeriodsListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriodsListResult - OperationDisplay = Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationDisplay + OperationListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationListResult + Resource = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Resource EnrollmentAccountListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccountListResult - Operation = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Operation - EnrollmentAccount = Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccount + BillingPeriodsListResult = Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriodsListResult BillingPeriod = Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriod - Invoice = Azure::Billing::Mgmt::V2018_03_01_preview::Models::Invoice + EnrollmentAccount = Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccount + ErrorResponse = Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse end class BillingManagementClass @@ -61,17 +61,17 @@ def method_missing(method, *args) end class ModelClasses - def error_response - Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse + def invoice + Azure::Billing::Mgmt::V2018_03_01_preview::Models::Invoice end def error_details Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorDetails end - def operation_list_result - Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationListResult + def operation + Azure::Billing::Mgmt::V2018_03_01_preview::Models::Operation end - def resource - Azure::Billing::Mgmt::V2018_03_01_preview::Models::Resource + def operation_display + Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationDisplay end def download_url Azure::Billing::Mgmt::V2018_03_01_preview::Models::DownloadUrl @@ -79,26 +79,26 @@ def download_url def invoices_list_result Azure::Billing::Mgmt::V2018_03_01_preview::Models::InvoicesListResult end - def billing_periods_list_result - Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriodsListResult + def operation_list_result + Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationListResult end - def operation_display - Azure::Billing::Mgmt::V2018_03_01_preview::Models::OperationDisplay + def resource + Azure::Billing::Mgmt::V2018_03_01_preview::Models::Resource end def enrollment_account_list_result Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccountListResult end - def operation - Azure::Billing::Mgmt::V2018_03_01_preview::Models::Operation - end - def enrollment_account - Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccount + def billing_periods_list_result + Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriodsListResult end def billing_period Azure::Billing::Mgmt::V2018_03_01_preview::Models::BillingPeriod end - def invoice - Azure::Billing::Mgmt::V2018_03_01_preview::Models::Invoice + def enrollment_account + Azure::Billing::Mgmt::V2018_03_01_preview::Models::EnrollmentAccount + end + def error_response + Azure::Billing::Mgmt::V2018_03_01_preview::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/cdn_profile_module.rb b/azure_sdk/lib/latest/modules/cdn_profile_module.rb index 5c103f5df4..fbf029dae1 100644 --- a/azure_sdk/lib/latest/modules/cdn_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cdn_profile_module.rb @@ -7,17 +7,16 @@ module Azure::Profiles::Latest module CDN module Mgmt - Profiles = Azure::CDN::Mgmt::V2017_10_12::Profiles Endpoints = Azure::CDN::Mgmt::V2017_10_12::Endpoints + Operations = Azure::CDN::Mgmt::V2017_10_12::Operations + Profiles = Azure::CDN::Mgmt::V2017_10_12::Profiles Origins = Azure::CDN::Mgmt::V2017_10_12::Origins CustomDomains = Azure::CDN::Mgmt::V2017_10_12::CustomDomains ResourceUsageOperations = Azure::CDN::Mgmt::V2017_10_12::ResourceUsageOperations - Operations = Azure::CDN::Mgmt::V2017_10_12::Operations EdgeNodes = Azure::CDN::Mgmt::V2017_10_12::EdgeNodes module Models OriginUpdateParameters = Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters - Sku = Azure::CDN::Mgmt::V2017_10_12::Models::Sku OriginListResult = Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult ProfileListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileListResult PurgeParameters = Azure::CDN::Mgmt::V2017_10_12::Models::PurgeParameters @@ -34,11 +33,9 @@ module Models CustomDomainParameters = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters EdgenodeResult = Azure::CDN::Mgmt::V2017_10_12::Models::EdgenodeResult CustomDomainListResult = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult - ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse ValidateCustomDomainInput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput IpAddressGroup = Azure::CDN::Mgmt::V2017_10_12::Models::IpAddressGroup ValidateCustomDomainOutput = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput - Resource = Azure::CDN::Mgmt::V2017_10_12::Models::Resource CheckNameAvailabilityInput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput DeliveryRuleCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCondition CheckNameAvailabilityOutput = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput @@ -51,34 +48,37 @@ module Models UrlFileExtensionConditionParameters = Azure::CDN::Mgmt::V2017_10_12::Models::UrlFileExtensionConditionParameters ResourceUsageListResult = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceUsageListResult EndpointPropertiesUpdateParametersDeliveryPolicy = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy - OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay SupportedOptimizationTypesListResult = Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult - Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation Profile = Azure::CDN::Mgmt::V2017_10_12::Models::Profile Endpoint = Azure::CDN::Mgmt::V2017_10_12::Models::Endpoint DeliveryRuleUrlPathCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlPathCondition DeliveryRuleUrlFileExtensionCondition = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlFileExtensionCondition + OperationDisplay = Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay DeliveryRuleCacheExpirationAction = Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCacheExpirationAction Origin = Azure::CDN::Mgmt::V2017_10_12::Models::Origin - ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource - CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain EdgeNode = Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode - TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource - SkuName = Azure::CDN::Mgmt::V2017_10_12::Models::SkuName ProfileResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::ProfileResourceState OptimizationType = Azure::CDN::Mgmt::V2017_10_12::Models::OptimizationType EndpointResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::EndpointResourceState QueryStringCachingBehavior = Azure::CDN::Mgmt::V2017_10_12::Models::QueryStringCachingBehavior GeoFilterActions = Azure::CDN::Mgmt::V2017_10_12::Models::GeoFilterActions OriginResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState - CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState + ErrorResponse = Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse CustomHttpsProvisioningState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState + CustomDomainResourceState = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState CustomHttpsProvisioningSubstate = Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate + Operation = Azure::CDN::Mgmt::V2017_10_12::Models::Operation ResourceType = Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType + Sku = Azure::CDN::Mgmt::V2017_10_12::Models::Sku + TrackedResource = Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource + ProxyResource = Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource + CustomDomain = Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain + Resource = Azure::CDN::Mgmt::V2017_10_12::Models::Resource + SkuName = Azure::CDN::Mgmt::V2017_10_12::Models::SkuName end class CDNManagementClass - attr_reader :profiles, :endpoints, :origins, :custom_domains, :resource_usage_operations, :operations, :edge_nodes, :configurable, :base_url, :options, :model_classes + attr_reader :endpoints, :operations, :profiles, :origins, :custom_domains, :resource_usage_operations, :edge_nodes, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -88,12 +88,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @profiles = @client_0.profiles @endpoints = @client_0.endpoints + @operations = @client_0.operations + @profiles = @client_0.profiles @origins = @client_0.origins @custom_domains = @client_0.custom_domains @resource_usage_operations = @client_0.resource_usage_operations - @operations = @client_0.operations @edge_nodes = @client_0.edge_nodes @model_classes = ModelClasses.new @@ -116,9 +116,6 @@ class ModelClasses def origin_update_parameters Azure::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters end - def sku - Azure::CDN::Mgmt::V2017_10_12::Models::Sku - end def origin_list_result Azure::CDN::Mgmt::V2017_10_12::Models::OriginListResult end @@ -167,9 +164,6 @@ def edgenode_result def custom_domain_list_result Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainListResult end - def error_response - Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse - end def validate_custom_domain_input Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput end @@ -179,9 +173,6 @@ def ip_address_group def validate_custom_domain_output Azure::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainOutput end - def resource - Azure::CDN::Mgmt::V2017_10_12::Models::Resource - end def check_name_availability_input Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput end @@ -218,15 +209,9 @@ def resource_usage_list_result def endpoint_properties_update_parameters_delivery_policy Azure::CDN::Mgmt::V2017_10_12::Models::EndpointPropertiesUpdateParametersDeliveryPolicy end - def operation_display - Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay - end def supported_optimization_types_list_result Azure::CDN::Mgmt::V2017_10_12::Models::SupportedOptimizationTypesListResult end - def operation - Azure::CDN::Mgmt::V2017_10_12::Models::Operation - end def profile Azure::CDN::Mgmt::V2017_10_12::Models::Profile end @@ -239,27 +224,18 @@ def delivery_rule_url_path_condition def delivery_rule_url_file_extension_condition Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleUrlFileExtensionCondition end + def operation_display + Azure::CDN::Mgmt::V2017_10_12::Models::OperationDisplay + end def delivery_rule_cache_expiration_action Azure::CDN::Mgmt::V2017_10_12::Models::DeliveryRuleCacheExpirationAction end def origin Azure::CDN::Mgmt::V2017_10_12::Models::Origin end - def proxy_resource - Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource - end - def custom_domain - Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain - end def edge_node Azure::CDN::Mgmt::V2017_10_12::Models::EdgeNode end - def tracked_resource - Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource - end - def sku_name - Azure::CDN::Mgmt::V2017_10_12::Models::SkuName - end def profile_resource_state Azure::CDN::Mgmt::V2017_10_12::Models::ProfileResourceState end @@ -278,18 +254,42 @@ def geo_filter_actions def origin_resource_state Azure::CDN::Mgmt::V2017_10_12::Models::OriginResourceState end - def custom_domain_resource_state - Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState + def error_response + Azure::CDN::Mgmt::V2017_10_12::Models::ErrorResponse end def custom_https_provisioning_state Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningState end + def custom_domain_resource_state + Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomainResourceState + end def custom_https_provisioning_substate Azure::CDN::Mgmt::V2017_10_12::Models::CustomHttpsProvisioningSubstate end + def operation + Azure::CDN::Mgmt::V2017_10_12::Models::Operation + end def resource_type Azure::CDN::Mgmt::V2017_10_12::Models::ResourceType end + def sku + Azure::CDN::Mgmt::V2017_10_12::Models::Sku + end + def tracked_resource + Azure::CDN::Mgmt::V2017_10_12::Models::TrackedResource + end + def proxy_resource + Azure::CDN::Mgmt::V2017_10_12::Models::ProxyResource + end + def custom_domain + Azure::CDN::Mgmt::V2017_10_12::Models::CustomDomain + end + def resource + Azure::CDN::Mgmt::V2017_10_12::Models::Resource + end + def sku_name + Azure::CDN::Mgmt::V2017_10_12::Models::SkuName + end end end end diff --git a/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb b/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb index 021b149c7a..bfe214cb57 100644 --- a/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb @@ -7,15 +7,15 @@ module Azure::Profiles::Latest module CognitiveServices module Mgmt + Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations Accounts = Azure::CognitiveServices::Mgmt::V2017_04_18::Accounts ResourceSkus = Azure::CognitiveServices::Mgmt::V2017_04_18::ResourceSkus - Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations CheckSkuAvailability = Azure::CognitiveServices::Mgmt::V2017_04_18::CheckSkuAvailability module Models - ErrorBody = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody + ResourceSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku Sku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku - Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + ErrorBody = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody CognitiveServicesAccountUpdateParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters OperationDisplayInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo CognitiveServicesAccountListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult @@ -29,27 +29,27 @@ module Models CognitiveServicesAccountCreateParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountCreateParameters CheckSkuAvailabilityResultList = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList CognitiveServicesAccountKeys = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys - ResourceSkuRestrictionInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo MetricName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName ResourceSkuRestrictions = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions CognitiveServicesAccount = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount - ResourceSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku UsagesResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult ResourceSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult + ResourceSkuRestrictionInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo CognitiveServicesResourceAndSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku + Kind = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Kind SkuName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuName SkuTier = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier - Kind = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Kind - ProvisioningState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState - KeyName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName UnitType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType QuotaUsageStatus = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus - ResourceSkuRestrictionsType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType + ProvisioningState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState ResourceSkuRestrictionsReasonCode = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode + ResourceSkuRestrictionsType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType + KeyName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName + Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error end class CognitiveServicesManagementClass - attr_reader :accounts, :resource_skus, :operations, :check_sku_availability, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :accounts, :resource_skus, :check_sku_availability, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -59,9 +59,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @accounts = @client_0.accounts @resource_skus = @client_0.resource_skus - @operations = @client_0.operations @check_sku_availability = @client_0.check_sku_availability @model_classes = ModelClasses.new @@ -81,14 +81,14 @@ def method_missing(method, *args) end class ModelClasses - def error_body - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody + def resource_sku + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku end def sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku end - def error - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + def error_body + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody end def cognitive_services_account_update_parameters Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountUpdateParameters @@ -129,9 +129,6 @@ def check_sku_availability_result_list def cognitive_services_account_keys Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys end - def resource_sku_restriction_info - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo - end def metric_name Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName end @@ -141,45 +138,48 @@ def resource_sku_restrictions def cognitive_services_account Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount end - def resource_sku - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku - end def usages_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult end def resource_skus_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult end + def resource_sku_restriction_info + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo + end def cognitive_services_resource_and_sku Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku end + def kind + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Kind + end def sku_name Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuName end def sku_tier Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier end - def kind - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Kind - end - def provisioning_state - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState - end - def key_name - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName - end def unit_type Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType end def quota_usage_status Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus end - def resource_sku_restrictions_type - Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType + def provisioning_state + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState end def resource_sku_restrictions_reason_code Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsReasonCode end + def resource_sku_restrictions_type + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionsType + end + def key_name + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName + end + def error + Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error + end end end end diff --git a/azure_sdk/lib/latest/modules/commerce_profile_module.rb b/azure_sdk/lib/latest/modules/commerce_profile_module.rb index 55cb470975..d5f6280e6a 100644 --- a/azure_sdk/lib/latest/modules/commerce_profile_module.rb +++ b/azure_sdk/lib/latest/modules/commerce_profile_module.rb @@ -11,18 +11,18 @@ module Mgmt RateCard = Azure::Commerce::Mgmt::V2015_06_01_preview::RateCard module Models - MeterInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo - ResourceRateCardInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo - UsageAggregation = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation - InfoField = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField UsageAggregationListResult = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult OfferTermInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::OfferTermInfo RateCardQueryParameters = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RateCardQueryParameters - ErrorResponse = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse MonetaryCredit = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCredit MonetaryCommitment = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCommitment RecurringCharge = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RecurringCharge AggregationGranularity = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity + InfoField = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField + MeterInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo + ResourceRateCardInfo = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo + UsageAggregation = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation + ErrorResponse = Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse end class CommerceManagementClass @@ -56,18 +56,6 @@ def method_missing(method, *args) end class ModelClasses - def meter_info - Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo - end - def resource_rate_card_info - Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo - end - def usage_aggregation - Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation - end - def info_field - Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField - end def usage_aggregation_list_result Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregationListResult end @@ -77,9 +65,6 @@ def offer_term_info def rate_card_query_parameters Azure::Commerce::Mgmt::V2015_06_01_preview::Models::RateCardQueryParameters end - def error_response - Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse - end def monetary_credit Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MonetaryCredit end @@ -92,6 +77,21 @@ def recurring_charge def aggregation_granularity Azure::Commerce::Mgmt::V2015_06_01_preview::Models::AggregationGranularity end + def info_field + Azure::Commerce::Mgmt::V2015_06_01_preview::Models::InfoField + end + def meter_info + Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo + end + def resource_rate_card_info + Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ResourceRateCardInfo + end + def usage_aggregation + Azure::Commerce::Mgmt::V2015_06_01_preview::Models::UsageAggregation + end + def error_response + Azure::Commerce::Mgmt::V2015_06_01_preview::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/compute_profile_module.rb b/azure_sdk/lib/latest/modules/compute_profile_module.rb index d9d45764d7..2cccb15c09 100644 --- a/azure_sdk/lib/latest/modules/compute_profile_module.rb +++ b/azure_sdk/lib/latest/modules/compute_profile_module.rb @@ -10,37 +10,37 @@ module Mgmt ResourceSkus = Azure::Compute::Mgmt::V2017_09_01::ResourceSkus Disks = Azure::Compute::Mgmt::V2018_04_01::Disks Snapshots = Azure::Compute::Mgmt::V2018_04_01::Snapshots - Operations = Azure::Compute::Mgmt::V2018_06_01::Operations + UsageOperations = Azure::Compute::Mgmt::V2018_06_01::UsageOperations + Galleries = Azure::Compute::Mgmt::V2018_06_01::Galleries AvailabilitySets = Azure::Compute::Mgmt::V2018_06_01::AvailabilitySets VirtualMachineExtensionImages = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineExtensionImages VirtualMachineExtensions = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineExtensions + VirtualMachines = Azure::Compute::Mgmt::V2018_06_01::VirtualMachines VirtualMachineImages = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineImages - UsageOperations = Azure::Compute::Mgmt::V2018_06_01::UsageOperations VirtualMachineSizes = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineSizes - Images = Azure::Compute::Mgmt::V2018_06_01::Images - VirtualMachines = Azure::Compute::Mgmt::V2018_06_01::VirtualMachines VirtualMachineScaleSets = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineScaleSets + VirtualMachineScaleSetVMs = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineScaleSetVMs + GalleryImages = Azure::Compute::Mgmt::V2018_06_01::GalleryImages + Operations = Azure::Compute::Mgmt::V2018_06_01::Operations + Images = Azure::Compute::Mgmt::V2018_06_01::Images VirtualMachineScaleSetExtensions = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineScaleSetExtensions VirtualMachineScaleSetRollingUpgrades = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineScaleSetRollingUpgrades - VirtualMachineScaleSetVMs = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineScaleSetVMs LogAnalytics = Azure::Compute::Mgmt::V2018_06_01::LogAnalytics VirtualMachineRunCommands = Azure::Compute::Mgmt::V2018_06_01::VirtualMachineRunCommands - Galleries = Azure::Compute::Mgmt::V2018_06_01::Galleries - GalleryImages = Azure::Compute::Mgmt::V2018_06_01::GalleryImages GalleryImageVersions = Azure::Compute::Mgmt::V2018_06_01::GalleryImageVersions module Models - ResourceSkuRestrictions = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions ResourceSkuCapacity = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacity ResourceSkuLocationInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuLocationInfo ResourceSkuCapabilities = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapabilities ResourceSku = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSku ResourceSkuCosts = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCosts - ResourceSkusResult = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkusResult - ResourceSkuRestrictionInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionInfo ResourceSkuCapacityScaleType = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacityScaleType ResourceSkuRestrictionsType = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsType + ResourceSkusResult = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkusResult ResourceSkuRestrictionsReasonCode = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode + ResourceSkuRestrictionInfo = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionInfo + ResourceSkuRestrictions = Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions ComputeLongRunningOperationProperties = Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties OperationStatusResponse = Azure::Compute::Mgmt::V2017_12_01::Models::OperationStatusResponse CreationData = Azure::Compute::Mgmt::V2018_04_01::Models::CreationData @@ -62,224 +62,224 @@ module Models DiskCreateOption = Azure::Compute::Mgmt::V2018_04_01::Models::DiskCreateOption SnapshotStorageAccountTypes = Azure::Compute::Mgmt::V2018_04_01::Models::SnapshotStorageAccountTypes AccessLevel = Azure::Compute::Mgmt::V2018_04_01::Models::AccessLevel - VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings - VirtualMachineScaleSetIpTag = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag - ComputeOperationListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationListResult - VirtualMachineScaleSetPublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration - SubResource = Azure::Compute::Mgmt::V2018_06_01::Models::SubResource - VirtualMachineScaleSetUpdatePublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration RecommendedMachineConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::RecommendedMachineConfiguration - ImageListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult - VirtualMachineSize = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue GalleryImageVersionList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionList - VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity - VirtualMachineExtensionInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionInstanceView - VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile GalleryDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage - VirtualMachineScaleSetUpdateOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile - PurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan - VirtualMachineScaleSetManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetManagedDiskParameters - DataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage - VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSDisk - UsageName = Azure::Compute::Mgmt::V2018_06_01::Models::UsageName - VirtualMachineScaleSetUpdateOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSDisk - ListUsagesResult = Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult - VirtualMachineScaleSetDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk GalleryArtifactSource = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactSource - VirtualMachineScaleSetStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile - HardwareProfile = Azure::Compute::Mgmt::V2018_06_01::Models::HardwareProfile - VirtualMachineScaleSetUpdateStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile - KeyVaultSecretReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultSecretReference - ApiEntityReference = Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference - DiskEncryptionSettings = Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings - ComputeOperationValue = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue ReplicationStatus = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus - InstanceViewStatus = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus - DataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk - Sku = Azure::Compute::Mgmt::V2018_06_01::Models::Sku - AdditionalUnattendContent = Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent ResourceRange = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange - WinRMConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration GalleryImageIdentifier = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier - SshPublicKey = Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey GalleryIdentifier = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryIdentifier - LinuxConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration - VirtualMachineScaleSetNetworkConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings - VaultSecretGroup = Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup - RunCommandResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult RegionalReplicationStatus = Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus - RunCommandListResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult - BootDiagnostics = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics - VirtualMachineScaleSetNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile - VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView - VirtualMachineScaleSetUpdateNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile - DiskInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::DiskInstanceView - RunCommandDocumentBase = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase VirtualMachineIdentityUserAssignedIdentitiesValue = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue - VirtualMachineScaleSetExtensionListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult - MaintenanceRedeployStatus = Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceRedeployStatus - VirtualMachineScaleSetExtensionProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile GalleryImageVersionStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile - VirtualMachineScaleSetVMProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMProfile - VirtualMachineListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult - VirtualMachineScaleSetUpdateVMProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateVMProfile - RollingUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy - RunCommandParameterDefinition = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandParameterDefinition - ImageOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk - RunCommandInput = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput - ImageStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile - VirtualMachineScaleSetVMInstanceIDs = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceIDs - AvailabilitySetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult - VirtualMachineScaleSetVMInstanceRequiredIDs = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs GalleryImageList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageList - VirtualMachineStatusCodeCount = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineStatusCodeCount - VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionsListResult - VirtualMachineScaleSetInstanceViewStatusesSummary = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceViewStatusesSummary GalleryArtifactPublishingProfileBase = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactPublishingProfileBase - VirtualMachineScaleSetVMExtensionsSummary = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMExtensionsSummary - VirtualMachineCaptureParameters = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters - VirtualMachineScaleSetInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceView ManagedArtifact = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact - VirtualMachineScaleSetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListResult - VirtualHardDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk - VirtualMachineScaleSetListWithLinkResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListWithLinkResult - StorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile - VirtualMachineScaleSetSkuCapacity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuCapacity - WindowsConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration - VirtualMachineScaleSetSku = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku + ImagePurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan + Disallowed = Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed + GalleryList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList + Gallery = Azure::Compute::Mgmt::V2018_06_01::Models::Gallery + GalleryImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage + GalleryImageVersionPublishingProfile = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionPublishingProfile + GalleryOSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage + GalleryDataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage + GalleryImageVersion = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion + ScaleTier = Azure::Compute::Mgmt::V2018_06_01::Models::ScaleTier + AggregatedReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState + ReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationState + HostCaching = Azure::Compute::Mgmt::V2018_06_01::Models::HostCaching + ReplicationStatusTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes + DiagnosticsProfile = Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile + InstanceViewStatus = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus + VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView VaultCertificate = Azure::Compute::Mgmt::V2018_06_01::Models::VaultCertificate - VirtualMachineScaleSetListSkusResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult + VaultSecretGroup = Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup + VirtualMachineSize = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize + OSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile + InnerError = Azure::Compute::Mgmt::V2018_06_01::Models::InnerError + VirtualMachineExtensionInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionInstanceView NetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile + BootDiagnostics = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics + PurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan + DataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage ApiErrorBase = Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase VirtualMachineAgentInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView - InnerError = Azure::Compute::Mgmt::V2018_06_01::Models::InnerError - VirtualMachineIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity + ListUsagesResult = Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult + DiskInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::DiskInstanceView ApiError = Azure::Compute::Mgmt::V2018_06_01::Models::ApiError - ImagePurchasePlan = Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan - RollbackStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo - UpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy - UpgradeOperationHistoryStatus = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus - Disallowed = Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed - RollingUpgradeProgressInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo - GalleryList = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList - UpgradeOperationHistoricalStatusInfoProperties = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties - Usage = Azure::Compute::Mgmt::V2018_06_01::Models::Usage - UpgradeOperationHistoricalStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo - KeyVaultKeyReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference - VirtualMachineScaleSetListOSUpgradeHistory = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory - WinRMListener = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener - VirtualMachineHealthStatus = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineHealthStatus - OSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile - VirtualMachineScaleSetVMInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceView BootDiagnosticsInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView - RunCommandInputParameter = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter - AutoOSUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy + HardwareProfile = Azure::Compute::Mgmt::V2018_06_01::Models::HardwareProfile + VirtualMachineIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity + KeyVaultSecretReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultSecretReference + VirtualMachineInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView + DiskEncryptionSettings = Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings VirtualMachineScaleSetVMListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMListResult + OSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::OSDisk + VirtualMachineListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult + StorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile + WinRMListener = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener + UpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy + WindowsConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration + VirtualMachineScaleSetIdentity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity + SshConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration + VirtualMachineScaleSetOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile + AvailabilitySetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult + VirtualMachineScaleSetOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSDisk + VirtualMachineScaleSetStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile + VirtualMachineExtensionsListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionsListResult + ApiEntityReference = Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference + VirtualMachineScaleSetVMInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceView + VirtualMachineCaptureParameters = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters + VirtualMachineScaleSetListSkusResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult + ImageReference = Azure::Compute::Mgmt::V2018_06_01::Models::ImageReference + VirtualMachineScaleSetNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile + VirtualHardDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk + VirtualMachineScaleSetSku = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku + AdditionalUnattendContent = Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent + VirtualMachineScaleSetExtensionProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile + SshPublicKey = Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey + VirtualMachineScaleSetVMProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMProfile VirtualMachineSizeListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult - RollingUpgradeRunningStatus = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus + VirtualMachineScaleSetSkuCapacity = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuCapacity + OSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::OSDiskImage + VirtualMachineScaleSetVMInstanceIDs = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceIDs Plan = Azure::Compute::Mgmt::V2018_06_01::Models::Plan - LogAnalyticsOperationResult = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOperationResult - SshConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration - Resource = Azure::Compute::Mgmt::V2018_06_01::Models::Resource - VirtualMachineInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView + VirtualMachineScaleSetVMInstanceRequiredIDs = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs + DataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk + VirtualMachineStatusCodeCount = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineStatusCodeCount + LinuxConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration + VirtualMachineScaleSetInstanceViewStatusesSummary = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceViewStatusesSummary + VirtualMachineScaleSetVMExtensionsSummary = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMExtensionsSummary + WinRMConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration + VirtualMachineScaleSetInstanceView = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceView + KeyVaultKeyReference = Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference + VirtualMachineScaleSetListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListResult UpdateResource = Azure::Compute::Mgmt::V2018_06_01::Models::UpdateResource - OSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::OSDiskImage - SubResourceReadOnly = Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly - DiagnosticsProfile = Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile - RecoveryWalkResponse = Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse - OSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::OSDisk - LogAnalyticsOutput = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput - ImageDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk - LogAnalyticsInputBase = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase + VirtualMachineScaleSetListWithLinkResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListWithLinkResult AvailabilitySet = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet - AvailabilitySetUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate VirtualMachineExtensionImage = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionImage VirtualMachineImageResource = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImageResource VirtualMachineExtension = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtension VirtualMachineExtensionUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionUpdate VirtualMachineImage = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImage VirtualMachineCaptureResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureResult - ImageReference = Azure::Compute::Mgmt::V2018_06_01::Models::ImageReference - ManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters NetworkInterfaceReference = Azure::Compute::Mgmt::V2018_06_01::Models::NetworkInterfaceReference VirtualMachine = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachine - VirtualMachineUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineUpdate - Image = Azure::Compute::Mgmt::V2018_06_01::Models::Image - ImageUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::ImageUpdate VirtualMachineScaleSetIPConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIPConfiguration - VirtualMachineScaleSetUpdateIPConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateIPConfiguration VirtualMachineScaleSetNetworkConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfiguration - VirtualMachineScaleSetUpdateNetworkConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkConfiguration VirtualMachineScaleSetExtension = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtension VirtualMachineScaleSet = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSet - VirtualMachineScaleSetUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdate VirtualMachineScaleSetVM = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVM - RollingUpgradeStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusInfo - RequestRateByIntervalInput = Azure::Compute::Mgmt::V2018_06_01::Models::RequestRateByIntervalInput - ThrottledRequestsInput = Azure::Compute::Mgmt::V2018_06_01::Models::ThrottledRequestsInput - RunCommandDocument = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument - Gallery = Azure::Compute::Mgmt::V2018_06_01::Models::Gallery - GalleryImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage - GalleryImageVersionPublishingProfile = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionPublishingProfile - GalleryOSDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage - GalleryDataDiskImage = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage - GalleryImageVersion = Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion StatusLevelTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes OperatingSystemTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes VirtualMachineSizeTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeTypes CachingTypes = Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes DiskCreateOptionTypes = Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes - StorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes PassNames = Azure::Compute::Mgmt::V2018_06_01::Models::PassNames ComponentNames = Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames SettingNames = Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames ProtocolTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes ResourceIdentityType = Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType - MaintenanceOperationResultCodeTypes = Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceOperationResultCodeTypes UpgradeMode = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode - OperatingSystemStateTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemStateTypes - IPVersion = Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion - VirtualMachinePriorityTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachinePriorityTypes - VirtualMachineEvictionPolicyTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineEvictionPolicyTypes VirtualMachineScaleSetSkuScaleType = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType - UpgradeState = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeState - UpgradeOperationInvoker = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationInvoker - RollingUpgradeStatusCode = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusCode - RollingUpgradeActionType = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType - IntervalInMins = Azure::Compute::Mgmt::V2018_06_01::Models::IntervalInMins - ScaleTier = Azure::Compute::Mgmt::V2018_06_01::Models::ScaleTier - AggregatedReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState - ReplicationState = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationState - HostCaching = Azure::Compute::Mgmt::V2018_06_01::Models::HostCaching InstanceViewTypes = Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewTypes - ReplicationStatusTypes = Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes - end - - class ComputeManagementClass - attr_reader :resource_skus, :disks, :snapshots, :operations, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machine_images, :usage_operations, :virtual_machine_sizes, :images, :virtual_machines, :virtual_machine_scale_sets, :virtual_machine_scale_set_extensions, :virtual_machine_scale_set_rolling_upgrades, :virtual_machine_scale_set_vms, :log_analytics, :virtual_machine_run_commands, :galleries, :gallery_images, :gallery_image_versions, :configurable, :base_url, :options, :model_classes - - def initialize(configurable, base_url=nil, options=nil) - @configurable, @base_url, @options = configurable, base_url, options - - @client_0 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(@client_0.respond_to?(:subscription_id)) - @client_0.subscription_id = configurable.subscription_id - end - add_telemetry(@client_0) - @resource_skus = @client_0.resource_skus - - @client_1 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(@client_1.respond_to?(:subscription_id)) - @client_1.subscription_id = configurable.subscription_id - end - add_telemetry(@client_1) - - @client_2 = Azure::Compute::Mgmt::V2018_04_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(@client_2.respond_to?(:subscription_id)) - @client_2.subscription_id = configurable.subscription_id - end - add_telemetry(@client_2) + Sku = Azure::Compute::Mgmt::V2018_06_01::Models::Sku + UsageName = Azure::Compute::Mgmt::V2018_06_01::Models::UsageName + Usage = Azure::Compute::Mgmt::V2018_06_01::Models::Usage + SubResource = Azure::Compute::Mgmt::V2018_06_01::Models::SubResource + Resource = Azure::Compute::Mgmt::V2018_06_01::Models::Resource + ImageListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult + ComputeOperationValue = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue + VirtualMachineScaleSetUpdateOSProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile + RecoveryWalkResponse = Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse + SubResourceReadOnly = Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly + AutoOSUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy + RollingUpgradePolicy = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy + RunCommandParameterDefinition = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandParameterDefinition + ImageOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk + ImageDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk + ImageStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile + RunCommandInputParameter = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter + ComputeOperationListResult = Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationListResult + RollbackStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo + VirtualMachineScaleSetManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetManagedDiskParameters + VirtualMachineScaleSetUpdateOSDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSDisk + VirtualMachineScaleSetDataDisk = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk + VirtualMachineScaleSetUpdateStorageProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile + VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + VirtualMachineScaleSetPublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration + VirtualMachineScaleSetUpdatePublicIPAddressConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + MaintenanceRedeployStatus = Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceRedeployStatus + RollingUpgradeRunningStatus = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus + VirtualMachineHealthStatus = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineHealthStatus + VirtualMachineScaleSetNetworkConfigurationDnsSettings = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings + RunCommandListResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult + VirtualMachineScaleSetListOSUpgradeHistory = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory + UpgradeOperationHistoricalStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo + RunCommandInput = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput + VirtualMachineScaleSetUpdateNetworkProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile + LogAnalyticsOutput = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput + UpgradeOperationHistoricalStatusInfoProperties = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties + LogAnalyticsInputBase = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase + VirtualMachineScaleSetExtensionListResult = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult + VirtualMachineScaleSetUpdateVMProfile = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateVMProfile + RollingUpgradeProgressInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo + UpgradeOperationHistoryStatus = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus + RunCommandDocumentBase = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase + AvailabilitySetUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate + ManagedDiskParameters = Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters + VirtualMachineUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineUpdate + Image = Azure::Compute::Mgmt::V2018_06_01::Models::Image + ImageUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::ImageUpdate + VirtualMachineScaleSetUpdateIPConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateIPConfiguration + VirtualMachineScaleSetUpdateNetworkConfiguration = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkConfiguration + VirtualMachineScaleSetUpdate = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdate + RollingUpgradeStatusInfo = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusInfo + RequestRateByIntervalInput = Azure::Compute::Mgmt::V2018_06_01::Models::RequestRateByIntervalInput + ThrottledRequestsInput = Azure::Compute::Mgmt::V2018_06_01::Models::ThrottledRequestsInput + LogAnalyticsOperationResult = Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOperationResult + RunCommandDocument = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument + RunCommandResult = Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult + StorageAccountTypes = Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes + MaintenanceOperationResultCodeTypes = Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceOperationResultCodeTypes + OperatingSystemStateTypes = Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemStateTypes + IPVersion = Azure::Compute::Mgmt::V2018_06_01::Models::IPVersion + VirtualMachinePriorityTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachinePriorityTypes + VirtualMachineEvictionPolicyTypes = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineEvictionPolicyTypes + UpgradeState = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeState + UpgradeOperationInvoker = Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationInvoker + RollingUpgradeStatusCode = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusCode + RollingUpgradeActionType = Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeActionType + IntervalInMins = Azure::Compute::Mgmt::V2018_06_01::Models::IntervalInMins + VirtualMachineScaleSetIpTag = Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag + end + + class ComputeManagementClass + attr_reader :resource_skus, :disks, :snapshots, :usage_operations, :galleries, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :virtual_machine_sizes, :virtual_machine_scale_sets, :virtual_machine_scale_set_vms, :gallery_images, :operations, :images, :virtual_machine_scale_set_extensions, :virtual_machine_scale_set_rolling_upgrades, :log_analytics, :virtual_machine_run_commands, :gallery_image_versions, :configurable, :base_url, :options, :model_classes + + def initialize(configurable, base_url=nil, options=nil) + @configurable, @base_url, @options = configurable, base_url, options + + @client_0 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id + end + add_telemetry(@client_0) + @resource_skus = @client_0.resource_skus + + @client_1 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id + end + add_telemetry(@client_1) + + @client_2 = Azure::Compute::Mgmt::V2018_04_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id + end + add_telemetry(@client_2) @disks = @client_2.disks @snapshots = @client_2.snapshots @@ -288,23 +288,23 @@ def initialize(configurable, base_url=nil, options=nil) @client_3.subscription_id = configurable.subscription_id end add_telemetry(@client_3) - @operations = @client_3.operations + @usage_operations = @client_3.usage_operations + @galleries = @client_3.galleries @availability_sets = @client_3.availability_sets @virtual_machine_extension_images = @client_3.virtual_machine_extension_images @virtual_machine_extensions = @client_3.virtual_machine_extensions + @virtual_machines = @client_3.virtual_machines @virtual_machine_images = @client_3.virtual_machine_images - @usage_operations = @client_3.usage_operations @virtual_machine_sizes = @client_3.virtual_machine_sizes - @images = @client_3.images - @virtual_machines = @client_3.virtual_machines @virtual_machine_scale_sets = @client_3.virtual_machine_scale_sets + @virtual_machine_scale_set_vms = @client_3.virtual_machine_scale_set_vms + @gallery_images = @client_3.gallery_images + @operations = @client_3.operations + @images = @client_3.images @virtual_machine_scale_set_extensions = @client_3.virtual_machine_scale_set_extensions @virtual_machine_scale_set_rolling_upgrades = @client_3.virtual_machine_scale_set_rolling_upgrades - @virtual_machine_scale_set_vms = @client_3.virtual_machine_scale_set_vms @log_analytics = @client_3.log_analytics @virtual_machine_run_commands = @client_3.virtual_machine_run_commands - @galleries = @client_3.galleries - @gallery_images = @client_3.gallery_images @gallery_image_versions = @client_3.gallery_image_versions @model_classes = ModelClasses.new @@ -330,9 +330,6 @@ def method_missing(method, *args) end class ModelClasses - def resource_sku_restrictions - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions - end def resource_sku_capacity Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacity end @@ -348,21 +345,24 @@ def resource_sku def resource_sku_costs Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCosts end - def resource_skus_result - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkusResult - end - def resource_sku_restriction_info - Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionInfo - end def resource_sku_capacity_scale_type Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuCapacityScaleType end def resource_sku_restrictions_type Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsType end + def resource_skus_result + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkusResult + end def resource_sku_restrictions_reason_code Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionsReasonCode end + def resource_sku_restriction_info + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictionInfo + end + def resource_sku_restrictions + Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions + end def compute_long_running_operation_properties Azure::Compute::Mgmt::V2017_12_01::Models::ComputeLongRunningOperationProperties end @@ -426,432 +426,510 @@ def snapshot_storage_account_types def access_level Azure::Compute::Mgmt::V2018_04_01::Models::AccessLevel end - def virtual_machine_scale_set_public_ipaddress_configuration_dns_settings - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings - end - def virtual_machine_scale_set_ip_tag - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag - end - def compute_operation_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationListResult - end - def virtual_machine_scale_set_public_ipaddress_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration - end - def sub_resource - Azure::Compute::Mgmt::V2018_06_01::Models::SubResource - end - def virtual_machine_scale_set_update_public_ipaddress_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration - end def recommended_machine_configuration Azure::Compute::Mgmt::V2018_06_01::Models::RecommendedMachineConfiguration end - def image_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult - end - def virtual_machine_size - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize - end def virtual_machine_scale_set_identity_user_assigned_identities_value Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue end def gallery_image_version_list Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionList end - def virtual_machine_scale_set_identity - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity - end - def virtual_machine_extension_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionInstanceView - end - def virtual_machine_scale_set_osprofile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile - end def gallery_disk_image Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage end - def virtual_machine_scale_set_update_osprofile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile + def gallery_artifact_source + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactSource end - def purchase_plan - Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan + def replication_status + Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus end - def virtual_machine_scale_set_managed_disk_parameters - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetManagedDiskParameters + def resource_range + Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange end - def data_disk_image - Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage + def gallery_image_identifier + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier end - def virtual_machine_scale_set_osdisk - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSDisk + def gallery_identifier + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryIdentifier end - def usage_name - Azure::Compute::Mgmt::V2018_06_01::Models::UsageName + def regional_replication_status + Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus end - def virtual_machine_scale_set_update_osdisk - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSDisk + def virtual_machine_identity_user_assigned_identities_value + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue end - def list_usages_result - Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult + def gallery_image_version_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile end - def virtual_machine_scale_set_data_disk - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk + def gallery_image_list + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageList end - def gallery_artifact_source - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactSource + def gallery_artifact_publishing_profile_base + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactPublishingProfileBase end - def virtual_machine_scale_set_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile + def managed_artifact + Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact end - def hardware_profile - Azure::Compute::Mgmt::V2018_06_01::Models::HardwareProfile + def image_purchase_plan + Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan end - def virtual_machine_scale_set_update_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile + def disallowed + Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed end - def key_vault_secret_reference - Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultSecretReference + def gallery_list + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList end - def api_entity_reference - Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference + def gallery + Azure::Compute::Mgmt::V2018_06_01::Models::Gallery end - def disk_encryption_settings - Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings + def gallery_image + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage end - def compute_operation_value - Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue + def gallery_image_version_publishing_profile + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionPublishingProfile end - def replication_status - Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatus + def gallery_osdisk_image + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage end - def instance_view_status - Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus + def gallery_data_disk_image + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage end - def data_disk - Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk + def gallery_image_version + Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion end - def sku - Azure::Compute::Mgmt::V2018_06_01::Models::Sku + def scale_tier + Azure::Compute::Mgmt::V2018_06_01::Models::ScaleTier end - def additional_unattend_content - Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent + def aggregated_replication_state + Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState end - def resource_range - Azure::Compute::Mgmt::V2018_06_01::Models::ResourceRange + def replication_state + Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationState end - def win_rmconfiguration - Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration + def host_caching + Azure::Compute::Mgmt::V2018_06_01::Models::HostCaching end - def gallery_image_identifier - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageIdentifier + def replication_status_types + Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes end - def ssh_public_key - Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey + def diagnostics_profile + Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile end - def gallery_identifier - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryIdentifier + def instance_view_status + Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewStatus end - def linux_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration + def virtual_machine_extension_handler_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView end - def virtual_machine_scale_set_network_configuration_dns_settings - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings + def vault_certificate + Azure::Compute::Mgmt::V2018_06_01::Models::VaultCertificate end def vault_secret_group Azure::Compute::Mgmt::V2018_06_01::Models::VaultSecretGroup end - def run_command_result - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult + def virtual_machine_size + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSize end - def regional_replication_status - Azure::Compute::Mgmt::V2018_06_01::Models::RegionalReplicationStatus + def osprofile + Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile end - def run_command_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult + def inner_error + Azure::Compute::Mgmt::V2018_06_01::Models::InnerError + end + def virtual_machine_extension_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionInstanceView + end + def network_profile + Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile end def boot_diagnostics Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnostics end - def virtual_machine_scale_set_network_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile + def purchase_plan + Azure::Compute::Mgmt::V2018_06_01::Models::PurchasePlan end - def virtual_machine_extension_handler_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionHandlerInstanceView + def data_disk_image + Azure::Compute::Mgmt::V2018_06_01::Models::DataDiskImage end - def virtual_machine_scale_set_update_network_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile + def api_error_base + Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase + end + def virtual_machine_agent_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView + end + def list_usages_result + Azure::Compute::Mgmt::V2018_06_01::Models::ListUsagesResult end def disk_instance_view Azure::Compute::Mgmt::V2018_06_01::Models::DiskInstanceView end - def run_command_document_base - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase + def api_error + Azure::Compute::Mgmt::V2018_06_01::Models::ApiError end - def virtual_machine_identity_user_assigned_identities_value - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentityUserAssignedIdentitiesValue + def boot_diagnostics_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView end - def virtual_machine_scale_set_extension_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult + def hardware_profile + Azure::Compute::Mgmt::V2018_06_01::Models::HardwareProfile end - def maintenance_redeploy_status - Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceRedeployStatus + def virtual_machine_identity + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity end - def virtual_machine_scale_set_extension_profile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile + def key_vault_secret_reference + Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultSecretReference end - def gallery_image_version_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionStorageProfile + def virtual_machine_instance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView end - def virtual_machine_scale_set_vmprofile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMProfile + def disk_encryption_settings + Azure::Compute::Mgmt::V2018_06_01::Models::DiskEncryptionSettings + end + def virtual_machine_scale_set_vmlist_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMListResult + end + def osdisk + Azure::Compute::Mgmt::V2018_06_01::Models::OSDisk end def virtual_machine_list_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineListResult end - def virtual_machine_scale_set_update_vmprofile - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateVMProfile + def storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile end - def rolling_upgrade_policy - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy + def win_rmlistener + Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener end - def run_command_parameter_definition - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandParameterDefinition + def upgrade_policy + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy end - def image_osdisk - Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk + def windows_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration end - def run_command_input - Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput + def virtual_machine_scale_set_identity + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIdentity end - def image_storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile + def ssh_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration end - def virtual_machine_scale_set_vminstance_ids - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceIDs + def virtual_machine_scale_set_osprofile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSProfile end def availability_set_list_result Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetListResult end + def virtual_machine_scale_set_osdisk + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetOSDisk + end + def virtual_machine_scale_set_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetStorageProfile + end + def virtual_machine_extensions_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionsListResult + end + def api_entity_reference + Azure::Compute::Mgmt::V2018_06_01::Models::ApiEntityReference + end + def virtual_machine_scale_set_vminstance_view + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceView + end + def virtual_machine_capture_parameters + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters + end + def virtual_machine_scale_set_list_skus_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult + end + def image_reference + Azure::Compute::Mgmt::V2018_06_01::Models::ImageReference + end + def virtual_machine_scale_set_network_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkProfile + end + def virtual_hard_disk + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk + end + def virtual_machine_scale_set_sku + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku + end + def additional_unattend_content + Azure::Compute::Mgmt::V2018_06_01::Models::AdditionalUnattendContent + end + def virtual_machine_scale_set_extension_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionProfile + end + def ssh_public_key + Azure::Compute::Mgmt::V2018_06_01::Models::SshPublicKey + end + def virtual_machine_scale_set_vmprofile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMProfile + end + def virtual_machine_size_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult + end + def virtual_machine_scale_set_sku_capacity + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuCapacity + end + def osdisk_image + Azure::Compute::Mgmt::V2018_06_01::Models::OSDiskImage + end + def virtual_machine_scale_set_vminstance_ids + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceIDs + end + def plan + Azure::Compute::Mgmt::V2018_06_01::Models::Plan + end def virtual_machine_scale_set_vminstance_required_ids Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs end - def gallery_image_list - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageList + def data_disk + Azure::Compute::Mgmt::V2018_06_01::Models::DataDisk end def virtual_machine_status_code_count Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineStatusCodeCount end - def virtual_machine_extensions_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionsListResult + def linux_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::LinuxConfiguration end def virtual_machine_scale_set_instance_view_statuses_summary Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceViewStatusesSummary end - def gallery_artifact_publishing_profile_base - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryArtifactPublishingProfileBase - end def virtual_machine_scale_set_vmextensions_summary Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMExtensionsSummary end - def virtual_machine_capture_parameters - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureParameters + def win_rmconfiguration + Azure::Compute::Mgmt::V2018_06_01::Models::WinRMConfiguration end def virtual_machine_scale_set_instance_view Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetInstanceView end - def managed_artifact - Azure::Compute::Mgmt::V2018_06_01::Models::ManagedArtifact + def key_vault_key_reference + Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference end def virtual_machine_scale_set_list_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListResult end - def virtual_hard_disk - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualHardDisk + def update_resource + Azure::Compute::Mgmt::V2018_06_01::Models::UpdateResource end def virtual_machine_scale_set_list_with_link_result Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListWithLinkResult end - def storage_profile - Azure::Compute::Mgmt::V2018_06_01::Models::StorageProfile + def availability_set + Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet end - def virtual_machine_scale_set_sku_capacity - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuCapacity + def virtual_machine_extension_image + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionImage end - def windows_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::WindowsConfiguration + def virtual_machine_image_resource + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImageResource end - def virtual_machine_scale_set_sku - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSku + def virtual_machine_extension + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtension end - def vault_certificate - Azure::Compute::Mgmt::V2018_06_01::Models::VaultCertificate + def virtual_machine_extension_update + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionUpdate end - def virtual_machine_scale_set_list_skus_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListSkusResult + def virtual_machine_image + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImage end - def network_profile - Azure::Compute::Mgmt::V2018_06_01::Models::NetworkProfile + def virtual_machine_capture_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureResult end - def api_error_base - Azure::Compute::Mgmt::V2018_06_01::Models::ApiErrorBase + def network_interface_reference + Azure::Compute::Mgmt::V2018_06_01::Models::NetworkInterfaceReference end - def virtual_machine_agent_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineAgentInstanceView + def virtual_machine + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachine end - def inner_error - Azure::Compute::Mgmt::V2018_06_01::Models::InnerError + def virtual_machine_scale_set_ipconfiguration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIPConfiguration end - def virtual_machine_identity - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineIdentity + def virtual_machine_scale_set_network_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfiguration end - def api_error - Azure::Compute::Mgmt::V2018_06_01::Models::ApiError + def virtual_machine_scale_set_extension + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtension end - def image_purchase_plan - Azure::Compute::Mgmt::V2018_06_01::Models::ImagePurchasePlan + def virtual_machine_scale_set + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSet end - def rollback_status_info - Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo + def virtual_machine_scale_set_vm + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVM end - def upgrade_policy - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradePolicy + def status_level_types + Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes end - def upgrade_operation_history_status - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus + def operating_system_types + Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes + end + def virtual_machine_size_types + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeTypes + end + def caching_types + Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes + end + def disk_create_option_types + Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes + end + def pass_names + Azure::Compute::Mgmt::V2018_06_01::Models::PassNames + end + def component_names + Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames + end + def setting_names + Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames + end + def protocol_types + Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes + end + def resource_identity_type + Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType + end + def upgrade_mode + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode + end + def virtual_machine_scale_set_sku_scale_type + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType + end + def instance_view_types + Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewTypes + end + def sku + Azure::Compute::Mgmt::V2018_06_01::Models::Sku + end + def usage_name + Azure::Compute::Mgmt::V2018_06_01::Models::UsageName + end + def usage + Azure::Compute::Mgmt::V2018_06_01::Models::Usage end - def disallowed - Azure::Compute::Mgmt::V2018_06_01::Models::Disallowed + def sub_resource + Azure::Compute::Mgmt::V2018_06_01::Models::SubResource end - def rolling_upgrade_progress_info - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo + def resource + Azure::Compute::Mgmt::V2018_06_01::Models::Resource end - def gallery_list - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryList + def image_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::ImageListResult end - def upgrade_operation_historical_status_info_properties - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties + def compute_operation_value + Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationValue end - def usage - Azure::Compute::Mgmt::V2018_06_01::Models::Usage + def virtual_machine_scale_set_update_osprofile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSProfile end - def upgrade_operation_historical_status_info - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo + def recovery_walk_response + Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse end - def key_vault_key_reference - Azure::Compute::Mgmt::V2018_06_01::Models::KeyVaultKeyReference + def sub_resource_read_only + Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly end - def virtual_machine_scale_set_list_osupgrade_history - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory + def auto_osupgrade_policy + Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy end - def win_rmlistener - Azure::Compute::Mgmt::V2018_06_01::Models::WinRMListener + def rolling_upgrade_policy + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradePolicy end - def virtual_machine_health_status - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineHealthStatus + def run_command_parameter_definition + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandParameterDefinition end - def osprofile - Azure::Compute::Mgmt::V2018_06_01::Models::OSProfile + def image_osdisk + Azure::Compute::Mgmt::V2018_06_01::Models::ImageOSDisk end - def virtual_machine_scale_set_vminstance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMInstanceView + def image_data_disk + Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk end - def boot_diagnostics_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::BootDiagnosticsInstanceView + def image_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::ImageStorageProfile end def run_command_input_parameter Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInputParameter end - def auto_osupgrade_policy - Azure::Compute::Mgmt::V2018_06_01::Models::AutoOSUpgradePolicy + def compute_operation_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::ComputeOperationListResult end - def virtual_machine_scale_set_vmlist_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVMListResult + def rollback_status_info + Azure::Compute::Mgmt::V2018_06_01::Models::RollbackStatusInfo end - def virtual_machine_size_list_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeListResult + def virtual_machine_scale_set_managed_disk_parameters + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetManagedDiskParameters end - def rolling_upgrade_running_status - Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus + def virtual_machine_scale_set_update_osdisk + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateOSDisk end - def plan - Azure::Compute::Mgmt::V2018_06_01::Models::Plan + def virtual_machine_scale_set_data_disk + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetDataDisk end - def log_analytics_operation_result - Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOperationResult + def virtual_machine_scale_set_update_storage_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateStorageProfile end - def ssh_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::SshConfiguration + def virtual_machine_scale_set_public_ipaddress_configuration_dns_settings + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings end - def resource - Azure::Compute::Mgmt::V2018_06_01::Models::Resource + def virtual_machine_scale_set_public_ipaddress_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetPublicIPAddressConfiguration end - def virtual_machine_instance_view - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineInstanceView + def virtual_machine_scale_set_update_public_ipaddress_configuration + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdatePublicIPAddressConfiguration end - def update_resource - Azure::Compute::Mgmt::V2018_06_01::Models::UpdateResource + def maintenance_redeploy_status + Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceRedeployStatus end - def osdisk_image - Azure::Compute::Mgmt::V2018_06_01::Models::OSDiskImage + def rolling_upgrade_running_status + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeRunningStatus end - def sub_resource_read_only - Azure::Compute::Mgmt::V2018_06_01::Models::SubResourceReadOnly + def virtual_machine_health_status + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineHealthStatus end - def diagnostics_profile - Azure::Compute::Mgmt::V2018_06_01::Models::DiagnosticsProfile + def virtual_machine_scale_set_network_configuration_dns_settings + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfigurationDnsSettings end - def recovery_walk_response - Azure::Compute::Mgmt::V2018_06_01::Models::RecoveryWalkResponse + def run_command_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandListResult end - def osdisk - Azure::Compute::Mgmt::V2018_06_01::Models::OSDisk + def virtual_machine_scale_set_list_osupgrade_history + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetListOSUpgradeHistory + end + def upgrade_operation_historical_status_info + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfo + end + def run_command_input + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandInput + end + def virtual_machine_scale_set_update_network_profile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkProfile end def log_analytics_output Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOutput end - def image_data_disk - Azure::Compute::Mgmt::V2018_06_01::Models::ImageDataDisk + def upgrade_operation_historical_status_info_properties + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoricalStatusInfoProperties end def log_analytics_input_base Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsInputBase end - def availability_set - Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySet - end - def availability_set_update - Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate - end - def virtual_machine_extension_image - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionImage - end - def virtual_machine_image_resource - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImageResource + def virtual_machine_scale_set_extension_list_result + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtensionListResult end - def virtual_machine_extension - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtension + def virtual_machine_scale_set_update_vmprofile + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateVMProfile end - def virtual_machine_extension_update - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineExtensionUpdate + def rolling_upgrade_progress_info + Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeProgressInfo end - def virtual_machine_image - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineImage + def upgrade_operation_history_status + Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeOperationHistoryStatus end - def virtual_machine_capture_result - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineCaptureResult + def run_command_document_base + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocumentBase end - def image_reference - Azure::Compute::Mgmt::V2018_06_01::Models::ImageReference + def availability_set_update + Azure::Compute::Mgmt::V2018_06_01::Models::AvailabilitySetUpdate end def managed_disk_parameters Azure::Compute::Mgmt::V2018_06_01::Models::ManagedDiskParameters end - def network_interface_reference - Azure::Compute::Mgmt::V2018_06_01::Models::NetworkInterfaceReference - end - def virtual_machine - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachine - end def virtual_machine_update Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineUpdate end @@ -861,30 +939,15 @@ def image def image_update Azure::Compute::Mgmt::V2018_06_01::Models::ImageUpdate end - def virtual_machine_scale_set_ipconfiguration - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIPConfiguration - end def virtual_machine_scale_set_update_ipconfiguration Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateIPConfiguration end - def virtual_machine_scale_set_network_configuration - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetNetworkConfiguration - end def virtual_machine_scale_set_update_network_configuration Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdateNetworkConfiguration end - def virtual_machine_scale_set_extension - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetExtension - end - def virtual_machine_scale_set - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSet - end def virtual_machine_scale_set_update Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetUpdate end - def virtual_machine_scale_set_vm - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetVM - end def rolling_upgrade_status_info Azure::Compute::Mgmt::V2018_06_01::Models::RollingUpgradeStatusInfo end @@ -894,66 +957,21 @@ def request_rate_by_interval_input def throttled_requests_input Azure::Compute::Mgmt::V2018_06_01::Models::ThrottledRequestsInput end + def log_analytics_operation_result + Azure::Compute::Mgmt::V2018_06_01::Models::LogAnalyticsOperationResult + end def run_command_document Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandDocument end - def gallery - Azure::Compute::Mgmt::V2018_06_01::Models::Gallery - end - def gallery_image - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage - end - def gallery_image_version_publishing_profile - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersionPublishingProfile - end - def gallery_osdisk_image - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage - end - def gallery_data_disk_image - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDataDiskImage - end - def gallery_image_version - Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImageVersion - end - def status_level_types - Azure::Compute::Mgmt::V2018_06_01::Models::StatusLevelTypes - end - def operating_system_types - Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemTypes - end - def virtual_machine_size_types - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineSizeTypes - end - def caching_types - Azure::Compute::Mgmt::V2018_06_01::Models::CachingTypes - end - def disk_create_option_types - Azure::Compute::Mgmt::V2018_06_01::Models::DiskCreateOptionTypes + def run_command_result + Azure::Compute::Mgmt::V2018_06_01::Models::RunCommandResult end def storage_account_types Azure::Compute::Mgmt::V2018_06_01::Models::StorageAccountTypes end - def pass_names - Azure::Compute::Mgmt::V2018_06_01::Models::PassNames - end - def component_names - Azure::Compute::Mgmt::V2018_06_01::Models::ComponentNames - end - def setting_names - Azure::Compute::Mgmt::V2018_06_01::Models::SettingNames - end - def protocol_types - Azure::Compute::Mgmt::V2018_06_01::Models::ProtocolTypes - end - def resource_identity_type - Azure::Compute::Mgmt::V2018_06_01::Models::ResourceIdentityType - end def maintenance_operation_result_code_types Azure::Compute::Mgmt::V2018_06_01::Models::MaintenanceOperationResultCodeTypes end - def upgrade_mode - Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeMode - end def operating_system_state_types Azure::Compute::Mgmt::V2018_06_01::Models::OperatingSystemStateTypes end @@ -966,9 +984,6 @@ def virtual_machine_priority_types def virtual_machine_eviction_policy_types Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineEvictionPolicyTypes end - def virtual_machine_scale_set_sku_scale_type - Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetSkuScaleType - end def upgrade_state Azure::Compute::Mgmt::V2018_06_01::Models::UpgradeState end @@ -984,23 +999,8 @@ def rolling_upgrade_action_type def interval_in_mins Azure::Compute::Mgmt::V2018_06_01::Models::IntervalInMins end - def scale_tier - Azure::Compute::Mgmt::V2018_06_01::Models::ScaleTier - end - def aggregated_replication_state - Azure::Compute::Mgmt::V2018_06_01::Models::AggregatedReplicationState - end - def replication_state - Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationState - end - def host_caching - Azure::Compute::Mgmt::V2018_06_01::Models::HostCaching - end - def instance_view_types - Azure::Compute::Mgmt::V2018_06_01::Models::InstanceViewTypes - end - def replication_status_types - Azure::Compute::Mgmt::V2018_06_01::Models::ReplicationStatusTypes + def virtual_machine_scale_set_ip_tag + Azure::Compute::Mgmt::V2018_06_01::Models::VirtualMachineScaleSetIpTag end end end diff --git a/azure_sdk/lib/latest/modules/consumption_profile_module.rb b/azure_sdk/lib/latest/modules/consumption_profile_module.rb index 467b6a9845..8c8be4aa6c 100644 --- a/azure_sdk/lib/latest/modules/consumption_profile_module.rb +++ b/azure_sdk/lib/latest/modules/consumption_profile_module.rb @@ -16,12 +16,17 @@ module Mgmt Budgets = Azure::Consumption::Mgmt::V2018_06_30::Budgets PriceSheet = Azure::Consumption::Mgmt::V2018_06_30::PriceSheet CostTags = Azure::Consumption::Mgmt::V2018_06_30::CostTags - Tags = Azure::Consumption::Mgmt::V2018_06_30::Tags Forecasts = Azure::Consumption::Mgmt::V2018_06_30::Forecasts + Tags = Azure::Consumption::Mgmt::V2018_06_30::Tags Operations = Azure::Consumption::Mgmt::V2018_06_30::Operations module Models + ErrorDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails Notification = Azure::Consumption::Mgmt::V2018_06_30::Models::Notification + OperationDisplay = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay + OperationListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult + ErrorResponse = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorResponse + Operation = Azure::Consumption::Mgmt::V2018_06_30::Models::Operation MeterDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::MeterDetails CurrentSpend = Azure::Consumption::Mgmt::V2018_06_30::Models::CurrentSpend UsageDetailsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetailsListResult @@ -29,24 +34,19 @@ module Models MarketplacesListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::MarketplacesListResult Filters = Azure::Consumption::Mgmt::V2018_06_30::Models::Filters BalancePropertiesAdjustmentDetailsItem = Azure::Consumption::Mgmt::V2018_06_30::Models::BalancePropertiesAdjustmentDetailsItem - ErrorResponse = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorResponse - OperationListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult - ErrorDetails = Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails - Operation = Azure::Consumption::Mgmt::V2018_06_30::Models::Operation ReservationRecommendation = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendation BudgetsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::BudgetsListResult - Tag = Azure::Consumption::Mgmt::V2018_06_30::Models::Tag CostTagProperties = Azure::Consumption::Mgmt::V2018_06_30::Models::CostTagProperties - BalancePropertiesNewPurchasesDetailsItem = Azure::Consumption::Mgmt::V2018_06_30::Models::BalancePropertiesNewPurchasesDetailsItem + Tag = Azure::Consumption::Mgmt::V2018_06_30::Models::Tag QueryOptions = Azure::Consumption::Mgmt::V2018_06_30::Models::QueryOptions ReservationSummariesListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult + BalancePropertiesNewPurchasesDetailsItem = Azure::Consumption::Mgmt::V2018_06_30::Models::BalancePropertiesNewPurchasesDetailsItem PriceSheetProperties = Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetProperties ReservationRecommendationsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendationsListResult ProxyResource = Azure::Consumption::Mgmt::V2018_06_30::Models::ProxyResource - Resource = Azure::Consumption::Mgmt::V2018_06_30::Models::Resource - ForecastPropertiesConfidenceLevelsItem = Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem - OperationDisplay = Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay ResourceAttributes = Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes + ForecastPropertiesConfidenceLevelsItem = Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem + Resource = Azure::Consumption::Mgmt::V2018_06_30::Models::Resource ReservationDetailsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult ForecastsListResult = Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastsListResult UsageDetail = Azure::Consumption::Mgmt::V2018_06_30::Models::UsageDetail @@ -70,7 +70,7 @@ module Models end class ConsumptionManagementClass - attr_reader :usage_details, :marketplaces, :balances, :reservations_summaries, :reservations_details, :reservation_recommendations, :budgets, :price_sheet, :cost_tags, :tags, :forecasts, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :usage_details, :marketplaces, :balances, :reservations_summaries, :reservations_details, :reservation_recommendations, :budgets, :price_sheet, :cost_tags, :forecasts, :tags, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -89,8 +89,8 @@ def initialize(configurable, base_url=nil, options=nil) @budgets = @client_0.budgets @price_sheet = @client_0.price_sheet @cost_tags = @client_0.cost_tags - @tags = @client_0.tags @forecasts = @client_0.forecasts + @tags = @client_0.tags @operations = @client_0.operations @model_classes = ModelClasses.new @@ -110,9 +110,24 @@ def method_missing(method, *args) end class ModelClasses + def error_details + Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails + end def notification Azure::Consumption::Mgmt::V2018_06_30::Models::Notification end + def operation_display + Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay + end + def operation_list_result + Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult + end + def error_response + Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorResponse + end + def operation + Azure::Consumption::Mgmt::V2018_06_30::Models::Operation + end def meter_details Azure::Consumption::Mgmt::V2018_06_30::Models::MeterDetails end @@ -134,32 +149,17 @@ def filters def balance_properties_adjustment_details_item Azure::Consumption::Mgmt::V2018_06_30::Models::BalancePropertiesAdjustmentDetailsItem end - def error_response - Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorResponse - end - def operation_list_result - Azure::Consumption::Mgmt::V2018_06_30::Models::OperationListResult - end - def error_details - Azure::Consumption::Mgmt::V2018_06_30::Models::ErrorDetails - end - def operation - Azure::Consumption::Mgmt::V2018_06_30::Models::Operation - end def reservation_recommendation Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationRecommendation end def budgets_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::BudgetsListResult end - def tag - Azure::Consumption::Mgmt::V2018_06_30::Models::Tag - end def cost_tag_properties Azure::Consumption::Mgmt::V2018_06_30::Models::CostTagProperties end - def balance_properties_new_purchases_details_item - Azure::Consumption::Mgmt::V2018_06_30::Models::BalancePropertiesNewPurchasesDetailsItem + def tag + Azure::Consumption::Mgmt::V2018_06_30::Models::Tag end def query_options Azure::Consumption::Mgmt::V2018_06_30::Models::QueryOptions @@ -167,6 +167,9 @@ def query_options def reservation_summaries_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationSummariesListResult end + def balance_properties_new_purchases_details_item + Azure::Consumption::Mgmt::V2018_06_30::Models::BalancePropertiesNewPurchasesDetailsItem + end def price_sheet_properties Azure::Consumption::Mgmt::V2018_06_30::Models::PriceSheetProperties end @@ -176,17 +179,14 @@ def reservation_recommendations_list_result def proxy_resource Azure::Consumption::Mgmt::V2018_06_30::Models::ProxyResource end - def resource - Azure::Consumption::Mgmt::V2018_06_30::Models::Resource + def resource_attributes + Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes end def forecast_properties_confidence_levels_item Azure::Consumption::Mgmt::V2018_06_30::Models::ForecastPropertiesConfidenceLevelsItem end - def operation_display - Azure::Consumption::Mgmt::V2018_06_30::Models::OperationDisplay - end - def resource_attributes - Azure::Consumption::Mgmt::V2018_06_30::Models::ResourceAttributes + def resource + Azure::Consumption::Mgmt::V2018_06_30::Models::Resource end def reservation_details_list_result Azure::Consumption::Mgmt::V2018_06_30::Models::ReservationDetailsListResult diff --git a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb index 16a8465cbc..aebf0a3e84 100644 --- a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb @@ -7,56 +7,56 @@ module Azure::Profiles::Latest module ContainerInstance module Mgmt - ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroups - Operations = Azure::ContainerInstance::Mgmt::V2018_06_01::Operations ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroupUsage ContainerOperations = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerOperations + Operations = Azure::ContainerInstance::Mgmt::V2018_06_01::Operations + ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroups module Models + AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::AzureFileVolume + ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequestTerminalSize + ContainerExec = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExec + ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequest + Operation = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation + ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecResponse + ContainerPort = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPort + ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup + ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol + ContainerGroupRestartPolicy = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy + ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol + Event = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event + OperatingSystemTypes = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes + ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin + UsageName = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName + Usage = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage + UsageListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult + LogAnalytics = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::LogAnalytics + Resource = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource Port = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Port IpAddress = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::IpAddress EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::EnvironmentVariable ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupPropertiesInstanceView - Event = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event - LogAnalytics = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::LogAnalytics ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests ContainerGroupDiagnostics = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupDiagnostics ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequirements VolumeMount = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::VolumeMount ContainerHttpGet = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerHttpGet - OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay Container = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Container - Operation = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation + OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::GitRepoVolume OperationListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult - ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential - UsageName = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName ContainerState = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState - Usage = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage - ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits - UsageListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult + ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential ContainerProbe = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerProbe - ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult + ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits Volume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume - Logs = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs + ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPropertiesInstanceView - ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequestTerminalSize - AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::AzureFileVolume - ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequest - ContainerExec = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExec - ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecResponse - ContainerPort = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPort - Resource = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource - ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup - ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol - ContainerGroupRestartPolicy = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy - ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol - OperatingSystemTypes = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes - ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin + Logs = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs end class ContainerInstanceManagementClass - attr_reader :container_groups, :operations, :container_group_usage, :container_operations, :configurable, :base_url, :options, :model_classes + attr_reader :container_group_usage, :container_operations, :operations, :container_groups, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -66,10 +66,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @container_groups = @client_0.container_groups - @operations = @client_0.operations @container_group_usage = @client_0.container_group_usage @container_operations = @client_0.container_operations + @operations = @client_0.operations + @container_groups = @client_0.container_groups @model_classes = ModelClasses.new end @@ -88,6 +88,63 @@ def method_missing(method, *args) end class ModelClasses + def azure_file_volume + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::AzureFileVolume + end + def container_exec_request_terminal_size + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequestTerminalSize + end + def container_exec + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExec + end + def container_exec_request + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequest + end + def operation + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation + end + def container_exec_response + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecResponse + end + def container_port + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPort + end + def container_group + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup + end + def container_network_protocol + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol + end + def container_group_restart_policy + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy + end + def container_group_network_protocol + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol + end + def event + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event + end + def operating_system_types + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes + end + def container_instance_operations_origin + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin + end + def usage_name + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName + end + def usage + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage + end + def usage_list_result + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult + end + def log_analytics + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::LogAnalytics + end + def resource + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource + end def port Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Port end @@ -100,12 +157,6 @@ def environment_variable def container_group_properties_instance_view Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupPropertiesInstanceView end - def event - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event - end - def log_analytics - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::LogAnalytics - end def resource_requests Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests end @@ -121,14 +172,11 @@ def volume_mount def container_http_get Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerHttpGet end - def operation_display - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay - end def container Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Container end - def operation - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation + def operation_display + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay end def git_repo_volume Azure::ContainerInstance::Mgmt::V2018_06_01::Models::GitRepoVolume @@ -136,77 +184,29 @@ def git_repo_volume def operation_list_result Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult end - def image_registry_credential - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential - end - def usage_name - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName - end def container_state Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState end - def usage - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage - end - def resource_limits - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits - end - def usage_list_result - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult + def image_registry_credential + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential end def container_probe Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerProbe end - def container_group_list_result - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult + def resource_limits + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits end def volume Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume end - def logs - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs + def container_group_list_result + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult end def container_properties_instance_view Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPropertiesInstanceView end - def container_exec_request_terminal_size - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequestTerminalSize - end - def azure_file_volume - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::AzureFileVolume - end - def container_exec_request - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequest - end - def container_exec - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExec - end - def container_exec_response - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecResponse - end - def container_port - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPort - end - def resource - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource - end - def container_group - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup - end - def container_network_protocol - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol - end - def container_group_restart_policy - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy - end - def container_group_network_protocol - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol - end - def operating_system_types - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes - end - def container_instance_operations_origin - Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin + def logs + Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs end end end diff --git a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb index 5cf1c96cf5..1379d98536 100644 --- a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb @@ -8,11 +8,13 @@ module Azure::Profiles::Latest module ContainerRegistry module Mgmt Registries = Azure::ContainerRegistry::Mgmt::V2017_10_01::Registries - Operations = Azure::ContainerRegistry::Mgmt::V2017_10_01::Operations Replications = Azure::ContainerRegistry::Mgmt::V2017_10_01::Replications Webhooks = Azure::ContainerRegistry::Mgmt::V2017_10_01::Webhooks + Operations = Azure::ContainerRegistry::Mgmt::V2017_10_01::Operations module Models + Request = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + Event = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event TrustPolicy = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicy ImportSource = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportSource RegistryPolicies = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryPolicies @@ -22,53 +24,51 @@ module Models OperationMetricSpecificationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationMetricSpecificationDefinition OperationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationDefinition ReplicationUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters - Sku = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku ReplicationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationListResult StorageAccountProperties = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties - Resource = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Resource RegistryUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUpdateParameters WebhookCreateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookCreateParameters RegistryPassword = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryPassword - WebhookUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters RegenerateCredentialParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegenerateCredentialParameters - WebhookListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult RegistryUsageListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageListResult EventInfo = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventInfo OperationDisplayDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationDisplayDefinition + WebhookUpdateParameters = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters CallbackConfig = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::CallbackConfig - OperationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult Target = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Target EventListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult - RegistryListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult - Request = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + WebhookListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult RegistryUsage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage + RegistryListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult + OperationListResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult Actor = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Actor OperationServiceSpecificationDefinition = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationServiceSpecificationDefinition - Source = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source RegistryListCredentialsResult = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListCredentialsResult EventContent = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventContent - Status = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status - EventRequestMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage - QuarantinePolicy = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy - EventResponseMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage Registry = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry Replication = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Replication - Webhook = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook - Event = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event ImportMode = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportMode - SkuName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuName - SkuTier = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier - ProvisioningState = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState + EventRequestMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage + QuarantinePolicy = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy + EventResponseMessage = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage PasswordName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName RegistryUsageUnit = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageUnit PolicyStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PolicyStatus TrustPolicyType = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicyType WebhookStatus = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookStatus WebhookAction = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookAction + Sku = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku + Webhook = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook + Resource = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Resource + SkuName = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuName + SkuTier = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier + ProvisioningState = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState + Status = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status + Source = Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source end class ContainerRegistryManagementClass - attr_reader :registries, :operations, :replications, :webhooks, :configurable, :base_url, :options, :model_classes + attr_reader :registries, :replications, :webhooks, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -79,9 +79,9 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @registries = @client_0.registries - @operations = @client_0.operations @replications = @client_0.replications @webhooks = @client_0.webhooks + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -100,6 +100,12 @@ def method_missing(method, *args) end class ModelClasses + def request + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + end + def event + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event + end def trust_policy Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::TrustPolicy end @@ -127,18 +133,12 @@ def operation_definition def replication_update_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters end - def sku - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku - end def replication_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationListResult end def storage_account_properties Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::StorageAccountProperties end - def resource - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Resource - end def registry_update_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUpdateParameters end @@ -148,15 +148,9 @@ def webhook_create_parameters def registry_password Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryPassword end - def webhook_update_parameters - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters - end def regenerate_credential_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegenerateCredentialParameters end - def webhook_list_result - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult - end def registry_usage_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsageListResult end @@ -166,77 +160,59 @@ def event_info def operation_display_definition Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationDisplayDefinition end + def webhook_update_parameters + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookUpdateParameters + end def callback_config Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::CallbackConfig end - def operation_list_result - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult - end def target Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Target end def event_list_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventListResult end - def registry_list_result - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult - end - def request - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Request + def webhook_list_result + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookListResult end def registry_usage Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryUsage end + def registry_list_result + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListResult + end + def operation_list_result + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationListResult + end def actor Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Actor end def operation_service_specification_definition Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::OperationServiceSpecificationDefinition end - def source - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source - end def registry_list_credentials_result Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::RegistryListCredentialsResult end def event_content Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventContent end - def status - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status - end - def event_request_message - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage - end - def quarantine_policy - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy - end - def event_response_message - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage - end def registry Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Registry end def replication Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Replication end - def webhook - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook - end - def event - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Event - end def import_mode Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ImportMode end - def sku_name - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuName + def event_request_message + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventRequestMessage end - def sku_tier - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier + def quarantine_policy + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::QuarantinePolicy end - def provisioning_state - Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState + def event_response_message + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::EventResponseMessage end def password_name Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::PasswordName @@ -256,6 +232,30 @@ def webhook_status def webhook_action Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::WebhookAction end + def sku + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Sku + end + def webhook + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Webhook + end + def resource + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Resource + end + def sku_name + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuName + end + def sku_tier + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::SkuTier + end + def provisioning_state + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ProvisioningState + end + def status + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Status + end + def source + Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::Source + end end end end diff --git a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb index 7f52e7fb1d..b4269480be 100644 --- a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb @@ -7,51 +7,51 @@ module Azure::Profiles::Latest module ContainerService module Mgmt - Operations = Azure::ContainerService::Mgmt::V2018_03_31::Operations ManagedClusters = Azure::ContainerService::Mgmt::V2018_03_31::ManagedClusters + Operations = Azure::ContainerService::Mgmt::V2018_03_31::Operations ContainerServices = Azure::ContainerService::Mgmt::V2017_09_30::ContainerServices module Models - ContainerServiceCustomProfile = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceCustomProfile ContainerServiceOrchestratorProfile = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceOrchestratorProfile ContainerServiceAgentPoolProfile = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceAgentPoolProfile ContainerServiceListResult = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceListResult ContainerService = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerService ContainerServiceOrchestratorTypes = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceOrchestratorTypes + ContainerServiceCustomProfile = Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceCustomProfile ContainerServiceLinuxProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceLinuxProfile - ContainerServiceNetworkProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceNetworkProfile - OperationListResult = Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + ContainerServiceMasterProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceMasterProfile ContainerServiceVMDiagnostics = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMDiagnostics - TagsObject = Azure::ContainerService::Mgmt::V2018_03_31::Models::TagsObject ContainerServiceDiagnosticsProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceDiagnosticsProfile - ContainerServiceServicePrincipalProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceServicePrincipalProfile + KeyVaultSecretRef = Azure::ContainerService::Mgmt::V2018_03_31::Models::KeyVaultSecretRef + ContainerServiceStorageProfileTypes = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceStorageProfileTypes + ContainerServiceVMSizeTypes = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMSizeTypes + OSType = Azure::ContainerService::Mgmt::V2018_03_31::Models::OSType + ContainerServiceNetworkProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceNetworkProfile + TagsObject = Azure::ContainerService::Mgmt::V2018_03_31::Models::TagsObject ManagedClusterAddonProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAddonProfile ManagedClusterAgentPoolProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAgentPoolProfile ManagedClusterAADProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAADProfile - ContainerServiceSshPublicKey = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshPublicKey - ContainerServiceSshConfiguration = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshConfiguration OperationValue = Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationValue - KeyVaultSecretRef = Azure::ContainerService::Mgmt::V2018_03_31::Models::KeyVaultSecretRef ManagedClusterListResult = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterListResult - ContainerServiceWindowsProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceWindowsProfile - ContainerServiceMasterProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceMasterProfile - ManagedClusterUpgradeProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterUpgradeProfile Resource = Azure::ContainerService::Mgmt::V2018_03_31::Models::Resource - ManagedClusterPoolUpgradeProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterPoolUpgradeProfile + ManagedClusterUpgradeProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterUpgradeProfile ManagedCluster = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedCluster ManagedClusterAccessProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAccessProfile - ContainerServiceStorageProfileTypes = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceStorageProfileTypes - ContainerServiceVMSizeTypes = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMSizeTypes - OSType = Azure::ContainerService::Mgmt::V2018_03_31::Models::OSType + ManagedClusterPoolUpgradeProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterPoolUpgradeProfile NetworkPlugin = Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPlugin NetworkPolicy = Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPolicy + OperationListResult = Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + ContainerServiceWindowsProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceWindowsProfile + ContainerServiceSshPublicKey = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshPublicKey + ContainerServiceSshConfiguration = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshConfiguration + ContainerServiceServicePrincipalProfile = Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceServicePrincipalProfile + OrchestratorProfile = Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorProfile OrchestratorVersionProfile = Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorVersionProfile OrchestratorVersionProfileListResult = Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorVersionProfileListResult - OrchestratorProfile = Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorProfile end class ContainerServiceManagementClass - attr_reader :operations, :managed_clusters, :container_services, :configurable, :base_url, :options, :model_classes + attr_reader :managed_clusters, :operations, :container_services, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -67,8 +67,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @operations = @client_1.operations @managed_clusters = @client_1.managed_clusters + @operations = @client_1.operations @client_2 = Azure::ContainerService::Mgmt::V2017_09_30::ContainerServiceClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @@ -98,9 +98,6 @@ def method_missing(method, *args) end class ModelClasses - def container_service_custom_profile - Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceCustomProfile - end def container_service_orchestrator_profile Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceOrchestratorProfile end @@ -116,26 +113,38 @@ def container_service def container_service_orchestrator_types Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceOrchestratorTypes end + def container_service_custom_profile + Azure::ContainerService::Mgmt::V2017_07_01::Models::ContainerServiceCustomProfile + end def container_service_linux_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceLinuxProfile end - def container_service_network_profile - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceNetworkProfile - end - def operation_list_result - Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + def container_service_master_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceMasterProfile end def container_service_vmdiagnostics Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMDiagnostics end - def tags_object - Azure::ContainerService::Mgmt::V2018_03_31::Models::TagsObject - end def container_service_diagnostics_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceDiagnosticsProfile end - def container_service_service_principal_profile - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceServicePrincipalProfile + def key_vault_secret_ref + Azure::ContainerService::Mgmt::V2018_03_31::Models::KeyVaultSecretRef + end + def container_service_storage_profile_types + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceStorageProfileTypes + end + def container_service_vmsize_types + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMSizeTypes + end + def ostype + Azure::ContainerService::Mgmt::V2018_03_31::Models::OSType + end + def container_service_network_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceNetworkProfile + end + def tags_object + Azure::ContainerService::Mgmt::V2018_03_31::Models::TagsObject end def managed_cluster_addon_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAddonProfile @@ -146,35 +155,17 @@ def managed_cluster_agent_pool_profile def managed_cluster_aadprofile Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAADProfile end - def container_service_ssh_public_key - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshPublicKey - end - def container_service_ssh_configuration - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshConfiguration - end def operation_value Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationValue end - def key_vault_secret_ref - Azure::ContainerService::Mgmt::V2018_03_31::Models::KeyVaultSecretRef - end def managed_cluster_list_result Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterListResult end - def container_service_windows_profile - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceWindowsProfile - end - def container_service_master_profile - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceMasterProfile - end - def managed_cluster_upgrade_profile - Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterUpgradeProfile - end def resource Azure::ContainerService::Mgmt::V2018_03_31::Models::Resource end - def managed_cluster_pool_upgrade_profile - Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterPoolUpgradeProfile + def managed_cluster_upgrade_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterUpgradeProfile end def managed_cluster Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedCluster @@ -182,14 +173,8 @@ def managed_cluster def managed_cluster_access_profile Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterAccessProfile end - def container_service_storage_profile_types - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceStorageProfileTypes - end - def container_service_vmsize_types - Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceVMSizeTypes - end - def ostype - Azure::ContainerService::Mgmt::V2018_03_31::Models::OSType + def managed_cluster_pool_upgrade_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ManagedClusterPoolUpgradeProfile end def network_plugin Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPlugin @@ -197,15 +182,30 @@ def network_plugin def network_policy Azure::ContainerService::Mgmt::V2018_03_31::Models::NetworkPolicy end + def operation_list_result + Azure::ContainerService::Mgmt::V2018_03_31::Models::OperationListResult + end + def container_service_windows_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceWindowsProfile + end + def container_service_ssh_public_key + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshPublicKey + end + def container_service_ssh_configuration + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceSshConfiguration + end + def container_service_service_principal_profile + Azure::ContainerService::Mgmt::V2018_03_31::Models::ContainerServiceServicePrincipalProfile + end + def orchestrator_profile + Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorProfile + end def orchestrator_version_profile Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorVersionProfile end def orchestrator_version_profile_list_result Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorVersionProfileListResult end - def orchestrator_profile - Azure::ContainerService::Mgmt::V2017_09_30::Models::OrchestratorProfile - end end end end diff --git a/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb b/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb index 5cd21dadfd..a4c317bf7f 100644 --- a/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb +++ b/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb @@ -15,33 +15,11 @@ module ContentModerator Reviews = Azure::CognitiveServices::ContentModerator::V1_0::Reviews module Models - RefreshIndex = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex - ImageAdditionalInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem - Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag - Image = Azure::CognitiveServices::ContentModerator::V1_0::Models::Image - Frames = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames - ImageIds = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds - ClassificationCategory2 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory2 - TermsInList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList - Classification = Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification - TermsData = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsData - Email = Azure::CognitiveServices::ContentModerator::V1_0::Models::Email - TermsPaging = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging - IPA = Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA - Terms = Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms - Address = Azure::CognitiveServices::ContentModerator::V1_0::Models::Address - Review = Azure::CognitiveServices::ContentModerator::V1_0::Models::Review - DetectedTerms = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedTerms - JobExecutionReportDetails = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobExecutionReportDetails - Face = Azure::CognitiveServices::ContentModerator::V1_0::Models::Face - Job = Azure::CognitiveServices::ContentModerator::V1_0::Models::Job - Candidate = Azure::CognitiveServices::ContentModerator::V1_0::Models::Candidate - JobListResult = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult Evaluate = Azure::CognitiveServices::ContentModerator::V1_0::Models::Evaluate JobId = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobId MatchResponse = Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse - Error = Azure::CognitiveServices::ContentModerator::V1_0::Models::Error ImageListMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageListMetadata + Image = Azure::CognitiveServices::ContentModerator::V1_0::Models::Image APIError = Azure::CognitiveServices::ContentModerator::V1_0::Models::APIError TermListMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermListMetadata TranscriptModerationBodyItemTermsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::TranscriptModerationBodyItemTermsItem @@ -54,29 +32,51 @@ module Models SSN = Azure::CognitiveServices::ContentModerator::V1_0::Models::SSN CreateVideoReviewsBodyItemVideoFramesItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemVideoFramesItem PII = Azure::CognitiveServices::ContentModerator::V1_0::Models::PII - CreateVideoReviewsBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem FoundFaces = Azure::CognitiveServices::ContentModerator::V1_0::Models::FoundFaces CreateVideoReviewsBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem + JobListResult = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult Match = Azure::CognitiveServices::ContentModerator::V1_0::Models::Match BodyMetadata = Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata - ImageList = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList + Face = Azure::CognitiveServices::ContentModerator::V1_0::Models::Face Body = Azure::CognitiveServices::ContentModerator::V1_0::Models::Body - KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair - ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl - Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status + ImageList = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList VideoFrameBodyItemReviewerResultTagsItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem - Screen = Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen + CreateVideoReviewsBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem VideoFrameBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem + Screen = Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen + KeyValuePair = Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair DetectedLanguage = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage VideoFrameBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItem ClassificationCategory1 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory1 CreateReviewBodyItemMetadataItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItemMetadataItem OCR = Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR - CreateReviewBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem + ImageUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl Phone = Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone Content = Azure::CognitiveServices::ContentModerator::V1_0::Models::Content - TermList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList + CreateReviewBodyItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem AzureRegionBaseUrl = Azure::CognitiveServices::ContentModerator::V1_0::Models::AzureRegionBaseUrl + TermList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList + Error = Azure::CognitiveServices::ContentModerator::V1_0::Models::Error + Job = Azure::CognitiveServices::ContentModerator::V1_0::Models::Job + Tag = Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag + Address = Azure::CognitiveServices::ContentModerator::V1_0::Models::Address + Status = Azure::CognitiveServices::ContentModerator::V1_0::Models::Status + RefreshIndex = Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex + ImageAdditionalInfoItem = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem + Frames = Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames + ImageIds = Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds + ClassificationCategory2 = Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory2 + TermsInList = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList + Classification = Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification + TermsData = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsData + Email = Azure::CognitiveServices::ContentModerator::V1_0::Models::Email + TermsPaging = Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging + IPA = Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA + Terms = Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms + Review = Azure::CognitiveServices::ContentModerator::V1_0::Models::Review + DetectedTerms = Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedTerms + JobExecutionReportDetails = Azure::CognitiveServices::ContentModerator::V1_0::Models::JobExecutionReportDetails + Candidate = Azure::CognitiveServices::ContentModerator::V1_0::Models::Candidate end class ContentModeratorDataClass @@ -115,72 +115,6 @@ def method_missing(method, *args) end class ModelClasses - def refresh_index - Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex - end - def image_additional_info_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem - end - def tag - Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag - end - def image - Azure::CognitiveServices::ContentModerator::V1_0::Models::Image - end - def frames - Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames - end - def image_ids - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds - end - def classification_category2 - Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory2 - end - def terms_in_list - Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList - end - def classification - Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification - end - def terms_data - Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsData - end - def email - Azure::CognitiveServices::ContentModerator::V1_0::Models::Email - end - def terms_paging - Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging - end - def ipa - Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA - end - def terms - Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms - end - def address - Azure::CognitiveServices::ContentModerator::V1_0::Models::Address - end - def review - Azure::CognitiveServices::ContentModerator::V1_0::Models::Review - end - def detected_terms - Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedTerms - end - def job_execution_report_details - Azure::CognitiveServices::ContentModerator::V1_0::Models::JobExecutionReportDetails - end - def face - Azure::CognitiveServices::ContentModerator::V1_0::Models::Face - end - def job - Azure::CognitiveServices::ContentModerator::V1_0::Models::Job - end - def candidate - Azure::CognitiveServices::ContentModerator::V1_0::Models::Candidate - end - def job_list_result - Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult - end def evaluate Azure::CognitiveServices::ContentModerator::V1_0::Models::Evaluate end @@ -190,12 +124,12 @@ def job_id def match_response Azure::CognitiveServices::ContentModerator::V1_0::Models::MatchResponse end - def error - Azure::CognitiveServices::ContentModerator::V1_0::Models::Error - end def image_list_metadata Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageListMetadata end + def image + Azure::CognitiveServices::ContentModerator::V1_0::Models::Image + end def apierror Azure::CognitiveServices::ContentModerator::V1_0::Models::APIError end @@ -232,45 +166,45 @@ def create_video_reviews_body_item_video_frames_item def pii Azure::CognitiveServices::ContentModerator::V1_0::Models::PII end - def create_video_reviews_body_item_metadata_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem - end def found_faces Azure::CognitiveServices::ContentModerator::V1_0::Models::FoundFaces end def create_video_reviews_body_item Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem end + def job_list_result + Azure::CognitiveServices::ContentModerator::V1_0::Models::JobListResult + end def match Azure::CognitiveServices::ContentModerator::V1_0::Models::Match end def body_metadata Azure::CognitiveServices::ContentModerator::V1_0::Models::BodyMetadata end - def image_list - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList + def face + Azure::CognitiveServices::ContentModerator::V1_0::Models::Face end def body Azure::CognitiveServices::ContentModerator::V1_0::Models::Body end - def key_value_pair - Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair - end - def image_url - Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl - end - def status - Azure::CognitiveServices::ContentModerator::V1_0::Models::Status + def image_list + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageList end def video_frame_body_item_reviewer_result_tags_item Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemReviewerResultTagsItem end - def screen - Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen + def create_video_reviews_body_item_metadata_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItemMetadataItem end def video_frame_body_item_metadata_item Azure::CognitiveServices::ContentModerator::V1_0::Models::VideoFrameBodyItemMetadataItem end + def screen + Azure::CognitiveServices::ContentModerator::V1_0::Models::Screen + end + def key_value_pair + Azure::CognitiveServices::ContentModerator::V1_0::Models::KeyValuePair + end def detected_language Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedLanguage end @@ -286,8 +220,8 @@ def create_review_body_item_metadata_item def ocr Azure::CognitiveServices::ContentModerator::V1_0::Models::OCR end - def create_review_body_item - Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem + def image_url + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageUrl end def phone Azure::CognitiveServices::ContentModerator::V1_0::Models::Phone @@ -295,12 +229,78 @@ def phone def content Azure::CognitiveServices::ContentModerator::V1_0::Models::Content end - def term_list - Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList + def create_review_body_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateReviewBodyItem end def azure_region_base_url Azure::CognitiveServices::ContentModerator::V1_0::Models::AzureRegionBaseUrl end + def term_list + Azure::CognitiveServices::ContentModerator::V1_0::Models::TermList + end + def error + Azure::CognitiveServices::ContentModerator::V1_0::Models::Error + end + def job + Azure::CognitiveServices::ContentModerator::V1_0::Models::Job + end + def tag + Azure::CognitiveServices::ContentModerator::V1_0::Models::Tag + end + def address + Azure::CognitiveServices::ContentModerator::V1_0::Models::Address + end + def status + Azure::CognitiveServices::ContentModerator::V1_0::Models::Status + end + def refresh_index + Azure::CognitiveServices::ContentModerator::V1_0::Models::RefreshIndex + end + def image_additional_info_item + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageAdditionalInfoItem + end + def frames + Azure::CognitiveServices::ContentModerator::V1_0::Models::Frames + end + def image_ids + Azure::CognitiveServices::ContentModerator::V1_0::Models::ImageIds + end + def classification_category2 + Azure::CognitiveServices::ContentModerator::V1_0::Models::ClassificationCategory2 + end + def terms_in_list + Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsInList + end + def classification + Azure::CognitiveServices::ContentModerator::V1_0::Models::Classification + end + def terms_data + Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsData + end + def email + Azure::CognitiveServices::ContentModerator::V1_0::Models::Email + end + def terms_paging + Azure::CognitiveServices::ContentModerator::V1_0::Models::TermsPaging + end + def ipa + Azure::CognitiveServices::ContentModerator::V1_0::Models::IPA + end + def terms + Azure::CognitiveServices::ContentModerator::V1_0::Models::Terms + end + def review + Azure::CognitiveServices::ContentModerator::V1_0::Models::Review + end + def detected_terms + Azure::CognitiveServices::ContentModerator::V1_0::Models::DetectedTerms + end + def job_execution_report_details + Azure::CognitiveServices::ContentModerator::V1_0::Models::JobExecutionReportDetails + end + def candidate + Azure::CognitiveServices::ContentModerator::V1_0::Models::Candidate + end end end end diff --git a/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb b/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb index 744733e667..07ba68b61b 100644 --- a/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb @@ -7,9 +7,12 @@ module Azure::Profiles::Latest module CustomerInsights module Mgmt + Images = Azure::CustomerInsights::Mgmt::V2017_04_26::Images + Predictions = Azure::CustomerInsights::Mgmt::V2017_04_26::Predictions + Profiles = Azure::CustomerInsights::Mgmt::V2017_04_26::Profiles + RoleAssignments = Azure::CustomerInsights::Mgmt::V2017_04_26::RoleAssignments Operations = Azure::CustomerInsights::Mgmt::V2017_04_26::Operations Hubs = Azure::CustomerInsights::Mgmt::V2017_04_26::Hubs - Profiles = Azure::CustomerInsights::Mgmt::V2017_04_26::Profiles Interactions = Azure::CustomerInsights::Mgmt::V2017_04_26::Interactions Relationships = Azure::CustomerInsights::Mgmt::V2017_04_26::Relationships RelationshipLinks = Azure::CustomerInsights::Mgmt::V2017_04_26::RelationshipLinks @@ -21,11 +24,49 @@ module Mgmt Views = Azure::CustomerInsights::Mgmt::V2017_04_26::Views Links = Azure::CustomerInsights::Mgmt::V2017_04_26::Links Roles = Azure::CustomerInsights::Mgmt::V2017_04_26::Roles - RoleAssignments = Azure::CustomerInsights::Mgmt::V2017_04_26::RoleAssignments - Images = Azure::CustomerInsights::Mgmt::V2017_04_26::Images - Predictions = Azure::CustomerInsights::Mgmt::V2017_04_26::Predictions module Models + InteractionResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InteractionResourceFormat + KpiResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiResourceFormat + EnrichingKpi = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EnrichingKpi + ConnectorResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorResourceFormat + ConnectorMappingResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingResourceFormat + AuthorizationPolicyResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyResourceFormat + LinkResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat + RelationshipResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipResourceFormat + RelationshipLinkResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkResourceFormat + ViewResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat + WidgetTypeResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::WidgetTypeResourceFormat + RoleAssignmentResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentResourceFormat + RoleResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleResourceFormat + PredictionResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat + EntityTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypes + DataSourceType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourceType + Status = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status + ProvisioningStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProvisioningStates + PermissionTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PermissionTypes + ConnectorTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorTypes + ConnectorStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates + ErrorManagementTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ErrorManagementTypes + FrequencyTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::FrequencyTypes + CompletionOperationTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CompletionOperationTypes + ConnectorMappingStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStates + CalculationWindowTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CalculationWindowTypes + KpiFunctions = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiFunctions + EntityType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityType + LinkTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes + InstanceOperationType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InstanceOperationType + CardinalityTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CardinalityTypes + RoleTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes + CanonicalPropertyValueType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType + PredictionModelLifeCycle = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle + OperationDisplay = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationDisplay + OperationListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult + Operation = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Operation + ProxyResource = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProxyResource + Resource = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Resource + ProfileListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult + RoleAssignmentListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentListResult KpiListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiListResult HubBillingInfoFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::HubBillingInfoFormat Participant = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Participant @@ -33,7 +74,6 @@ module Models MetadataDefinitionBase = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::MetadataDefinitionBase PredictionSystemGeneratedEntities = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionSystemGeneratedEntities DataSourcePrecedence = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourcePrecedence - ProfileListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult SuggestRelationshipLinksResponse = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SuggestRelationshipLinksResponse AuthorizationPolicy = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicy PredictionGradesItem = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionGradesItem @@ -46,15 +86,11 @@ module Models RelationshipsLookup = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipsLookup ConnectorMappingAvailability = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingAvailability ConnectorMappingCompleteOperation = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingCompleteOperation - OperationListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult KpiThresholds = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiThresholds ConnectorListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorListResult KpiParticipantProfilesMetadata = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiParticipantProfilesMetadata - Operation = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Operation KpiExtract = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiExtract ConnectorMappingListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingListResult - Resource = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Resource - OperationDisplay = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationDisplay TypePropertiesMapping = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::TypePropertiesMapping AuthorizationPolicyListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyListResult RelationshipTypeFieldMapping = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipTypeFieldMapping @@ -73,7 +109,6 @@ module Models CanonicalProfileDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalProfileDefinition KpiAlias = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiAlias ViewListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewListResult - ProxyResource = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProxyResource CanonicalProfileDefinitionPropertiesItem = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalProfileDefinitionPropertiesItem RelationshipTypeMapping = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipTypeMapping WidgetTypeListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::WidgetTypeListResult @@ -84,7 +119,6 @@ module Models KpiGroupByMetadata = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiGroupByMetadata PredictionDistributionDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinition ParticipantPropertyReference = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ParticipantPropertyReference - RoleAssignmentListResult = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentListResult SalesforceDiscoverSetting = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SalesforceDiscoverSetting PredictionDistributionDefinitionDistributionsItem = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionDistributionDefinitionDistributionsItem KpiDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiDefinition @@ -96,44 +130,10 @@ module Models Hub = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Hub EntityTypeDefinition = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypeDefinition ProfileResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat - InteractionResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InteractionResourceFormat - KpiResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiResourceFormat - EnrichingKpi = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EnrichingKpi - ConnectorResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorResourceFormat - ConnectorMappingResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingResourceFormat - AuthorizationPolicyResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyResourceFormat - LinkResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat - RelationshipResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipResourceFormat - RelationshipLinkResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkResourceFormat - ViewResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat - WidgetTypeResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::WidgetTypeResourceFormat - RoleAssignmentResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentResourceFormat - RoleResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleResourceFormat - PredictionResourceFormat = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat - EntityTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypes - DataSourceType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourceType - Status = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status - ProvisioningStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProvisioningStates - PermissionTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PermissionTypes - ConnectorTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorTypes - ConnectorStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates - ErrorManagementTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ErrorManagementTypes - FrequencyTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::FrequencyTypes - CompletionOperationTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CompletionOperationTypes - ConnectorMappingStates = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStates - CalculationWindowTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CalculationWindowTypes - KpiFunctions = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiFunctions - EntityType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityType - LinkTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes - InstanceOperationType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InstanceOperationType - CardinalityTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CardinalityTypes - RoleTypes = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes - CanonicalPropertyValueType = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType - PredictionModelLifeCycle = Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle end class CustomerInsightsManagementClass - attr_reader :operations, :hubs, :profiles, :interactions, :relationships, :relationship_links, :authorization_policies, :connectors, :connector_mappings, :kpi, :widget_types, :views, :links, :roles, :role_assignments, :images, :predictions, :configurable, :base_url, :options, :model_classes + attr_reader :images, :predictions, :profiles, :role_assignments, :operations, :hubs, :interactions, :relationships, :relationship_links, :authorization_policies, :connectors, :connector_mappings, :kpi, :widget_types, :views, :links, :roles, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -143,9 +143,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @images = @client_0.images + @predictions = @client_0.predictions + @profiles = @client_0.profiles + @role_assignments = @client_0.role_assignments @operations = @client_0.operations @hubs = @client_0.hubs - @profiles = @client_0.profiles @interactions = @client_0.interactions @relationships = @client_0.relationships @relationship_links = @client_0.relationship_links @@ -157,9 +160,6 @@ def initialize(configurable, base_url=nil, options=nil) @views = @client_0.views @links = @client_0.links @roles = @client_0.roles - @role_assignments = @client_0.role_assignments - @images = @client_0.images - @predictions = @client_0.predictions @model_classes = ModelClasses.new end @@ -178,6 +178,129 @@ def method_missing(method, *args) end class ModelClasses + def interaction_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InteractionResourceFormat + end + def kpi_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiResourceFormat + end + def enriching_kpi + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EnrichingKpi + end + def connector_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorResourceFormat + end + def connector_mapping_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingResourceFormat + end + def authorization_policy_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyResourceFormat + end + def link_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat + end + def relationship_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipResourceFormat + end + def relationship_link_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkResourceFormat + end + def view_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat + end + def widget_type_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::WidgetTypeResourceFormat + end + def role_assignment_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentResourceFormat + end + def role_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleResourceFormat + end + def prediction_resource_format + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat + end + def entity_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypes + end + def data_source_type + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourceType + end + def status + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status + end + def provisioning_states + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProvisioningStates + end + def permission_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PermissionTypes + end + def connector_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorTypes + end + def connector_states + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates + end + def error_management_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ErrorManagementTypes + end + def frequency_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::FrequencyTypes + end + def completion_operation_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CompletionOperationTypes + end + def connector_mapping_states + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStates + end + def calculation_window_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CalculationWindowTypes + end + def kpi_functions + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiFunctions + end + def entity_type + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityType + end + def link_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes + end + def instance_operation_type + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InstanceOperationType + end + def cardinality_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CardinalityTypes + end + def role_types + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes + end + def canonical_property_value_type + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType + end + def prediction_model_life_cycle + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle + end + def operation_display + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationDisplay + end + def operation_list_result + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult + end + def operation + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Operation + end + def proxy_resource + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProxyResource + end + def resource + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Resource + end + def profile_list_result + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult + end + def role_assignment_list_result + Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentListResult + end def kpi_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiListResult end @@ -199,9 +322,6 @@ def prediction_system_generated_entities def data_source_precedence Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourcePrecedence end - def profile_list_result - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileListResult - end def suggest_relationship_links_response Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SuggestRelationshipLinksResponse end @@ -238,9 +358,6 @@ def connector_mapping_availability def connector_mapping_complete_operation Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingCompleteOperation end - def operation_list_result - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationListResult - end def kpi_thresholds Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiThresholds end @@ -250,21 +367,12 @@ def connector_list_result def kpi_participant_profiles_metadata Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiParticipantProfilesMetadata end - def operation - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Operation - end def kpi_extract Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiExtract end def connector_mapping_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingListResult end - def resource - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Resource - end - def operation_display - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::OperationDisplay - end def type_properties_mapping Azure::CustomerInsights::Mgmt::V2017_04_26::Models::TypePropertiesMapping end @@ -319,9 +427,6 @@ def kpi_alias def view_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewListResult end - def proxy_resource - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProxyResource - end def canonical_profile_definition_properties_item Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalProfileDefinitionPropertiesItem end @@ -352,9 +457,6 @@ def prediction_distribution_definition def participant_property_reference Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ParticipantPropertyReference end - def role_assignment_list_result - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentListResult - end def salesforce_discover_setting Azure::CustomerInsights::Mgmt::V2017_04_26::Models::SalesforceDiscoverSetting end @@ -388,108 +490,6 @@ def entity_type_definition def profile_resource_format Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProfileResourceFormat end - def interaction_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InteractionResourceFormat - end - def kpi_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiResourceFormat - end - def enriching_kpi - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EnrichingKpi - end - def connector_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorResourceFormat - end - def connector_mapping_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingResourceFormat - end - def authorization_policy_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::AuthorizationPolicyResourceFormat - end - def link_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkResourceFormat - end - def relationship_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipResourceFormat - end - def relationship_link_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RelationshipLinkResourceFormat - end - def view_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ViewResourceFormat - end - def widget_type_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::WidgetTypeResourceFormat - end - def role_assignment_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleAssignmentResourceFormat - end - def role_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleResourceFormat - end - def prediction_resource_format - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionResourceFormat - end - def entity_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityTypes - end - def data_source_type - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::DataSourceType - end - def status - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::Status - end - def provisioning_states - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ProvisioningStates - end - def permission_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PermissionTypes - end - def connector_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorTypes - end - def connector_states - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorStates - end - def error_management_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ErrorManagementTypes - end - def frequency_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::FrequencyTypes - end - def completion_operation_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CompletionOperationTypes - end - def connector_mapping_states - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::ConnectorMappingStates - end - def calculation_window_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CalculationWindowTypes - end - def kpi_functions - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiFunctions - end - def entity_type - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::EntityType - end - def link_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::LinkTypes - end - def instance_operation_type - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::InstanceOperationType - end - def cardinality_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CardinalityTypes - end - def role_types - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::RoleTypes - end - def canonical_property_value_type - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::CanonicalPropertyValueType - end - def prediction_model_life_cycle - Azure::CustomerInsights::Mgmt::V2017_04_26::Models::PredictionModelLifeCycle - end end end end diff --git a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb index 4b79f6d097..12fbb4c7ed 100644 --- a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb @@ -12,15 +12,12 @@ module Models ResponseBase = Azure::CognitiveServices::CustomSearch::V1_0::Models::ResponseBase QueryContext = Azure::CognitiveServices::CustomSearch::V1_0::Models::QueryContext Query = Azure::CognitiveServices::CustomSearch::V1_0::Models::Query - Error = Azure::CognitiveServices::CustomSearch::V1_0::Models::Error WebMetaTag = Azure::CognitiveServices::CustomSearch::V1_0::Models::WebMetaTag WebPage = Azure::CognitiveServices::CustomSearch::V1_0::Models::WebPage WebWebAnswer = Azure::CognitiveServices::CustomSearch::V1_0::Models::WebWebAnswer SearchResponse = Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResponse SearchResultsAnswer = Azure::CognitiveServices::CustomSearch::V1_0::Models::SearchResultsAnswer Identifiable = Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::CustomSearch::V1_0::Models::Response - ErrorResponse = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorResponse Answer = Azure::CognitiveServices::CustomSearch::V1_0::Models::Answer Thing = Azure::CognitiveServices::CustomSearch::V1_0::Models::Thing CreativeWork = Azure::CognitiveServices::CustomSearch::V1_0::Models::CreativeWork @@ -28,6 +25,9 @@ module Models ErrorSubCode = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorSubCode SafeSearch = Azure::CognitiveServices::CustomSearch::V1_0::Models::SafeSearch TextFormat = Azure::CognitiveServices::CustomSearch::V1_0::Models::TextFormat + Response = Azure::CognitiveServices::CustomSearch::V1_0::Models::Response + Error = Azure::CognitiveServices::CustomSearch::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorResponse end class CustomSearchDataClass @@ -69,9 +69,6 @@ def query_context def query Azure::CognitiveServices::CustomSearch::V1_0::Models::Query end - def error - Azure::CognitiveServices::CustomSearch::V1_0::Models::Error - end def web_meta_tag Azure::CognitiveServices::CustomSearch::V1_0::Models::WebMetaTag end @@ -90,12 +87,6 @@ def search_results_answer def identifiable Azure::CognitiveServices::CustomSearch::V1_0::Models::Identifiable end - def response - Azure::CognitiveServices::CustomSearch::V1_0::Models::Response - end - def error_response - Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorResponse - end def answer Azure::CognitiveServices::CustomSearch::V1_0::Models::Answer end @@ -117,6 +108,15 @@ def safe_search def text_format Azure::CognitiveServices::CustomSearch::V1_0::Models::TextFormat end + def response + Azure::CognitiveServices::CustomSearch::V1_0::Models::Response + end + def error + Azure::CognitiveServices::CustomSearch::V1_0::Models::Error + end + def error_response + Azure::CognitiveServices::CustomSearch::V1_0::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb index 22bcea2ec7..b83650e50e 100644 --- a/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb @@ -7,33 +7,18 @@ module Azure::Profiles::Latest module DataLakeAnalytics module Mgmt - Accounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Accounts DataLakeStoreAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeStoreAccounts - StorageAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts ComputePolicies = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::ComputePolicies - FirewallRules = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::FirewallRules Operations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Operations + StorageAccounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::StorageAccounts Locations = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Locations + FirewallRules = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::FirewallRules + Accounts = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Accounts module Models - CapabilityInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CapabilityInformation - Resource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource - NameAvailabilityInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation - Operation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Operation - OperationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult - UpdateFirewallRuleParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters - SubResource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource - UpdateComputePolicyParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateComputePolicyParameters - UpdateStorageAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters - DataLakeStoreAccountInformationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformationListResult - AddDataLakeStoreWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreWithAccountParameters - CreateOrUpdateComputePolicyParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateOrUpdateComputePolicyParameters - AddStorageAccountWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountWithAccountParameters - SasTokenInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformation CreateComputePolicyWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateComputePolicyWithAccountParameters ComputePolicyListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ComputePolicyListResult CreateFirewallRuleWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateFirewallRuleWithAccountParameters - OperationDisplay = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationDisplay CreateDataLakeAnalyticsAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateDataLakeAnalyticsAccountParameters CreateOrUpdateFirewallRuleParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateOrUpdateFirewallRuleParameters UpdateDataLakeStoreWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateDataLakeStoreWithAccountParameters @@ -41,7 +26,6 @@ module Models UpdateStorageAccountWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountWithAccountParameters SasTokenInformationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformationListResult UpdateComputePolicyWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateComputePolicyWithAccountParameters - CheckNameAvailabilityParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters UpdateFirewallRuleWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters StorageContainerListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainerListResult UpdateDataLakeAnalyticsAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateDataLakeAnalyticsAccountParameters @@ -60,14 +44,30 @@ module Models FirewallState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallState FirewallAllowAzureIpsState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState TierType = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType + CheckNameAvailabilityParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters DataLakeAnalyticsAccountStatus = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus DataLakeAnalyticsAccountState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountState OperationOrigin = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationOrigin SubscriptionState = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubscriptionState + OperationDisplay = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationDisplay + OperationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult + Operation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Operation + Resource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource + SubResource = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource + CapabilityInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CapabilityInformation + NameAvailabilityInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation + UpdateFirewallRuleParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters + UpdateComputePolicyParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateComputePolicyParameters + UpdateStorageAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters + DataLakeStoreAccountInformationListResult = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformationListResult + AddDataLakeStoreWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreWithAccountParameters + CreateOrUpdateComputePolicyParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateOrUpdateComputePolicyParameters + AddStorageAccountWithAccountParameters = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountWithAccountParameters + SasTokenInformation = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformation end class DataLakeAnalyticsManagementClass - attr_reader :accounts, :data_lake_store_accounts, :storage_accounts, :compute_policies, :firewall_rules, :operations, :locations, :configurable, :base_url, :options, :model_classes + attr_reader :data_lake_store_accounts, :compute_policies, :operations, :storage_accounts, :locations, :firewall_rules, :accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -77,13 +77,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @accounts = @client_0.accounts @data_lake_store_accounts = @client_0.data_lake_store_accounts - @storage_accounts = @client_0.storage_accounts @compute_policies = @client_0.compute_policies - @firewall_rules = @client_0.firewall_rules @operations = @client_0.operations + @storage_accounts = @client_0.storage_accounts @locations = @client_0.locations + @firewall_rules = @client_0.firewall_rules + @accounts = @client_0.accounts @model_classes = ModelClasses.new end @@ -102,48 +102,6 @@ def method_missing(method, *args) end class ModelClasses - def capability_information - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CapabilityInformation - end - def resource - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource - end - def name_availability_information - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation - end - def operation - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Operation - end - def operation_list_result - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult - end - def update_firewall_rule_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters - end - def sub_resource - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource - end - def update_compute_policy_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateComputePolicyParameters - end - def update_storage_account_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters - end - def data_lake_store_account_information_list_result - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformationListResult - end - def add_data_lake_store_with_account_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreWithAccountParameters - end - def create_or_update_compute_policy_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateOrUpdateComputePolicyParameters - end - def add_storage_account_with_account_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountWithAccountParameters - end - def sas_token_information - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformation - end def create_compute_policy_with_account_parameters Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateComputePolicyWithAccountParameters end @@ -153,9 +111,6 @@ def compute_policy_list_result def create_firewall_rule_with_account_parameters Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateFirewallRuleWithAccountParameters end - def operation_display - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationDisplay - end def create_data_lake_analytics_account_parameters Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateDataLakeAnalyticsAccountParameters end @@ -177,9 +132,6 @@ def sas_token_information_list_result def update_compute_policy_with_account_parameters Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateComputePolicyWithAccountParameters end - def check_name_availability_parameters - Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters - end def update_firewall_rule_with_account_parameters Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters end @@ -234,6 +186,9 @@ def firewall_allow_azure_ips_state def tier_type Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::TierType end + def check_name_availability_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + end def data_lake_analytics_account_status Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountStatus end @@ -246,6 +201,51 @@ def operation_origin def subscription_state Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubscriptionState end + def operation_display + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationDisplay + end + def operation_list_result + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult + end + def operation + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Operation + end + def resource + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::Resource + end + def sub_resource + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SubResource + end + def capability_information + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CapabilityInformation + end + def name_availability_information + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation + end + def update_firewall_rule_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters + end + def update_compute_policy_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateComputePolicyParameters + end + def update_storage_account_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters + end + def data_lake_store_account_information_list_result + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformationListResult + end + def add_data_lake_store_with_account_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreWithAccountParameters + end + def create_or_update_compute_policy_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateOrUpdateComputePolicyParameters + end + def add_storage_account_with_account_parameters + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountWithAccountParameters + end + def sas_token_information + Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformation + end end end end diff --git a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb index 10c09344ed..96842815dc 100644 --- a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb @@ -7,17 +7,28 @@ module Azure::Profiles::Latest module DataLakeStore module Mgmt - Accounts = Azure::DataLakeStore::Mgmt::V2016_11_01::Accounts + Operations = Azure::DataLakeStore::Mgmt::V2016_11_01::Operations FirewallRules = Azure::DataLakeStore::Mgmt::V2016_11_01::FirewallRules + Locations = Azure::DataLakeStore::Mgmt::V2016_11_01::Locations VirtualNetworkRules = Azure::DataLakeStore::Mgmt::V2016_11_01::VirtualNetworkRules TrustedIdProviders = Azure::DataLakeStore::Mgmt::V2016_11_01::TrustedIdProviders - Operations = Azure::DataLakeStore::Mgmt::V2016_11_01::Operations - Locations = Azure::DataLakeStore::Mgmt::V2016_11_01::Locations + Accounts = Azure::DataLakeStore::Mgmt::V2016_11_01::Accounts module Models - NameAvailabilityInformation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::NameAvailabilityInformation - Resource = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Resource CreateFirewallRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateFirewallRuleWithAccountParameters + CreateOrUpdateFirewallRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateFirewallRuleParameters + UpdateFirewallRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters + FirewallRuleListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRuleListResult + FirewallRule = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRule + FirewallState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallState + FirewallAllowAzureIpsState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState + TierType = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TierType + CheckNameAvailabilityParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + OperationOrigin = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin + SubscriptionState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState + OperationDisplay = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationDisplay + OperationListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult + Operation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Operation EncryptionIdentity = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionIdentity CreateVirtualNetworkRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateVirtualNetworkRuleWithAccountParameters EncryptionConfig = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionConfig @@ -26,46 +37,35 @@ module Models UpdateVirtualNetworkRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateVirtualNetworkRuleParameters UpdateTrustedIdProviderParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateTrustedIdProviderParameters CreateOrUpdateTrustedIdProviderParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateTrustedIdProviderParameters - FirewallRuleListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRuleListResult CreateDataLakeStoreAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateDataLakeStoreAccountParameters TrustedIdProviderListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TrustedIdProviderListResult UpdateKeyVaultMetaInfo = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateKeyVaultMetaInfo - Operation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Operation UpdateEncryptionConfig = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateEncryptionConfig - CapabilityInformation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CapabilityInformation - UpdateFirewallRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters - CheckNameAvailabilityParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters UpdateVirtualNetworkRuleWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateVirtualNetworkRuleWithAccountParameters VirtualNetworkRuleListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRuleListResult UpdateTrustedIdProviderWithAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateTrustedIdProviderWithAccountParameters - OperationListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult + Resource = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Resource UpdateDataLakeStoreAccountParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateDataLakeStoreAccountParameters DataLakeStoreAccountListResult = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountListResult - CreateOrUpdateFirewallRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateFirewallRuleParameters - SubResource = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubResource - UpdateFirewallRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters - OperationDisplay = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationDisplay CreateOrUpdateVirtualNetworkRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateVirtualNetworkRuleParameters - FirewallRule = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRule - VirtualNetworkRule = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRule TrustedIdProvider = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TrustedIdProvider DataLakeStoreAccount = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccount + VirtualNetworkRule = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRule DataLakeStoreAccountBasic = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountBasic - EncryptionConfigType = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionConfigType EncryptionState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionState EncryptionProvisioningState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionProvisioningState - FirewallState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallState - FirewallAllowAzureIpsState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState + SubResource = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubResource TrustedIdProviderState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TrustedIdProviderState - TierType = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TierType DataLakeStoreAccountStatus = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountStatus + EncryptionConfigType = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionConfigType DataLakeStoreAccountState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountState - OperationOrigin = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin - SubscriptionState = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState + CapabilityInformation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CapabilityInformation + NameAvailabilityInformation = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::NameAvailabilityInformation + UpdateFirewallRuleParameters = Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters end class DataLakeStoreManagementClass - attr_reader :accounts, :firewall_rules, :virtual_network_rules, :trusted_id_providers, :operations, :locations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :firewall_rules, :locations, :virtual_network_rules, :trusted_id_providers, :accounts, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -75,12 +75,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @accounts = @client_0.accounts + @operations = @client_0.operations @firewall_rules = @client_0.firewall_rules + @locations = @client_0.locations @virtual_network_rules = @client_0.virtual_network_rules @trusted_id_providers = @client_0.trusted_id_providers - @operations = @client_0.operations - @locations = @client_0.locations + @accounts = @client_0.accounts @model_classes = ModelClasses.new end @@ -99,15 +99,48 @@ def method_missing(method, *args) end class ModelClasses - def name_availability_information - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::NameAvailabilityInformation - end - def resource - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Resource - end def create_firewall_rule_with_account_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateFirewallRuleWithAccountParameters end + def create_or_update_firewall_rule_parameters + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateFirewallRuleParameters + end + def update_firewall_rule_with_account_parameters + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters + end + def firewall_rule_list_result + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRuleListResult + end + def firewall_rule + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRule + end + def firewall_state + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallState + end + def firewall_allow_azure_ips_state + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState + end + def tier_type + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TierType + end + def check_name_availability_parameters + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters + end + def operation_origin + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin + end + def subscription_state + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState + end + def operation_display + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationDisplay + end + def operation_list_result + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult + end + def operation + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Operation + end def encryption_identity Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionIdentity end @@ -132,9 +165,6 @@ def update_trusted_id_provider_parameters def create_or_update_trusted_id_provider_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateTrustedIdProviderParameters end - def firewall_rule_list_result - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRuleListResult - end def create_data_lake_store_account_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateDataLakeStoreAccountParameters end @@ -144,21 +174,9 @@ def trusted_id_provider_list_result def update_key_vault_meta_info Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateKeyVaultMetaInfo end - def operation - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Operation - end def update_encryption_config Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateEncryptionConfig end - def capability_information - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CapabilityInformation - end - def update_firewall_rule_with_account_parameters - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleWithAccountParameters - end - def check_name_availability_parameters - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters - end def update_virtual_network_rule_with_account_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateVirtualNetworkRuleWithAccountParameters end @@ -168,8 +186,8 @@ def virtual_network_rule_list_result def update_trusted_id_provider_with_account_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateTrustedIdProviderWithAccountParameters end - def operation_list_result - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationListResult + def resource + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::Resource end def update_data_lake_store_account_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateDataLakeStoreAccountParameters @@ -177,68 +195,50 @@ def update_data_lake_store_account_parameters def data_lake_store_account_list_result Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountListResult end - def create_or_update_firewall_rule_parameters - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateFirewallRuleParameters - end - def sub_resource - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubResource - end - def update_firewall_rule_parameters - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters - end - def operation_display - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationDisplay - end def create_or_update_virtual_network_rule_parameters Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CreateOrUpdateVirtualNetworkRuleParameters end - def firewall_rule - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallRule - end - def virtual_network_rule - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRule - end def trusted_id_provider Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TrustedIdProvider end def data_lake_store_account Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccount end + def virtual_network_rule + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::VirtualNetworkRule + end def data_lake_store_account_basic Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountBasic end - def encryption_config_type - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionConfigType - end def encryption_state Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionState end def encryption_provisioning_state Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionProvisioningState end - def firewall_state - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallState - end - def firewall_allow_azure_ips_state - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::FirewallAllowAzureIpsState + def sub_resource + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubResource end def trusted_id_provider_state Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TrustedIdProviderState end - def tier_type - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::TierType - end def data_lake_store_account_status Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountStatus end + def encryption_config_type + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::EncryptionConfigType + end def data_lake_store_account_state Azure::DataLakeStore::Mgmt::V2016_11_01::Models::DataLakeStoreAccountState end - def operation_origin - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::OperationOrigin + def capability_information + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::CapabilityInformation end - def subscription_state - Azure::DataLakeStore::Mgmt::V2016_11_01::Models::SubscriptionState + def name_availability_information + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::NameAvailabilityInformation + end + def update_firewall_rule_parameters + Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateFirewallRuleParameters end end end diff --git a/azure_sdk/lib/latest/modules/devspaces_profile_module.rb b/azure_sdk/lib/latest/modules/devspaces_profile_module.rb index 3143fe83e5..83453f9c53 100644 --- a/azure_sdk/lib/latest/modules/devspaces_profile_module.rb +++ b/azure_sdk/lib/latest/modules/devspaces_profile_module.rb @@ -7,31 +7,31 @@ module Azure::Profiles::Latest module DevSpaces module Mgmt - Controllers = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Controllers Operations = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Operations + Controllers = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Controllers module Models - ControllerConnectionDetailsList = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetailsList + ProvisioningState = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ProvisioningState + ErrorDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorDetails Sku = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Sku - ErrorResponse = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorResponse + TrackedResource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource + ControllerConnectionDetailsList = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetailsList ControllerUpdateParameters = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerUpdateParameters ResourceProviderOperationDisplay = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ResourceProviderOperationDisplay OrchestratorSpecificConnectionDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::OrchestratorSpecificConnectionDetails ResourceProviderOperationDefinition = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ResourceProviderOperationDefinition ResourceProviderOperationList = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ResourceProviderOperationList ControllerConnectionDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetails - Resource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Resource ControllerList = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerList - ErrorDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorDetails - TrackedResource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource + Resource = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Resource Controller = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Controller KubernetesConnectionDetails = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::KubernetesConnectionDetails - ProvisioningState = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ProvisioningState SkuTier = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::SkuTier + ErrorResponse = Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorResponse end class DevSpacesManagementClass - attr_reader :controllers, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :controllers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -41,8 +41,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @controllers = @client_0.controllers @operations = @client_0.operations + @controllers = @client_0.controllers @model_classes = ModelClasses.new end @@ -61,14 +61,20 @@ def method_missing(method, *args) end class ModelClasses - def controller_connection_details_list - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetailsList + def provisioning_state + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ProvisioningState + end + def error_details + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorDetails end def sku Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Sku end - def error_response - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorResponse + def tracked_resource + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource + end + def controller_connection_details_list + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetailsList end def controller_update_parameters Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerUpdateParameters @@ -88,17 +94,11 @@ def resource_provider_operation_list def controller_connection_details Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerConnectionDetails end - def resource - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Resource - end def controller_list Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ControllerList end - def error_details - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorDetails - end - def tracked_resource - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::TrackedResource + def resource + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Resource end def controller Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::Controller @@ -106,12 +106,12 @@ def controller def kubernetes_connection_details Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::KubernetesConnectionDetails end - def provisioning_state - Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ProvisioningState - end def sku_tier Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::SkuTier end + def error_response + Azure::DevSpaces::Mgmt::V2018_06_01_preview::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb index d2fa1e310d..bd035f53d2 100644 --- a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb @@ -9,7 +9,6 @@ module DevTestLabs module Mgmt ProviderOperations = Azure::DevTestLabs::Mgmt::V2016_05_15::ProviderOperations Labs = Azure::DevTestLabs::Mgmt::V2016_05_15::Labs - Operations = Azure::DevTestLabs::Mgmt::V2016_05_15::Operations GlobalSchedules = Azure::DevTestLabs::Mgmt::V2016_05_15::GlobalSchedules ArtifactSources = Azure::DevTestLabs::Mgmt::V2016_05_15::ArtifactSources ArmTemplates = Azure::DevTestLabs::Mgmt::V2016_05_15::ArmTemplates @@ -17,25 +16,25 @@ module Mgmt Costs = Azure::DevTestLabs::Mgmt::V2016_05_15::Costs CustomImages = Azure::DevTestLabs::Mgmt::V2016_05_15::CustomImages Formulas = Azure::DevTestLabs::Mgmt::V2016_05_15::Formulas - GalleryImages = Azure::DevTestLabs::Mgmt::V2016_05_15::GalleryImages NotificationChannels = Azure::DevTestLabs::Mgmt::V2016_05_15::NotificationChannels + GalleryImages = Azure::DevTestLabs::Mgmt::V2016_05_15::GalleryImages PolicySets = Azure::DevTestLabs::Mgmt::V2016_05_15::PolicySets - Policies = Azure::DevTestLabs::Mgmt::V2016_05_15::Policies - Schedules = Azure::DevTestLabs::Mgmt::V2016_05_15::Schedules ServiceRunners = Azure::DevTestLabs::Mgmt::V2016_05_15::ServiceRunners Users = Azure::DevTestLabs::Mgmt::V2016_05_15::Users - Disks = Azure::DevTestLabs::Mgmt::V2016_05_15::Disks + Schedules = Azure::DevTestLabs::Mgmt::V2016_05_15::Schedules Environments = Azure::DevTestLabs::Mgmt::V2016_05_15::Environments Secrets = Azure::DevTestLabs::Mgmt::V2016_05_15::Secrets - VirtualMachines = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachines VirtualMachineSchedules = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachineSchedules VirtualNetworks = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualNetworks + Disks = Azure::DevTestLabs::Mgmt::V2016_05_15::Disks + VirtualMachines = Azure::DevTestLabs::Mgmt::V2016_05_15::VirtualMachines + Policies = Azure::DevTestLabs::Mgmt::V2016_05_15::Policies + Operations = Azure::DevTestLabs::Mgmt::V2016_05_15::Operations module Models ExternalSubnetFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ExternalSubnetFragment GalleryImageReference = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImageReference DayDetails = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DayDetails - InboundNatRule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule NotificationSettings = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettings SharedPublicIpAddressConfiguration = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SharedPublicIpAddressConfiguration ExportResourceUsageParameters = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ExportResourceUsageParameters @@ -58,7 +57,6 @@ module Models FormulaPropertiesFromVm = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FormulaPropertiesFromVm ArtifactInstallPropertiesFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactInstallPropertiesFragment ResponseWithContinuationLabVhd = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationLabVhd - Subnet = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Subnet UserSecretStoreFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserSecretStoreFragment AttachNewDataDiskOptions = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachNewDataDiskOptions GalleryImageReferenceFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImageReferenceFragment @@ -87,11 +85,9 @@ module Models SubnetOverrideFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SubnetOverrideFragment PolicySetResult = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicySetResult SubnetSharedPublicIpAddressConfigurationFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SubnetSharedPublicIpAddressConfigurationFragment - Event = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event LabVhd = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVhd DayDetailsFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DayDetailsFragment SubnetFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SubnetFragment - UserIdentity = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity SharedPublicIpAddressConfigurationFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SharedPublicIpAddressConfigurationFragment ResponseWithContinuationServiceRunner = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationServiceRunner NetworkInterfacePropertiesFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NetworkInterfacePropertiesFragment @@ -100,6 +96,7 @@ module Models ResponseWithContinuationSecret = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationSecret RetargetScheduleProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::RetargetScheduleProperties BulkCreationParameters = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::BulkCreationParameters + UserIdentity = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity ResponseWithContinuationVirtualNetwork = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationVirtualNetwork ComputeDataDiskFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeDataDiskFragment NotifyParameters = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotifyParameters @@ -116,82 +113,85 @@ module Models EventFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EventFragment SubnetSharedPublicIpAddressConfiguration = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SubnetSharedPublicIpAddressConfiguration ApplyArtifactsRequest = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplyArtifactsRequest - Port = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port ArtifactParameterPropertiesFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactParameterPropertiesFragment PortFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PortFragment ProviderOperationResult = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ProviderOperationResult CostThresholdProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdProperties - Resource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Resource DetachDiskProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DetachDiskProperties ResponseWithContinuationArmTemplate = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArmTemplate EvaluatePoliciesResponse = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesResponse ResponseWithContinuationArtifact = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifact - ArmTemplateParameterProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplateParameterProperties + Resource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Resource ResponseWithContinuationArtifactSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifactSource - ComputeVmInstanceViewStatusFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatusFragment + ArmTemplateParameterProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplateParameterProperties ResponseWithContinuationCustomImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationCustomImage - EvaluatePoliciesProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties + ComputeVmInstanceViewStatusFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatusFragment ResponseWithContinuationDisk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDisk - AttachDiskProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties + EvaluatePoliciesProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties ResponseWithContinuationDtlEnvironment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDtlEnvironment - NotificationSettingsFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettingsFragment + AttachDiskProperties = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties ResponseWithContinuationFormula = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationFormula - CustomImagePropertiesCustom = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom + NotificationSettingsFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettingsFragment ResponseWithContinuationGalleryImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationGalleryImage - Schedule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule - ApplicableSchedule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableSchedule + CustomImagePropertiesCustom = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom ScheduleFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment - ApplicableScheduleFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableScheduleFragment + ApplicableSchedule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableSchedule ArmTemplate = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplate - Artifact = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact + ApplicableScheduleFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableScheduleFragment ArtifactSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSource - ArtifactSourceFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment + Artifact = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact CustomImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage - Disk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk - DtlEnvironment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment + Schedule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule Formula = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Formula - GalleryImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage + DtlEnvironment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment + ArtifactSourceFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment Lab = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Lab LabCost = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabCost LabFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabFragment - LabVirtualMachine = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine + InboundNatRule = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule LabVirtualMachineFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineFragment + Event = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event + LabVirtualMachine = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine + PolicyFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment NotificationChannel = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannel NotificationChannelFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment - Policy = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy - PolicyFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment - Secret = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Secret - ServiceRunner = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ServiceRunner - User = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User - VirtualNetwork = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork UserFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserFragment - VirtualNetworkFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetworkFragment - EnableStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EnableStatus + Subnet = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Subnet + ServiceRunner = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ServiceRunner NotificationStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationStatus - SourceControlType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType - StorageType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::StorageType + GalleryImage = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage + Secret = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Secret CostThresholdStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdStatus + SourceControlType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType + VirtualNetworkFragment = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetworkFragment + EnableStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EnableStatus WindowsOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState - LinuxOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState - CustomImageOsType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImageOsType + User = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User + StorageType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::StorageType HostCachingOptions = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HostCachingOptions NotificationChannelEventType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelEventType - TransportProtocol = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol - VirtualMachineCreationSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualMachineCreationSource - FileUploadOptions = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FileUploadOptions + LinuxOsState = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState + CustomImageOsType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImageOsType PremiumDataDisk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PremiumDataDisk TargetCostStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TargetCostStatus + VirtualMachineCreationSource = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualMachineCreationSource + FileUploadOptions = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FileUploadOptions + VirtualNetwork = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork + PolicyEvaluatorType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyEvaluatorType ReportingCycleType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ReportingCycleType CostType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostType - HttpStatusCode = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode - PolicyStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus PolicyFactName = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFactName - PolicyEvaluatorType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyEvaluatorType + HttpStatusCode = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode UsagePermissionType = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType + TransportProtocol = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol + Policy = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy + PolicyStatus = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus + Port = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port + Disk = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk end class DevTestLabsManagementClass - attr_reader :provider_operations, :labs, :operations, :global_schedules, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :gallery_images, :notification_channels, :policy_sets, :policies, :schedules, :service_runners, :users, :disks, :environments, :secrets, :virtual_machines, :virtual_machine_schedules, :virtual_networks, :configurable, :base_url, :options, :model_classes + attr_reader :provider_operations, :labs, :global_schedules, :artifact_sources, :arm_templates, :artifacts, :costs, :custom_images, :formulas, :notification_channels, :gallery_images, :policy_sets, :service_runners, :users, :schedules, :environments, :secrets, :virtual_machine_schedules, :virtual_networks, :disks, :virtual_machines, :policies, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -203,7 +203,6 @@ def initialize(configurable, base_url=nil, options=nil) add_telemetry(@client_0) @provider_operations = @client_0.provider_operations @labs = @client_0.labs - @operations = @client_0.operations @global_schedules = @client_0.global_schedules @artifact_sources = @client_0.artifact_sources @arm_templates = @client_0.arm_templates @@ -211,19 +210,20 @@ def initialize(configurable, base_url=nil, options=nil) @costs = @client_0.costs @custom_images = @client_0.custom_images @formulas = @client_0.formulas - @gallery_images = @client_0.gallery_images @notification_channels = @client_0.notification_channels + @gallery_images = @client_0.gallery_images @policy_sets = @client_0.policy_sets - @policies = @client_0.policies - @schedules = @client_0.schedules @service_runners = @client_0.service_runners @users = @client_0.users - @disks = @client_0.disks + @schedules = @client_0.schedules @environments = @client_0.environments @secrets = @client_0.secrets - @virtual_machines = @client_0.virtual_machines @virtual_machine_schedules = @client_0.virtual_machine_schedules @virtual_networks = @client_0.virtual_networks + @disks = @client_0.disks + @virtual_machines = @client_0.virtual_machines + @policies = @client_0.policies + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -251,9 +251,6 @@ def gallery_image_reference def day_details Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DayDetails end - def inbound_nat_rule - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule - end def notification_settings Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettings end @@ -320,9 +317,6 @@ def artifact_install_properties_fragment def response_with_continuation_lab_vhd Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationLabVhd end - def subnet - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Subnet - end def user_secret_store_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserSecretStoreFragment end @@ -407,9 +401,6 @@ def policy_set_result def subnet_shared_public_ip_address_configuration_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SubnetSharedPublicIpAddressConfigurationFragment end - def event - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event - end def lab_vhd Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVhd end @@ -419,9 +410,6 @@ def day_details_fragment def subnet_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SubnetFragment end - def user_identity - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity - end def shared_public_ip_address_configuration_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SharedPublicIpAddressConfigurationFragment end @@ -446,6 +434,9 @@ def retarget_schedule_properties def bulk_creation_parameters Azure::DevTestLabs::Mgmt::V2016_05_15::Models::BulkCreationParameters end + def user_identity + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserIdentity + end def response_with_continuation_virtual_network Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationVirtualNetwork end @@ -494,9 +485,6 @@ def subnet_shared_public_ip_address_configuration def apply_artifacts_request Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplyArtifactsRequest end - def port - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port - end def artifact_parameter_properties_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactParameterPropertiesFragment end @@ -509,9 +497,6 @@ def provider_operation_result def cost_threshold_properties Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdProperties end - def resource - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Resource - end def detach_disk_properties Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DetachDiskProperties end @@ -524,80 +509,77 @@ def evaluate_policies_response def response_with_continuation_artifact Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifact end - def arm_template_parameter_properties - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplateParameterProperties + def resource + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Resource end def response_with_continuation_artifact_source Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationArtifactSource end - def compute_vm_instance_view_status_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatusFragment + def arm_template_parameter_properties + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplateParameterProperties end def response_with_continuation_custom_image Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationCustomImage end - def evaluate_policies_properties - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties + def compute_vm_instance_view_status_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ComputeVmInstanceViewStatusFragment end def response_with_continuation_disk Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDisk end - def attach_disk_properties - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties + def evaluate_policies_properties + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EvaluatePoliciesProperties end def response_with_continuation_dtl_environment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationDtlEnvironment end - def notification_settings_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettingsFragment + def attach_disk_properties + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties end def response_with_continuation_formula Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationFormula end - def custom_image_properties_custom - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom + def notification_settings_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationSettingsFragment end def response_with_continuation_gallery_image Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ResponseWithContinuationGalleryImage end - def schedule - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule - end - def applicable_schedule - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableSchedule + def custom_image_properties_custom + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImagePropertiesCustom end def schedule_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment end - def applicable_schedule_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableScheduleFragment + def applicable_schedule + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableSchedule end def arm_template Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArmTemplate end - def artifact - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact + def applicable_schedule_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplicableScheduleFragment end def artifact_source Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSource end - def artifact_source_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment + def artifact + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Artifact end def custom_image Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage end - def disk - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk - end - def dtl_environment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment + def schedule + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule end def formula Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Formula end - def gallery_image - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage + def dtl_environment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment + end + def artifact_source_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ArtifactSourceFragment end def lab Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Lab @@ -608,38 +590,50 @@ def lab_cost def lab_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabFragment end - def lab_virtual_machine - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine + def inbound_nat_rule + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::InboundNatRule end def lab_virtual_machine_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineFragment end + def event + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Event + end + def lab_virtual_machine + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine + end + def policy_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment + end def notification_channel Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannel end def notification_channel_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelFragment end - def policy - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy - end - def policy_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFragment + def user_fragment + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserFragment end - def secret - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Secret + def subnet + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Subnet end def service_runner Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ServiceRunner end - def user - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User + def notification_status + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationStatus end - def virtual_network - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork + def gallery_image + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GalleryImage end - def user_fragment - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UserFragment + def secret + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Secret + end + def cost_threshold_status + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdStatus + end + def source_control_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType end def virtual_network_fragment Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetworkFragment @@ -647,20 +641,20 @@ def virtual_network_fragment def enable_status Azure::DevTestLabs::Mgmt::V2016_05_15::Models::EnableStatus end - def notification_status - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationStatus + def windows_os_state + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState end - def source_control_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::SourceControlType + def user + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::User end def storage_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::StorageType end - def cost_threshold_status - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostThresholdStatus + def host_caching_options + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HostCachingOptions end - def windows_os_state - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::WindowsOsState + def notification_channel_event_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelEventType end def linux_os_state Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LinuxOsState @@ -668,14 +662,11 @@ def linux_os_state def custom_image_os_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImageOsType end - def host_caching_options - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HostCachingOptions - end - def notification_channel_event_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::NotificationChannelEventType + def premium_data_disk + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PremiumDataDisk end - def transport_protocol - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol + def target_cost_status + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TargetCostStatus end def virtual_machine_creation_source Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualMachineCreationSource @@ -683,11 +674,11 @@ def virtual_machine_creation_source def file_upload_options Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FileUploadOptions end - def premium_data_disk - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PremiumDataDisk + def virtual_network + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::VirtualNetwork end - def target_cost_status - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TargetCostStatus + def policy_evaluator_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyEvaluatorType end def reporting_cycle_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ReportingCycleType @@ -695,20 +686,29 @@ def reporting_cycle_type def cost_type Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CostType end + def policy_fact_name + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFactName + end def http_status_code Azure::DevTestLabs::Mgmt::V2016_05_15::Models::HttpStatusCode end + def usage_permission_type + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType + end + def transport_protocol + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::TransportProtocol + end + def policy + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy + end def policy_status Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyStatus end - def policy_fact_name - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyFactName - end - def policy_evaluator_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::PolicyEvaluatorType + def port + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Port end - def usage_permission_type - Azure::DevTestLabs::Mgmt::V2016_05_15::Models::UsagePermissionType + def disk + Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk end end end diff --git a/azure_sdk/lib/latest/modules/dns_profile_module.rb b/azure_sdk/lib/latest/modules/dns_profile_module.rb index c6bcada226..9f9509d79f 100644 --- a/azure_sdk/lib/latest/modules/dns_profile_module.rb +++ b/azure_sdk/lib/latest/modules/dns_profile_module.rb @@ -11,6 +11,16 @@ module Mgmt Zones = Azure::Dns::Mgmt::V2018_03_01_preview::Zones module Models + ZoneUpdate = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate + TxtRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::TxtRecord + ZoneListResult = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneListResult + SubResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource + PtrRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::PtrRecord + ARecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord + Zone = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Zone + ZoneType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType + Resource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource + RecordType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordType CaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord RecordSet = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSet AaaaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::AaaaRecord @@ -18,19 +28,9 @@ module Models NsRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::NsRecord RecordSetListResult = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordSetListResult SrvRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SrvRecord - SubResource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource CnameRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::CnameRecord SoaRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::SoaRecord MxRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::MxRecord - ZoneUpdate = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate - TxtRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::TxtRecord - ZoneListResult = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneListResult - PtrRecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::PtrRecord - Resource = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource - ARecord = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord - Zone = Azure::Dns::Mgmt::V2018_03_01_preview::Models::Zone - ZoneType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType - RecordType = Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordType end class DnsManagementClass @@ -64,6 +64,36 @@ def method_missing(method, *args) end class ModelClasses + def zone_update + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate + end + def txt_record + Azure::Dns::Mgmt::V2018_03_01_preview::Models::TxtRecord + end + def zone_list_result + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneListResult + end + def sub_resource + Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource + end + def ptr_record + Azure::Dns::Mgmt::V2018_03_01_preview::Models::PtrRecord + end + def arecord + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord + end + def zone + Azure::Dns::Mgmt::V2018_03_01_preview::Models::Zone + end + def zone_type + Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType + end + def resource + Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource + end + def record_type + Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordType + end def caa_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::CaaRecord end @@ -85,9 +115,6 @@ def record_set_list_result def srv_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::SrvRecord end - def sub_resource - Azure::Dns::Mgmt::V2018_03_01_preview::Models::SubResource - end def cname_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::CnameRecord end @@ -97,33 +124,6 @@ def soa_record def mx_record Azure::Dns::Mgmt::V2018_03_01_preview::Models::MxRecord end - def zone_update - Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneUpdate - end - def txt_record - Azure::Dns::Mgmt::V2018_03_01_preview::Models::TxtRecord - end - def zone_list_result - Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneListResult - end - def ptr_record - Azure::Dns::Mgmt::V2018_03_01_preview::Models::PtrRecord - end - def resource - Azure::Dns::Mgmt::V2018_03_01_preview::Models::Resource - end - def arecord - Azure::Dns::Mgmt::V2018_03_01_preview::Models::ARecord - end - def zone - Azure::Dns::Mgmt::V2018_03_01_preview::Models::Zone - end - def zone_type - Azure::Dns::Mgmt::V2018_03_01_preview::Models::ZoneType - end - def record_type - Azure::Dns::Mgmt::V2018_03_01_preview::Models::RecordType - end end end end diff --git a/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb b/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb index 17698e5897..67b58f2774 100644 --- a/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb @@ -9,26 +9,32 @@ module EntitySearch EntitiesOperations = Azure::CognitiveServices::EntitySearch::V1_0::EntitiesOperations module Models + ResponseFormat = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat + Restaurant = Azure::CognitiveServices::EntitySearch::V1_0::Models::Restaurant + Response = Azure::CognitiveServices::EntitySearch::V1_0::Models::Response + EntityType = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType + Error = Azure::CognitiveServices::EntitySearch::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse ResponseBase = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase QueryContext = Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext + SearchResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse + SearchResultsAnswer = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer + Identifiable = Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable + Answer = Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer + Thing = Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork + ErrorCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode + ErrorSubCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode + SafeSearch = Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch ContractualRulesContractualRule = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule EntitiesEntityPresentationInfo = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo - Error = Azure::CognitiveServices::EntitySearch::V1_0::Models::Error ImageObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::ImageObject - Response = Azure::CognitiveServices::EntitySearch::V1_0::Models::Response - Thing = Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing - SearchResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse - Answer = Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer - SearchResultsAnswer = Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer Entities = Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities Places = Azure::CognitiveServices::EntitySearch::V1_0::Models::Places - Identifiable = Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable - ErrorResponse = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse PostalAddress = Azure::CognitiveServices::EntitySearch::V1_0::Models::PostalAddress - Place = Azure::CognitiveServices::EntitySearch::V1_0::Models::Place Organization = Azure::CognitiveServices::EntitySearch::V1_0::Models::Organization - CreativeWork = Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork Intangible = Azure::CognitiveServices::EntitySearch::V1_0::Models::Intangible + Place = Azure::CognitiveServices::EntitySearch::V1_0::Models::Place ContractualRulesAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution MediaObject = Azure::CognitiveServices::EntitySearch::V1_0::Models::MediaObject CivicStructure = Azure::CognitiveServices::EntitySearch::V1_0::Models::CivicStructure @@ -45,16 +51,10 @@ module Models ContractualRulesTextAttribution = Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesTextAttribution FoodEstablishment = Azure::CognitiveServices::EntitySearch::V1_0::Models::FoodEstablishment LodgingBusiness = Azure::CognitiveServices::EntitySearch::V1_0::Models::LodgingBusiness - Restaurant = Azure::CognitiveServices::EntitySearch::V1_0::Models::Restaurant Hotel = Azure::CognitiveServices::EntitySearch::V1_0::Models::Hotel EntityQueryScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityQueryScenario EntityScenario = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario - EntityType = Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType - ErrorCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode AnswerType = Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType - ResponseFormat = Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat - SafeSearch = Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch end class EntitySearchDataClass @@ -87,38 +87,65 @@ def method_missing(method, *args) end class ModelClasses - def response_base - Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase + def response_format + Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat end - def query_context - Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext + def restaurant + Azure::CognitiveServices::EntitySearch::V1_0::Models::Restaurant end - def contractual_rules_contractual_rule - Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule + def response + Azure::CognitiveServices::EntitySearch::V1_0::Models::Response end - def entities_entity_presentation_info - Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo + def entity_type + Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType end def error Azure::CognitiveServices::EntitySearch::V1_0::Models::Error end - def image_object - Azure::CognitiveServices::EntitySearch::V1_0::Models::ImageObject + def error_response + Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse end - def response - Azure::CognitiveServices::EntitySearch::V1_0::Models::Response + def response_base + Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase end - def thing - Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing + def query_context + Azure::CognitiveServices::EntitySearch::V1_0::Models::QueryContext end def search_response Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResponse end + def search_results_answer + Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer + end + def identifiable + Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable + end def answer Azure::CognitiveServices::EntitySearch::V1_0::Models::Answer end - def search_results_answer - Azure::CognitiveServices::EntitySearch::V1_0::Models::SearchResultsAnswer + def thing + Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing + end + def creative_work + Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork + end + def error_code + Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode + end + def error_sub_code + Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode + end + def safe_search + Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch + end + def contractual_rules_contractual_rule + Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesContractualRule + end + def entities_entity_presentation_info + Azure::CognitiveServices::EntitySearch::V1_0::Models::EntitiesEntityPresentationInfo + end + def image_object + Azure::CognitiveServices::EntitySearch::V1_0::Models::ImageObject end def entities Azure::CognitiveServices::EntitySearch::V1_0::Models::Entities @@ -126,27 +153,18 @@ def entities def places Azure::CognitiveServices::EntitySearch::V1_0::Models::Places end - def identifiable - Azure::CognitiveServices::EntitySearch::V1_0::Models::Identifiable - end - def error_response - Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorResponse - end def postal_address Azure::CognitiveServices::EntitySearch::V1_0::Models::PostalAddress end - def place - Azure::CognitiveServices::EntitySearch::V1_0::Models::Place - end def organization Azure::CognitiveServices::EntitySearch::V1_0::Models::Organization end - def creative_work - Azure::CognitiveServices::EntitySearch::V1_0::Models::CreativeWork - end def intangible Azure::CognitiveServices::EntitySearch::V1_0::Models::Intangible end + def place + Azure::CognitiveServices::EntitySearch::V1_0::Models::Place + end def contractual_rules_attribution Azure::CognitiveServices::EntitySearch::V1_0::Models::ContractualRulesAttribution end @@ -195,9 +213,6 @@ def food_establishment def lodging_business Azure::CognitiveServices::EntitySearch::V1_0::Models::LodgingBusiness end - def restaurant - Azure::CognitiveServices::EntitySearch::V1_0::Models::Restaurant - end def hotel Azure::CognitiveServices::EntitySearch::V1_0::Models::Hotel end @@ -207,24 +222,9 @@ def entity_query_scenario def entity_scenario Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityScenario end - def entity_type - Azure::CognitiveServices::EntitySearch::V1_0::Models::EntityType - end - def error_code - Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorCode - end - def error_sub_code - Azure::CognitiveServices::EntitySearch::V1_0::Models::ErrorSubCode - end def answer_type Azure::CognitiveServices::EntitySearch::V1_0::Models::AnswerType end - def response_format - Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseFormat - end - def safe_search - Azure::CognitiveServices::EntitySearch::V1_0::Models::SafeSearch - end end end end diff --git a/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb b/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb index 95abdc050e..75482962ed 100644 --- a/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb @@ -9,8 +9,6 @@ module Azure::Profiles::Latest module EventGrid module Models - DeviceTwinMetadata = Azure::EventGrid::V2018_01_01::Models::DeviceTwinMetadata - DeviceTwinProperties = Azure::EventGrid::V2018_01_01::Models::DeviceTwinProperties StorageBlobDeletedEventData = Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData DeviceTwinInfoProperties = Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfoProperties ResourceWriteSuccessData = Azure::EventGrid::V2018_01_01::Models::ResourceWriteSuccessData @@ -45,6 +43,8 @@ module Models ContainerRegistryImagePushedEventData = Azure::EventGrid::V2018_01_01::Models::ContainerRegistryImagePushedEventData ContainerRegistryImageDeletedEventData = Azure::EventGrid::V2018_01_01::Models::ContainerRegistryImageDeletedEventData JobState = Azure::EventGrid::V2018_01_01::Models::JobState + DeviceTwinMetadata = Azure::EventGrid::V2018_01_01::Models::DeviceTwinMetadata + DeviceTwinProperties = Azure::EventGrid::V2018_01_01::Models::DeviceTwinProperties end class EventGridDataClass @@ -76,12 +76,6 @@ def method_missing(method, *args) end class ModelClasses - def device_twin_metadata - Azure::EventGrid::V2018_01_01::Models::DeviceTwinMetadata - end - def device_twin_properties - Azure::EventGrid::V2018_01_01::Models::DeviceTwinProperties - end def storage_blob_deleted_event_data Azure::EventGrid::V2018_01_01::Models::StorageBlobDeletedEventData end @@ -184,17 +178,34 @@ def container_registry_image_deleted_event_data def job_state Azure::EventGrid::V2018_01_01::Models::JobState end + def device_twin_metadata + Azure::EventGrid::V2018_01_01::Models::DeviceTwinMetadata + end + def device_twin_properties + Azure::EventGrid::V2018_01_01::Models::DeviceTwinProperties + end end end module Mgmt - EventSubscriptions = Azure::EventGrid::Mgmt::V2018_05_01_preview::EventSubscriptions Operations = Azure::EventGrid::Mgmt::V2018_05_01_preview::Operations + EventSubscriptions = Azure::EventGrid::Mgmt::V2018_05_01_preview::EventSubscriptions Topics = Azure::EventGrid::Mgmt::V2018_05_01_preview::Topics TopicTypes = Azure::EventGrid::Mgmt::V2018_05_01_preview::TopicTypes module Models + Topic = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Topic + EventType = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventType + TopicTypeInfo = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeInfo + EventSubscriptionProvisioningState = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionProvisioningState Operation = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Operation + EventDeliverySchema = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventDeliverySchema + TopicProvisioningState = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicProvisioningState + InputSchema = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::InputSchema + ResourceRegionType = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::ResourceRegionType + TopicTypeProvisioningState = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeProvisioningState + TrackedResource = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TrackedResource OperationsListResult = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::OperationsListResult + Resource = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Resource EventSubscriptionFilter = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionFilter InputSchemaMapping = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::InputSchemaMapping DeadLetterDestination = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::DeadLetterDestination @@ -206,7 +217,6 @@ module Models TopicSharedAccessKeys = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicSharedAccessKeys RetryPolicy = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::RetryPolicy EventSubscriptionFullUrl = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionFullUrl - Resource = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Resource TopicRegenerateKeyRequest = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicRegenerateKeyRequest TopicsListResult = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicsListResult TopicTypesListResult = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypesListResult @@ -220,20 +230,10 @@ module Models HybridConnectionEventSubscriptionDestination = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::HybridConnectionEventSubscriptionDestination EventSubscription = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscription JsonInputSchemaMapping = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::JsonInputSchemaMapping - TrackedResource = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TrackedResource - Topic = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Topic - EventType = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventType - TopicTypeInfo = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeInfo - EventSubscriptionProvisioningState = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionProvisioningState - EventDeliverySchema = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventDeliverySchema - TopicProvisioningState = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicProvisioningState - InputSchema = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::InputSchema - ResourceRegionType = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::ResourceRegionType - TopicTypeProvisioningState = Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeProvisioningState end class EventGridManagementClass - attr_reader :event_subscriptions, :operations, :topics, :topic_types, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :event_subscriptions, :topics, :topic_types, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -243,8 +243,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @event_subscriptions = @client_0.event_subscriptions @operations = @client_0.operations + @event_subscriptions = @client_0.event_subscriptions @topics = @client_0.topics @topic_types = @client_0.topic_types @@ -265,12 +265,45 @@ def method_missing(method, *args) end class ModelClasses + def topic + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Topic + end + def event_type + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventType + end + def topic_type_info + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeInfo + end + def event_subscription_provisioning_state + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionProvisioningState + end def operation Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Operation end + def event_delivery_schema + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventDeliverySchema + end + def topic_provisioning_state + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicProvisioningState + end + def input_schema + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::InputSchema + end + def resource_region_type + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::ResourceRegionType + end + def topic_type_provisioning_state + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeProvisioningState + end + def tracked_resource + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TrackedResource + end def operations_list_result Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::OperationsListResult end + def resource + Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Resource + end def event_subscription_filter Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionFilter end @@ -304,9 +337,6 @@ def retry_policy def event_subscription_full_url Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionFullUrl end - def resource - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Resource - end def topic_regenerate_key_request Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicRegenerateKeyRequest end @@ -346,36 +376,6 @@ def event_subscription def json_input_schema_mapping Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::JsonInputSchemaMapping end - def tracked_resource - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TrackedResource - end - def topic - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::Topic - end - def event_type - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventType - end - def topic_type_info - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeInfo - end - def event_subscription_provisioning_state - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventSubscriptionProvisioningState - end - def event_delivery_schema - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventDeliverySchema - end - def topic_provisioning_state - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicProvisioningState - end - def input_schema - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::InputSchema - end - def resource_region_type - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::ResourceRegionType - end - def topic_type_provisioning_state - Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::TopicTypeProvisioningState - end end end end diff --git a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb index a5450d9115..0df74d33fc 100644 --- a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb @@ -7,36 +7,36 @@ module Azure::Profiles::Latest module EventHub module Mgmt - Operations = Azure::EventHub::Mgmt::V2018_01_01_preview::Operations - Clusters = Azure::EventHub::Mgmt::V2018_01_01_preview::Clusters Configuration = Azure::EventHub::Mgmt::V2018_01_01_preview::Configuration Namespaces = Azure::EventHub::Mgmt::V2018_01_01_preview::Namespaces + Operations = Azure::EventHub::Mgmt::V2018_01_01_preview::Operations + Clusters = Azure::EventHub::Mgmt::V2018_01_01_preview::Clusters module Models - ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties - OperationDisplay = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay - ErrorResponse = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse - OperationListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult - VirtualNetworkRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult - Resource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource Operation = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation Sku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku + ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties ClusterListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult IpFilterRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRuleListResult ClusterSku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterSku EHNamespaceListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult - TrackedResource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource Cluster = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster + TrackedResource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource EHNamespace = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace IpFilterRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule - VirtualNetworkRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule + IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction + OperationDisplay = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay + OperationListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult + VirtualNetworkRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult + Resource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource SkuName = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName + VirtualNetworkRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule SkuTier = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier - IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction + ErrorResponse = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse end class EventHubManagementClass - attr_reader :operations, :clusters, :configuration, :namespaces, :configurable, :base_url, :options, :model_classes + attr_reader :configuration, :namespaces, :operations, :clusters, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -46,10 +46,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations - @clusters = @client_0.clusters @configuration = @client_0.configuration @namespaces = @client_0.namespaces + @operations = @client_0.operations + @clusters = @client_0.clusters @model_classes = ModelClasses.new end @@ -68,30 +68,15 @@ def method_missing(method, *args) end class ModelClasses - def cluster_quota_configuration_properties - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties - end - def operation_display - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay - end - def error_response - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse - end - def operation_list_result - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult - end - def virtual_network_rule_list_result - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult - end - def resource - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource - end def operation Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation end def sku Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku end + def cluster_quota_configuration_properties + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties + end def cluster_list_result Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult end @@ -104,29 +89,44 @@ def cluster_sku def ehnamespace_list_result Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult end - def tracked_resource - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource - end def cluster Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster end + def tracked_resource + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource + end def ehnamespace Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace end def ip_filter_rule Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule end - def virtual_network_rule - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule + def ipaction + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction + end + def operation_display + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay + end + def operation_list_result + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult + end + def virtual_network_rule_list_result + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult + end + def resource + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource end def sku_name Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName end + def virtual_network_rule + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule + end def sku_tier Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier end - def ipaction - Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction + def error_response + Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/face_profile_module.rb b/azure_sdk/lib/latest/modules/face_profile_module.rb index 49fe08428f..061948feb2 100644 --- a/azure_sdk/lib/latest/modules/face_profile_module.rb +++ b/azure_sdk/lib/latest/modules/face_profile_module.rb @@ -6,16 +6,15 @@ module Azure::Profiles::Latest module Face - Face = Azure::CognitiveServices::Face::V1_0::Face + FaceListOperations = Azure::CognitiveServices::Face::V1_0::FaceListOperations PersonGroupPerson = Azure::CognitiveServices::Face::V1_0::PersonGroupPerson + Face = Azure::CognitiveServices::Face::V1_0::Face PersonGroupOperations = Azure::CognitiveServices::Face::V1_0::PersonGroupOperations - FaceListOperations = Azure::CognitiveServices::Face::V1_0::FaceListOperations module Models + APIError = Azure::CognitiveServices::Face::V1_0::Models::APIError FindSimilarRequest = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarRequest - Error = Azure::CognitiveServices::Face::V1_0::Models::Error SimilarFace = Azure::CognitiveServices::Face::V1_0::Models::SimilarFace - FaceRectangle = Azure::CognitiveServices::Face::V1_0::Models::FaceRectangle GroupRequest = Azure::CognitiveServices::Face::V1_0::Models::GroupRequest FaceLandmarks = Azure::CognitiveServices::Face::V1_0::Models::FaceLandmarks GroupResult = Azure::CognitiveServices::Face::V1_0::Models::GroupResult @@ -29,27 +28,27 @@ module Models VerifyFaceToPersonRequest = Azure::CognitiveServices::Face::V1_0::Models::VerifyFaceToPersonRequest Exposure = Azure::CognitiveServices::Face::V1_0::Models::Exposure VerifyFaceToFaceRequest = Azure::CognitiveServices::Face::V1_0::Models::VerifyFaceToFaceRequest + FaceRectangle = Azure::CognitiveServices::Face::V1_0::Models::FaceRectangle FaceAttributes = Azure::CognitiveServices::Face::V1_0::Models::FaceAttributes VerifyResult = Azure::CognitiveServices::Face::V1_0::Models::VerifyResult - APIError = Azure::CognitiveServices::Face::V1_0::Models::APIError PersistedFace = Azure::CognitiveServices::Face::V1_0::Models::PersistedFace FacialHair = Azure::CognitiveServices::Face::V1_0::Models::FacialHair Coordinate = Azure::CognitiveServices::Face::V1_0::Models::Coordinate Emotion = Azure::CognitiveServices::Face::V1_0::Models::Emotion Occlusion = Azure::CognitiveServices::Face::V1_0::Models::Occlusion Noise = Azure::CognitiveServices::Face::V1_0::Models::Noise - ImageUrl = Azure::CognitiveServices::Face::V1_0::Models::ImageUrl Hair = Azure::CognitiveServices::Face::V1_0::Models::Hair NameAndUserDataContract = Azure::CognitiveServices::Face::V1_0::Models::NameAndUserDataContract - DetectedFace = Azure::CognitiveServices::Face::V1_0::Models::DetectedFace + ImageUrl = Azure::CognitiveServices::Face::V1_0::Models::ImageUrl UpdatePersonFaceRequest = Azure::CognitiveServices::Face::V1_0::Models::UpdatePersonFaceRequest - Blur = Azure::CognitiveServices::Face::V1_0::Models::Blur + DetectedFace = Azure::CognitiveServices::Face::V1_0::Models::DetectedFace TrainingStatus = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus - FaceList = Azure::CognitiveServices::Face::V1_0::Models::FaceList + Blur = Azure::CognitiveServices::Face::V1_0::Models::Blur PersonGroup = Azure::CognitiveServices::Face::V1_0::Models::PersonGroup + FaceList = Azure::CognitiveServices::Face::V1_0::Models::FaceList + GlassesType = Azure::CognitiveServices::Face::V1_0::Models::GlassesType Person = Azure::CognitiveServices::Face::V1_0::Models::Person Gender = Azure::CognitiveServices::Face::V1_0::Models::Gender - GlassesType = Azure::CognitiveServices::Face::V1_0::Models::GlassesType HairColorType = Azure::CognitiveServices::Face::V1_0::Models::HairColorType AccessoryType = Azure::CognitiveServices::Face::V1_0::Models::AccessoryType BlurLevel = Azure::CognitiveServices::Face::V1_0::Models::BlurLevel @@ -58,10 +57,11 @@ module Models FindSimilarMatchMode = Azure::CognitiveServices::Face::V1_0::Models::FindSimilarMatchMode TrainingStatusType = Azure::CognitiveServices::Face::V1_0::Models::TrainingStatusType FaceAttributeType = Azure::CognitiveServices::Face::V1_0::Models::FaceAttributeType + Error = Azure::CognitiveServices::Face::V1_0::Models::Error end class FaceDataClass - attr_reader :face, :person_group_person, :person_group_operations, :face_list_operations, :configurable, :base_url, :options, :model_classes + attr_reader :face_list_operations, :person_group_person, :face, :person_group_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -71,10 +71,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @face = @client_0.face + @face_list_operations = @client_0.face_list_operations @person_group_person = @client_0.person_group_person + @face = @client_0.face @person_group_operations = @client_0.person_group_operations - @face_list_operations = @client_0.face_list_operations @model_classes = ModelClasses.new end @@ -93,18 +93,15 @@ def method_missing(method, *args) end class ModelClasses + def apierror + Azure::CognitiveServices::Face::V1_0::Models::APIError + end def find_similar_request Azure::CognitiveServices::Face::V1_0::Models::FindSimilarRequest end - def error - Azure::CognitiveServices::Face::V1_0::Models::Error - end def similar_face Azure::CognitiveServices::Face::V1_0::Models::SimilarFace end - def face_rectangle - Azure::CognitiveServices::Face::V1_0::Models::FaceRectangle - end def group_request Azure::CognitiveServices::Face::V1_0::Models::GroupRequest end @@ -144,15 +141,15 @@ def exposure def verify_face_to_face_request Azure::CognitiveServices::Face::V1_0::Models::VerifyFaceToFaceRequest end + def face_rectangle + Azure::CognitiveServices::Face::V1_0::Models::FaceRectangle + end def face_attributes Azure::CognitiveServices::Face::V1_0::Models::FaceAttributes end def verify_result Azure::CognitiveServices::Face::V1_0::Models::VerifyResult end - def apierror - Azure::CognitiveServices::Face::V1_0::Models::APIError - end def persisted_face Azure::CognitiveServices::Face::V1_0::Models::PersistedFace end @@ -171,42 +168,42 @@ def occlusion def noise Azure::CognitiveServices::Face::V1_0::Models::Noise end - def image_url - Azure::CognitiveServices::Face::V1_0::Models::ImageUrl - end def hair Azure::CognitiveServices::Face::V1_0::Models::Hair end def name_and_user_data_contract Azure::CognitiveServices::Face::V1_0::Models::NameAndUserDataContract end - def detected_face - Azure::CognitiveServices::Face::V1_0::Models::DetectedFace + def image_url + Azure::CognitiveServices::Face::V1_0::Models::ImageUrl end def update_person_face_request Azure::CognitiveServices::Face::V1_0::Models::UpdatePersonFaceRequest end - def blur - Azure::CognitiveServices::Face::V1_0::Models::Blur + def detected_face + Azure::CognitiveServices::Face::V1_0::Models::DetectedFace end def training_status Azure::CognitiveServices::Face::V1_0::Models::TrainingStatus end - def face_list - Azure::CognitiveServices::Face::V1_0::Models::FaceList + def blur + Azure::CognitiveServices::Face::V1_0::Models::Blur end def person_group Azure::CognitiveServices::Face::V1_0::Models::PersonGroup end + def face_list + Azure::CognitiveServices::Face::V1_0::Models::FaceList + end + def glasses_type + Azure::CognitiveServices::Face::V1_0::Models::GlassesType + end def person Azure::CognitiveServices::Face::V1_0::Models::Person end def gender Azure::CognitiveServices::Face::V1_0::Models::Gender end - def glasses_type - Azure::CognitiveServices::Face::V1_0::Models::GlassesType - end def hair_color_type Azure::CognitiveServices::Face::V1_0::Models::HairColorType end @@ -231,6 +228,9 @@ def training_status_type def face_attribute_type Azure::CognitiveServices::Face::V1_0::Models::FaceAttributeType end + def error + Azure::CognitiveServices::Face::V1_0::Models::Error + end end end end diff --git a/azure_sdk/lib/latest/modules/features_profile_module.rb b/azure_sdk/lib/latest/modules/features_profile_module.rb index 86a88b23db..e88e117e8b 100644 --- a/azure_sdk/lib/latest/modules/features_profile_module.rb +++ b/azure_sdk/lib/latest/modules/features_profile_module.rb @@ -10,9 +10,9 @@ module Mgmt Features = Azure::Features::Mgmt::V2015_12_01::Features module Models + FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult - FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties end class FeaturesManagementClass @@ -45,15 +45,15 @@ def method_missing(method, *args) end class ModelClasses + def feature_properties + Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties + end def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult end def feature_operations_list_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult end - def feature_properties - Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties - end end end end diff --git a/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb b/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb index fada59715e..e0462e7690 100644 --- a/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb +++ b/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb @@ -6,60 +6,60 @@ module Azure::Profiles::Latest module GraphRbac - Objects = Azure::GraphRbac::V1_6::Objects Applications = Azure::GraphRbac::V1_6::Applications Groups = Azure::GraphRbac::V1_6::Groups ServicePrincipals = Azure::GraphRbac::V1_6::ServicePrincipals Users = Azure::GraphRbac::V1_6::Users Domains = Azure::GraphRbac::V1_6::Domains + Objects = Azure::GraphRbac::V1_6::Objects module Models + RequiredResourceAccess = Azure::GraphRbac::V1_6::Models::RequiredResourceAccess + GetObjectsParameters = Azure::GraphRbac::V1_6::Models::GetObjectsParameters + PasswordCredentialListResult = Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult + SignInName = Azure::GraphRbac::V1_6::Models::SignInName + ApplicationAddOwnerParameters = Azure::GraphRbac::V1_6::Models::ApplicationAddOwnerParameters + UserListResult = Azure::GraphRbac::V1_6::Models::UserListResult + DirectoryObject = Azure::GraphRbac::V1_6::Models::DirectoryObject + UserGetMemberGroupsParameters = Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsParameters + ADGroup = Azure::GraphRbac::V1_6::Models::ADGroup + ServicePrincipal = Azure::GraphRbac::V1_6::Models::ServicePrincipal + Application = Azure::GraphRbac::V1_6::Models::Application + UserUpdateParameters = Azure::GraphRbac::V1_6::Models::UserUpdateParameters + UserType = Azure::GraphRbac::V1_6::Models::UserType + UserCreateParameters = Azure::GraphRbac::V1_6::Models::UserCreateParameters + User = Azure::GraphRbac::V1_6::Models::User GroupAddMemberParameters = Azure::GraphRbac::V1_6::Models::GroupAddMemberParameters GraphError = Azure::GraphRbac::V1_6::Models::GraphError - GroupCreateParameters = Azure::GraphRbac::V1_6::Models::GroupCreateParameters KeyCredential = Azure::GraphRbac::V1_6::Models::KeyCredential ResourceAccess = Azure::GraphRbac::V1_6::Models::ResourceAccess GroupListResult = Azure::GraphRbac::V1_6::Models::GroupListResult - ApplicationCreateParameters = Azure::GraphRbac::V1_6::Models::ApplicationCreateParameters GroupGetMemberGroupsParameters = Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsParameters UserGetMemberGroupsResult = Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsResult - ApplicationListResult = Azure::GraphRbac::V1_6::Models::ApplicationListResult + GroupCreateParameters = Azure::GraphRbac::V1_6::Models::GroupCreateParameters + ApplicationCreateParameters = Azure::GraphRbac::V1_6::Models::ApplicationCreateParameters GroupGetMemberGroupsResult = Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsResult - KeyCredentialListResult = Azure::GraphRbac::V1_6::Models::KeyCredentialListResult + ApplicationListResult = Azure::GraphRbac::V1_6::Models::ApplicationListResult CheckGroupMembershipParameters = Azure::GraphRbac::V1_6::Models::CheckGroupMembershipParameters - KeyCredentialsUpdateParameters = Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters + KeyCredentialListResult = Azure::GraphRbac::V1_6::Models::KeyCredentialListResult CheckGroupMembershipResult = Azure::GraphRbac::V1_6::Models::CheckGroupMembershipResult - PasswordCredentialsUpdateParameters = Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters + KeyCredentialsUpdateParameters = Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters ServicePrincipalCreateParameters = Azure::GraphRbac::V1_6::Models::ServicePrincipalCreateParameters - GetObjectsResult = Azure::GraphRbac::V1_6::Models::GetObjectsResult + PasswordCredentialsUpdateParameters = Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters DomainListResult = Azure::GraphRbac::V1_6::Models::DomainListResult - PasswordCredential = Azure::GraphRbac::V1_6::Models::PasswordCredential + GetObjectsResult = Azure::GraphRbac::V1_6::Models::GetObjectsResult ServicePrincipalListResult = Azure::GraphRbac::V1_6::Models::ServicePrincipalListResult - ApplicationUpdateParameters = Azure::GraphRbac::V1_6::Models::ApplicationUpdateParameters - PasswordProfile = Azure::GraphRbac::V1_6::Models::PasswordProfile + PasswordCredential = Azure::GraphRbac::V1_6::Models::PasswordCredential DirectoryObjectListResult = Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult - UserBase = Azure::GraphRbac::V1_6::Models::UserBase + ApplicationUpdateParameters = Azure::GraphRbac::V1_6::Models::ApplicationUpdateParameters AADObject = Azure::GraphRbac::V1_6::Models::AADObject + UserBase = Azure::GraphRbac::V1_6::Models::UserBase + PasswordProfile = Azure::GraphRbac::V1_6::Models::PasswordProfile Domain = Azure::GraphRbac::V1_6::Models::Domain - RequiredResourceAccess = Azure::GraphRbac::V1_6::Models::RequiredResourceAccess - GetObjectsParameters = Azure::GraphRbac::V1_6::Models::GetObjectsParameters - PasswordCredentialListResult = Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult - SignInName = Azure::GraphRbac::V1_6::Models::SignInName - ApplicationAddOwnerParameters = Azure::GraphRbac::V1_6::Models::ApplicationAddOwnerParameters - UserListResult = Azure::GraphRbac::V1_6::Models::UserListResult - DirectoryObject = Azure::GraphRbac::V1_6::Models::DirectoryObject - UserGetMemberGroupsParameters = Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsParameters - Application = Azure::GraphRbac::V1_6::Models::Application - ADGroup = Azure::GraphRbac::V1_6::Models::ADGroup - ServicePrincipal = Azure::GraphRbac::V1_6::Models::ServicePrincipal - UserCreateParameters = Azure::GraphRbac::V1_6::Models::UserCreateParameters - UserUpdateParameters = Azure::GraphRbac::V1_6::Models::UserUpdateParameters - User = Azure::GraphRbac::V1_6::Models::User - UserType = Azure::GraphRbac::V1_6::Models::UserType end class GraphRbacDataClass - attr_reader :objects, :applications, :groups, :service_principals, :users, :domains, :configurable, :base_url, :options, :model_classes + attr_reader :applications, :groups, :service_principals, :users, :domains, :objects, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -69,12 +69,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @objects = @client_0.objects @applications = @client_0.applications @groups = @client_0.groups @service_principals = @client_0.service_principals @users = @client_0.users @domains = @client_0.domains + @objects = @client_0.objects @model_classes = ModelClasses.new end @@ -93,15 +93,57 @@ def method_missing(method, *args) end class ModelClasses + def required_resource_access + Azure::GraphRbac::V1_6::Models::RequiredResourceAccess + end + def get_objects_parameters + Azure::GraphRbac::V1_6::Models::GetObjectsParameters + end + def password_credential_list_result + Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult + end + def sign_in_name + Azure::GraphRbac::V1_6::Models::SignInName + end + def application_add_owner_parameters + Azure::GraphRbac::V1_6::Models::ApplicationAddOwnerParameters + end + def user_list_result + Azure::GraphRbac::V1_6::Models::UserListResult + end + def directory_object + Azure::GraphRbac::V1_6::Models::DirectoryObject + end + def user_get_member_groups_parameters + Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsParameters + end + def adgroup + Azure::GraphRbac::V1_6::Models::ADGroup + end + def service_principal + Azure::GraphRbac::V1_6::Models::ServicePrincipal + end + def application + Azure::GraphRbac::V1_6::Models::Application + end + def user_update_parameters + Azure::GraphRbac::V1_6::Models::UserUpdateParameters + end + def user_type + Azure::GraphRbac::V1_6::Models::UserType + end + def user_create_parameters + Azure::GraphRbac::V1_6::Models::UserCreateParameters + end + def user + Azure::GraphRbac::V1_6::Models::User + end def group_add_member_parameters Azure::GraphRbac::V1_6::Models::GroupAddMemberParameters end def graph_error Azure::GraphRbac::V1_6::Models::GraphError end - def group_create_parameters - Azure::GraphRbac::V1_6::Models::GroupCreateParameters - end def key_credential Azure::GraphRbac::V1_6::Models::KeyCredential end @@ -111,113 +153,71 @@ def resource_access def group_list_result Azure::GraphRbac::V1_6::Models::GroupListResult end - def application_create_parameters - Azure::GraphRbac::V1_6::Models::ApplicationCreateParameters - end def group_get_member_groups_parameters Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsParameters end def user_get_member_groups_result Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsResult end - def application_list_result - Azure::GraphRbac::V1_6::Models::ApplicationListResult + def group_create_parameters + Azure::GraphRbac::V1_6::Models::GroupCreateParameters + end + def application_create_parameters + Azure::GraphRbac::V1_6::Models::ApplicationCreateParameters end def group_get_member_groups_result Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsResult end - def key_credential_list_result - Azure::GraphRbac::V1_6::Models::KeyCredentialListResult + def application_list_result + Azure::GraphRbac::V1_6::Models::ApplicationListResult end def check_group_membership_parameters Azure::GraphRbac::V1_6::Models::CheckGroupMembershipParameters end - def key_credentials_update_parameters - Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters + def key_credential_list_result + Azure::GraphRbac::V1_6::Models::KeyCredentialListResult end def check_group_membership_result Azure::GraphRbac::V1_6::Models::CheckGroupMembershipResult end - def password_credentials_update_parameters - Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters + def key_credentials_update_parameters + Azure::GraphRbac::V1_6::Models::KeyCredentialsUpdateParameters end def service_principal_create_parameters Azure::GraphRbac::V1_6::Models::ServicePrincipalCreateParameters end - def get_objects_result - Azure::GraphRbac::V1_6::Models::GetObjectsResult + def password_credentials_update_parameters + Azure::GraphRbac::V1_6::Models::PasswordCredentialsUpdateParameters end def domain_list_result Azure::GraphRbac::V1_6::Models::DomainListResult end - def password_credential - Azure::GraphRbac::V1_6::Models::PasswordCredential + def get_objects_result + Azure::GraphRbac::V1_6::Models::GetObjectsResult end def service_principal_list_result Azure::GraphRbac::V1_6::Models::ServicePrincipalListResult end - def application_update_parameters - Azure::GraphRbac::V1_6::Models::ApplicationUpdateParameters - end - def password_profile - Azure::GraphRbac::V1_6::Models::PasswordProfile + def password_credential + Azure::GraphRbac::V1_6::Models::PasswordCredential end def directory_object_list_result Azure::GraphRbac::V1_6::Models::DirectoryObjectListResult end - def user_base - Azure::GraphRbac::V1_6::Models::UserBase + def application_update_parameters + Azure::GraphRbac::V1_6::Models::ApplicationUpdateParameters end def aadobject Azure::GraphRbac::V1_6::Models::AADObject end - def domain - Azure::GraphRbac::V1_6::Models::Domain - end - def required_resource_access - Azure::GraphRbac::V1_6::Models::RequiredResourceAccess - end - def get_objects_parameters - Azure::GraphRbac::V1_6::Models::GetObjectsParameters - end - def password_credential_list_result - Azure::GraphRbac::V1_6::Models::PasswordCredentialListResult - end - def sign_in_name - Azure::GraphRbac::V1_6::Models::SignInName - end - def application_add_owner_parameters - Azure::GraphRbac::V1_6::Models::ApplicationAddOwnerParameters - end - def user_list_result - Azure::GraphRbac::V1_6::Models::UserListResult - end - def directory_object - Azure::GraphRbac::V1_6::Models::DirectoryObject - end - def user_get_member_groups_parameters - Azure::GraphRbac::V1_6::Models::UserGetMemberGroupsParameters - end - def application - Azure::GraphRbac::V1_6::Models::Application - end - def adgroup - Azure::GraphRbac::V1_6::Models::ADGroup - end - def service_principal - Azure::GraphRbac::V1_6::Models::ServicePrincipal - end - def user_create_parameters - Azure::GraphRbac::V1_6::Models::UserCreateParameters - end - def user_update_parameters - Azure::GraphRbac::V1_6::Models::UserUpdateParameters + def user_base + Azure::GraphRbac::V1_6::Models::UserBase end - def user - Azure::GraphRbac::V1_6::Models::User + def password_profile + Azure::GraphRbac::V1_6::Models::PasswordProfile end - def user_type - Azure::GraphRbac::V1_6::Models::UserType + def domain + Azure::GraphRbac::V1_6::Models::Domain end end end diff --git a/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb b/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb index 5dbb122fb9..a5383d3ad7 100644 --- a/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb @@ -15,58 +15,58 @@ module Models PropertiesItem = Azure::CognitiveServices::ImageSearch::V1_0::Models::PropertiesItem RecognizedEntityGroup = Azure::CognitiveServices::ImageSearch::V1_0::Models::RecognizedEntityGroup TrendingImagesCategory = Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesCategory - Query = Azure::CognitiveServices::ImageSearch::V1_0::Models::Query PivotSuggestions = Azure::CognitiveServices::ImageSearch::V1_0::Models::PivotSuggestions RelatedCollectionsModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::RelatedCollectionsModule ImageTagsModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageTagsModule RecipesModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::RecipesModule ImagesImageMetadata = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImagesImageMetadata ImageInsightsImageCaption = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightsImageCaption - ResponseBase = Azure::CognitiveServices::ImageSearch::V1_0::Models::ResponseBase - Error = Azure::CognitiveServices::ImageSearch::V1_0::Models::Error TrendingImagesTile = Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesTile ImagesModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImagesModule - Thing = Azure::CognitiveServices::ImageSearch::V1_0::Models::Thing - Organization = Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization AggregateRating = Azure::CognitiveServices::ImageSearch::V1_0::Models::AggregateRating Offer = Azure::CognitiveServices::ImageSearch::V1_0::Models::Offer AggregateOffer = Azure::CognitiveServices::ImageSearch::V1_0::Models::AggregateOffer - MediaObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject - ImageObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject - SearchResultsAnswer = Azure::CognitiveServices::ImageSearch::V1_0::Models::SearchResultsAnswer - Images = Azure::CognitiveServices::ImageSearch::V1_0::Models::Images - Identifiable = Azure::CognitiveServices::ImageSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::ImageSearch::V1_0::Models::Response - Answer = Azure::CognitiveServices::ImageSearch::V1_0::Models::Answer - CreativeWork = Azure::CognitiveServices::ImageSearch::V1_0::Models::CreativeWork - ErrorResponse = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorResponse ImageGallery = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageGallery Recipe = Azure::CognitiveServices::ImageSearch::V1_0::Models::Recipe NormalizedRectangle = Azure::CognitiveServices::ImageSearch::V1_0::Models::NormalizedRectangle + Response = Azure::CognitiveServices::ImageSearch::V1_0::Models::Response RecognizedEntity = Azure::CognitiveServices::ImageSearch::V1_0::Models::RecognizedEntity RecognizedEntityRegion = Azure::CognitiveServices::ImageSearch::V1_0::Models::RecognizedEntityRegion - ImageInsights = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsights TrendingImages = Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImages - WebPage = Azure::CognitiveServices::ImageSearch::V1_0::Models::WebPage - Person = Azure::CognitiveServices::ImageSearch::V1_0::Models::Person - Intangible = Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible Rating = Azure::CognitiveServices::ImageSearch::V1_0::Models::Rating + ImageInsights = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsights CollectionPage = Azure::CognitiveServices::ImageSearch::V1_0::Models::CollectionPage - StructuredValue = Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue Currency = Azure::CognitiveServices::ImageSearch::V1_0::Models::Currency ItemAvailability = Azure::CognitiveServices::ImageSearch::V1_0::Models::ItemAvailability - ErrorCode = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode ImageAspect = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageAspect ImageColor = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageColor Freshness = Azure::CognitiveServices::ImageSearch::V1_0::Models::Freshness ImageContent = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageContent - ImageType = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageType ImageLicense = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageLicense - SafeSearch = Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch ImageSize = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageSize + ImageType = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageType + Person = Azure::CognitiveServices::ImageSearch::V1_0::Models::Person ImageCropType = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageCropType ImageInsightModule = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightModule + Error = Azure::CognitiveServices::ImageSearch::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorResponse + ResponseBase = Azure::CognitiveServices::ImageSearch::V1_0::Models::ResponseBase + Query = Azure::CognitiveServices::ImageSearch::V1_0::Models::Query + WebPage = Azure::CognitiveServices::ImageSearch::V1_0::Models::WebPage + SearchResultsAnswer = Azure::CognitiveServices::ImageSearch::V1_0::Models::SearchResultsAnswer + Identifiable = Azure::CognitiveServices::ImageSearch::V1_0::Models::Identifiable + Answer = Azure::CognitiveServices::ImageSearch::V1_0::Models::Answer + Thing = Azure::CognitiveServices::ImageSearch::V1_0::Models::Thing + CreativeWork = Azure::CognitiveServices::ImageSearch::V1_0::Models::CreativeWork + ErrorCode = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorCode + ErrorSubCode = Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode + SafeSearch = Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch + Images = Azure::CognitiveServices::ImageSearch::V1_0::Models::Images + ImageObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject + Organization = Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization + Intangible = Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible + MediaObject = Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject + StructuredValue = Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue end class ImageSearchDataClass @@ -117,9 +117,6 @@ def recognized_entity_group def trending_images_category Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesCategory end - def query - Azure::CognitiveServices::ImageSearch::V1_0::Models::Query - end def pivot_suggestions Azure::CognitiveServices::ImageSearch::V1_0::Models::PivotSuggestions end @@ -138,24 +135,12 @@ def images_image_metadata def image_insights_image_caption Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightsImageCaption end - def response_base - Azure::CognitiveServices::ImageSearch::V1_0::Models::ResponseBase - end - def error - Azure::CognitiveServices::ImageSearch::V1_0::Models::Error - end def trending_images_tile Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesTile end def images_module Azure::CognitiveServices::ImageSearch::V1_0::Models::ImagesModule end - def thing - Azure::CognitiveServices::ImageSearch::V1_0::Models::Thing - end - def organization - Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization - end def aggregate_rating Azure::CognitiveServices::ImageSearch::V1_0::Models::AggregateRating end @@ -165,33 +150,6 @@ def offer def aggregate_offer Azure::CognitiveServices::ImageSearch::V1_0::Models::AggregateOffer end - def media_object - Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject - end - def image_object - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject - end - def search_results_answer - Azure::CognitiveServices::ImageSearch::V1_0::Models::SearchResultsAnswer - end - def images - Azure::CognitiveServices::ImageSearch::V1_0::Models::Images - end - def identifiable - Azure::CognitiveServices::ImageSearch::V1_0::Models::Identifiable - end - def response - Azure::CognitiveServices::ImageSearch::V1_0::Models::Response - end - def answer - Azure::CognitiveServices::ImageSearch::V1_0::Models::Answer - end - def creative_work - Azure::CognitiveServices::ImageSearch::V1_0::Models::CreativeWork - end - def error_response - Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorResponse - end def image_gallery Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageGallery end @@ -201,48 +159,33 @@ def recipe def normalized_rectangle Azure::CognitiveServices::ImageSearch::V1_0::Models::NormalizedRectangle end + def response + Azure::CognitiveServices::ImageSearch::V1_0::Models::Response + end def recognized_entity Azure::CognitiveServices::ImageSearch::V1_0::Models::RecognizedEntity end def recognized_entity_region Azure::CognitiveServices::ImageSearch::V1_0::Models::RecognizedEntityRegion end - def image_insights - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsights - end def trending_images Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImages end - def web_page - Azure::CognitiveServices::ImageSearch::V1_0::Models::WebPage - end - def person - Azure::CognitiveServices::ImageSearch::V1_0::Models::Person - end - def intangible - Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible - end def rating Azure::CognitiveServices::ImageSearch::V1_0::Models::Rating end + def image_insights + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsights + end def collection_page Azure::CognitiveServices::ImageSearch::V1_0::Models::CollectionPage end - def structured_value - Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue - end def currency Azure::CognitiveServices::ImageSearch::V1_0::Models::Currency end def item_availability Azure::CognitiveServices::ImageSearch::V1_0::Models::ItemAvailability end - def error_code - Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorCode - end - def error_sub_code - Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode - end def image_aspect Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageAspect end @@ -255,24 +198,81 @@ def freshness def image_content Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageContent end - def image_type - Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageType - end def image_license Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageLicense end - def safe_search - Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch - end def image_size Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageSize end + def image_type + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageType + end + def person + Azure::CognitiveServices::ImageSearch::V1_0::Models::Person + end def image_crop_type Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageCropType end def image_insight_module Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageInsightModule end + def error + Azure::CognitiveServices::ImageSearch::V1_0::Models::Error + end + def error_response + Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorResponse + end + def response_base + Azure::CognitiveServices::ImageSearch::V1_0::Models::ResponseBase + end + def query + Azure::CognitiveServices::ImageSearch::V1_0::Models::Query + end + def web_page + Azure::CognitiveServices::ImageSearch::V1_0::Models::WebPage + end + def search_results_answer + Azure::CognitiveServices::ImageSearch::V1_0::Models::SearchResultsAnswer + end + def identifiable + Azure::CognitiveServices::ImageSearch::V1_0::Models::Identifiable + end + def answer + Azure::CognitiveServices::ImageSearch::V1_0::Models::Answer + end + def thing + Azure::CognitiveServices::ImageSearch::V1_0::Models::Thing + end + def creative_work + Azure::CognitiveServices::ImageSearch::V1_0::Models::CreativeWork + end + def error_code + Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorCode + end + def error_sub_code + Azure::CognitiveServices::ImageSearch::V1_0::Models::ErrorSubCode + end + def safe_search + Azure::CognitiveServices::ImageSearch::V1_0::Models::SafeSearch + end + def images + Azure::CognitiveServices::ImageSearch::V1_0::Models::Images + end + def image_object + Azure::CognitiveServices::ImageSearch::V1_0::Models::ImageObject + end + def organization + Azure::CognitiveServices::ImageSearch::V1_0::Models::Organization + end + def intangible + Azure::CognitiveServices::ImageSearch::V1_0::Models::Intangible + end + def media_object + Azure::CognitiveServices::ImageSearch::V1_0::Models::MediaObject + end + def structured_value + Azure::CognitiveServices::ImageSearch::V1_0::Models::StructuredValue + end end end end diff --git a/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb b/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb index 5ae1a3fa37..633bf8b014 100644 --- a/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb @@ -7,27 +7,27 @@ module Azure::Profiles::Latest module IotCentral module Mgmt - Apps = Azure::IotCentral::Mgmt::V2018_09_01::Apps Operations = Azure::IotCentral::Mgmt::V2018_09_01::Operations + Apps = Azure::IotCentral::Mgmt::V2018_09_01::Apps module Models + ErrorDetails = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails + Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult - OperationDisplay = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch - Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation - ErrorDetails = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails - OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult - Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource OperationInputs = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs AppSkuInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo AppNameAvailabilityInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppNameAvailabilityInfo App = Azure::IotCentral::Mgmt::V2018_09_01::Models::App AppSku = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku AppNameUnavailabilityReason = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppNameUnavailabilityReason + OperationDisplay = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay + OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource end class IotCentralManagementClass - attr_reader :apps, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :apps, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -37,8 +37,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @apps = @client_0.apps @operations = @client_0.operations + @apps = @client_0.apps @model_classes = ModelClasses.new end @@ -57,26 +57,17 @@ def method_missing(method, *args) end class ModelClasses - def app_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult - end - def operation_display - Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay - end - def app_patch - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch + def error_details + Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails end def operation Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation end - def error_details - Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails - end - def operation_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + def app_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult end - def resource - Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + def app_patch + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch end def operation_inputs Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs @@ -96,6 +87,15 @@ def app_sku def app_name_unavailability_reason Azure::IotCentral::Mgmt::V2018_09_01::Models::AppNameUnavailabilityReason end + def operation_display + Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay + end + def operation_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + end + def resource + Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + end end end end diff --git a/azure_sdk/lib/latest/modules/iothub_profile_module.rb b/azure_sdk/lib/latest/modules/iothub_profile_module.rb index af6e3b6a7e..eb83eac677 100644 --- a/azure_sdk/lib/latest/modules/iothub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iothub_profile_module.rb @@ -14,6 +14,7 @@ module Mgmt module Models ErrorDetails = Azure::IotHub::Mgmt::V2018_04_01::Models::ErrorDetails + OperationInputs = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationInputs IotHubQuotaMetricInfo = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubQuotaMetricInfo CertificateProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateProperties IotHubQuotaMetricInfoListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubQuotaMetricInfoListResult @@ -39,29 +40,26 @@ module Models EventHubConsumerGroupsListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::EventHubConsumerGroupsListResult IotHubProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubProperties IotHubSkuDescriptionListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuDescriptionListResult - Resource = Azure::IotHub::Mgmt::V2018_04_01::Models::Resource IotHubDescriptionListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubDescriptionListResult - OperationDisplay = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationDisplay - OperationInputs = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationInputs - OperationListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationListResult IotHubNameAvailabilityInfo = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameAvailabilityInfo CertificateDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateDescription - Name = Azure::IotHub::Mgmt::V2018_04_01::Models::Name CertificateWithNonceDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateWithNonceDescription - UserSubscriptionQuota = Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuota + Name = Azure::IotHub::Mgmt::V2018_04_01::Models::Name + OperationDisplay = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationDisplay RoutingServiceBusQueueEndpointProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingServiceBusQueueEndpointProperties - UserSubscriptionQuotaListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuotaListResult - RoutingEndpoints = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEndpoints + OperationListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationListResult RoutingMessage = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingMessage - StorageEndpointProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::StorageEndpointProperties + UserSubscriptionQuotaListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuotaListResult TestAllRoutesInput = Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesInput OperationsMonitoringProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationsMonitoringProperties + StorageEndpointProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::StorageEndpointProperties + RoutingEndpoints = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEndpoints + UserSubscriptionQuota = Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuota MatchedRoute = Azure::IotHub::Mgmt::V2018_04_01::Models::MatchedRoute SharedAccessSignatureAuthorizationRuleListResult = Azure::IotHub::Mgmt::V2018_04_01::Models::SharedAccessSignatureAuthorizationRuleListResult TestAllRoutesResult = Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesResult CertificateVerificationDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateVerificationDescription TestRouteInput = Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteInput - IpFilterRule = Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterRule RouteErrorPosition = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorPosition FallbackRouteProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::FallbackRouteProperties RouteErrorRange = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorRange @@ -73,23 +71,25 @@ module Models TestRouteResult = Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteResult RoutingEventHubProperties = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEventHubProperties ExportDevicesRequest = Azure::IotHub::Mgmt::V2018_04_01::Models::ExportDevicesRequest - Operation = Azure::IotHub::Mgmt::V2018_04_01::Models::Operation ImportDevicesRequest = Azure::IotHub::Mgmt::V2018_04_01::Models::ImportDevicesRequest IotHubDescription = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubDescription AccessRights = Azure::IotHub::Mgmt::V2018_04_01::Models::AccessRights IpFilterActionType = Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterActionType - RoutingSource = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingSource + Operation = Azure::IotHub::Mgmt::V2018_04_01::Models::Operation OperationMonitoringLevel = Azure::IotHub::Mgmt::V2018_04_01::Models::OperationMonitoringLevel Capabilities = Azure::IotHub::Mgmt::V2018_04_01::Models::Capabilities - IotHubSku = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku + RoutingSource = Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingSource IotHubSkuTier = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuTier EndpointHealthStatus = Azure::IotHub::Mgmt::V2018_04_01::Models::EndpointHealthStatus - JobType = Azure::IotHub::Mgmt::V2018_04_01::Models::JobType - JobStatus = Azure::IotHub::Mgmt::V2018_04_01::Models::JobStatus + Resource = Azure::IotHub::Mgmt::V2018_04_01::Models::Resource IotHubScaleType = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubScaleType IotHubNameUnavailabilityReason = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameUnavailabilityReason + JobType = Azure::IotHub::Mgmt::V2018_04_01::Models::JobType + IotHubSku = Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku + JobStatus = Azure::IotHub::Mgmt::V2018_04_01::Models::JobStatus TestResultStatus = Azure::IotHub::Mgmt::V2018_04_01::Models::TestResultStatus RouteErrorSeverity = Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorSeverity + IpFilterRule = Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterRule end class IotHubManagementClass @@ -128,6 +128,9 @@ class ModelClasses def error_details Azure::IotHub::Mgmt::V2018_04_01::Models::ErrorDetails end + def operation_inputs + Azure::IotHub::Mgmt::V2018_04_01::Models::OperationInputs + end def iot_hub_quota_metric_info Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubQuotaMetricInfo end @@ -203,50 +206,35 @@ def iot_hub_properties def iot_hub_sku_description_list_result Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuDescriptionListResult end - def resource - Azure::IotHub::Mgmt::V2018_04_01::Models::Resource - end def iot_hub_description_list_result Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubDescriptionListResult end - def operation_display - Azure::IotHub::Mgmt::V2018_04_01::Models::OperationDisplay - end - def operation_inputs - Azure::IotHub::Mgmt::V2018_04_01::Models::OperationInputs - end - def operation_list_result - Azure::IotHub::Mgmt::V2018_04_01::Models::OperationListResult - end def iot_hub_name_availability_info Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameAvailabilityInfo end def certificate_description Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateDescription end - def name - Azure::IotHub::Mgmt::V2018_04_01::Models::Name - end def certificate_with_nonce_description Azure::IotHub::Mgmt::V2018_04_01::Models::CertificateWithNonceDescription end - def user_subscription_quota - Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuota + def name + Azure::IotHub::Mgmt::V2018_04_01::Models::Name + end + def operation_display + Azure::IotHub::Mgmt::V2018_04_01::Models::OperationDisplay end def routing_service_bus_queue_endpoint_properties Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingServiceBusQueueEndpointProperties end - def user_subscription_quota_list_result - Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuotaListResult - end - def routing_endpoints - Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEndpoints + def operation_list_result + Azure::IotHub::Mgmt::V2018_04_01::Models::OperationListResult end def routing_message Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingMessage end - def storage_endpoint_properties - Azure::IotHub::Mgmt::V2018_04_01::Models::StorageEndpointProperties + def user_subscription_quota_list_result + Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuotaListResult end def test_all_routes_input Azure::IotHub::Mgmt::V2018_04_01::Models::TestAllRoutesInput @@ -254,6 +242,15 @@ def test_all_routes_input def operations_monitoring_properties Azure::IotHub::Mgmt::V2018_04_01::Models::OperationsMonitoringProperties end + def storage_endpoint_properties + Azure::IotHub::Mgmt::V2018_04_01::Models::StorageEndpointProperties + end + def routing_endpoints + Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingEndpoints + end + def user_subscription_quota + Azure::IotHub::Mgmt::V2018_04_01::Models::UserSubscriptionQuota + end def matched_route Azure::IotHub::Mgmt::V2018_04_01::Models::MatchedRoute end @@ -269,9 +266,6 @@ def certificate_verification_description def test_route_input Azure::IotHub::Mgmt::V2018_04_01::Models::TestRouteInput end - def ip_filter_rule - Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterRule - end def route_error_position Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorPosition end @@ -305,9 +299,6 @@ def routing_event_hub_properties def export_devices_request Azure::IotHub::Mgmt::V2018_04_01::Models::ExportDevicesRequest end - def operation - Azure::IotHub::Mgmt::V2018_04_01::Models::Operation - end def import_devices_request Azure::IotHub::Mgmt::V2018_04_01::Models::ImportDevicesRequest end @@ -320,8 +311,8 @@ def access_rights def ip_filter_action_type Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterActionType end - def routing_source - Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingSource + def operation + Azure::IotHub::Mgmt::V2018_04_01::Models::Operation end def operation_monitoring_level Azure::IotHub::Mgmt::V2018_04_01::Models::OperationMonitoringLevel @@ -329,8 +320,8 @@ def operation_monitoring_level def capabilities Azure::IotHub::Mgmt::V2018_04_01::Models::Capabilities end - def iot_hub_sku - Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku + def routing_source + Azure::IotHub::Mgmt::V2018_04_01::Models::RoutingSource end def iot_hub_sku_tier Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSkuTier @@ -338,11 +329,8 @@ def iot_hub_sku_tier def endpoint_health_status Azure::IotHub::Mgmt::V2018_04_01::Models::EndpointHealthStatus end - def job_type - Azure::IotHub::Mgmt::V2018_04_01::Models::JobType - end - def job_status - Azure::IotHub::Mgmt::V2018_04_01::Models::JobStatus + def resource + Azure::IotHub::Mgmt::V2018_04_01::Models::Resource end def iot_hub_scale_type Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubScaleType @@ -350,12 +338,24 @@ def iot_hub_scale_type def iot_hub_name_unavailability_reason Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubNameUnavailabilityReason end + def job_type + Azure::IotHub::Mgmt::V2018_04_01::Models::JobType + end + def iot_hub_sku + Azure::IotHub::Mgmt::V2018_04_01::Models::IotHubSku + end + def job_status + Azure::IotHub::Mgmt::V2018_04_01::Models::JobStatus + end def test_result_status Azure::IotHub::Mgmt::V2018_04_01::Models::TestResultStatus end def route_error_severity Azure::IotHub::Mgmt::V2018_04_01::Models::RouteErrorSeverity end + def ip_filter_rule + Azure::IotHub::Mgmt::V2018_04_01::Models::IpFilterRule + end end end end diff --git a/azure_sdk/lib/latest/modules/keyvault_profile_module.rb b/azure_sdk/lib/latest/modules/keyvault_profile_module.rb index c1b29471fb..7317e491a8 100644 --- a/azure_sdk/lib/latest/modules/keyvault_profile_module.rb +++ b/azure_sdk/lib/latest/modules/keyvault_profile_module.rb @@ -9,6 +9,10 @@ module Azure::Profiles::Latest module KeyVault module Models + CertificateListResult = Azure::KeyVault::V7_0::Models::CertificateListResult + StorageAccountUpdateParameters = Azure::KeyVault::V7_0::Models::StorageAccountUpdateParameters + StorageAccountCreateParameters = Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters + Action = Azure::KeyVault::V7_0::Models::Action KeyRestoreParameters = Azure::KeyVault::V7_0::Models::KeyRestoreParameters SecretSetParameters = Azure::KeyVault::V7_0::Models::SecretSetParameters JsonWebKey = Azure::KeyVault::V7_0::Models::JsonWebKey @@ -31,8 +35,6 @@ module Models SecretProperties = Azure::KeyVault::V7_0::Models::SecretProperties CertificateImportParameters = Azure::KeyVault::V7_0::Models::CertificateImportParameters X509CertificateProperties = Azure::KeyVault::V7_0::Models::X509CertificateProperties - CertificateUpdateParameters = Azure::KeyVault::V7_0::Models::CertificateUpdateParameters - Action = Azure::KeyVault::V7_0::Models::Action CertificateMergeParameters = Azure::KeyVault::V7_0::Models::CertificateMergeParameters IssuerParameters = Azure::KeyVault::V7_0::Models::IssuerParameters CertificateIssuerSetParameters = Azure::KeyVault::V7_0::Models::CertificateIssuerSetParameters @@ -45,7 +47,6 @@ module Models AdministratorDetails = Azure::KeyVault::V7_0::Models::AdministratorDetails KeyVerifyResult = Azure::KeyVault::V7_0::Models::KeyVerifyResult IssuerAttributes = Azure::KeyVault::V7_0::Models::IssuerAttributes - KeyListResult = Azure::KeyVault::V7_0::Models::KeyListResult Contact = Azure::KeyVault::V7_0::Models::Contact DeletedKeyListResult = Azure::KeyVault::V7_0::Models::DeletedKeyListResult KeyCreateParameters = Azure::KeyVault::V7_0::Models::KeyCreateParameters @@ -53,7 +54,6 @@ module Models KeyOperationsParameters = Azure::KeyVault::V7_0::Models::KeyOperationsParameters DeletedSecretListResult = Azure::KeyVault::V7_0::Models::DeletedSecretListResult SecretBundle = Azure::KeyVault::V7_0::Models::SecretBundle - CertificateListResult = Azure::KeyVault::V7_0::Models::CertificateListResult StorageRestoreParameters = Azure::KeyVault::V7_0::Models::StorageRestoreParameters DeletedCertificateListResult = Azure::KeyVault::V7_0::Models::DeletedCertificateListResult KeyProperties = Azure::KeyVault::V7_0::Models::KeyProperties @@ -62,7 +62,6 @@ module Models BackupKeyResult = Azure::KeyVault::V7_0::Models::BackupKeyResult CertificatePolicy = Azure::KeyVault::V7_0::Models::CertificatePolicy BackupSecretResult = Azure::KeyVault::V7_0::Models::BackupSecretResult - Error = Azure::KeyVault::V7_0::Models::Error BackupStorageResult = Azure::KeyVault::V7_0::Models::BackupStorageResult OrganizationDetails = Azure::KeyVault::V7_0::Models::OrganizationDetails PendingCertificateSigningRequestResult = Azure::KeyVault::V7_0::Models::PendingCertificateSigningRequestResult @@ -72,9 +71,7 @@ module Models CertificateItem = Azure::KeyVault::V7_0::Models::CertificateItem SasDefinitionItem = Azure::KeyVault::V7_0::Models::SasDefinitionItem LifetimeAction = Azure::KeyVault::V7_0::Models::LifetimeAction - StorageAccountCreateParameters = Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters IssuerCredentials = Azure::KeyVault::V7_0::Models::IssuerCredentials - StorageAccountUpdateParameters = Azure::KeyVault::V7_0::Models::StorageAccountUpdateParameters KeyImportParameters = Azure::KeyVault::V7_0::Models::KeyImportParameters StorageAccountRegenerteKeyParameters = Azure::KeyVault::V7_0::Models::StorageAccountRegenerteKeyParameters SubjectAlternativeNames = Azure::KeyVault::V7_0::Models::SubjectAlternativeNames @@ -97,6 +94,7 @@ module Models DeletedStorageBundle = Azure::KeyVault::V7_0::Models::DeletedStorageBundle DeletedStorageAccountItem = Azure::KeyVault::V7_0::Models::DeletedStorageAccountItem DeletedSasDefinitionBundle = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionBundle + Error = Azure::KeyVault::V7_0::Models::Error DeletedSasDefinitionItem = Azure::KeyVault::V7_0::Models::DeletedSasDefinitionItem JsonWebKeyType = Azure::KeyVault::V7_0::Models::JsonWebKeyType JsonWebKeyCurveName = Azure::KeyVault::V7_0::Models::JsonWebKeyCurveName @@ -107,6 +105,8 @@ module Models JsonWebKeyEncryptionAlgorithm = Azure::KeyVault::V7_0::Models::JsonWebKeyEncryptionAlgorithm JsonWebKeySignatureAlgorithm = Azure::KeyVault::V7_0::Models::JsonWebKeySignatureAlgorithm SasTokenType = Azure::KeyVault::V7_0::Models::SasTokenType + KeyListResult = Azure::KeyVault::V7_0::Models::KeyListResult + CertificateUpdateParameters = Azure::KeyVault::V7_0::Models::CertificateUpdateParameters end class KeyVaultDataClass @@ -138,6 +138,18 @@ def method_missing(method, *args) end class ModelClasses + def certificate_list_result + Azure::KeyVault::V7_0::Models::CertificateListResult + end + def storage_account_update_parameters + Azure::KeyVault::V7_0::Models::StorageAccountUpdateParameters + end + def storage_account_create_parameters + Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters + end + def action + Azure::KeyVault::V7_0::Models::Action + end def key_restore_parameters Azure::KeyVault::V7_0::Models::KeyRestoreParameters end @@ -204,12 +216,6 @@ def certificate_import_parameters def x509_certificate_properties Azure::KeyVault::V7_0::Models::X509CertificateProperties end - def certificate_update_parameters - Azure::KeyVault::V7_0::Models::CertificateUpdateParameters - end - def action - Azure::KeyVault::V7_0::Models::Action - end def certificate_merge_parameters Azure::KeyVault::V7_0::Models::CertificateMergeParameters end @@ -246,9 +252,6 @@ def key_verify_result def issuer_attributes Azure::KeyVault::V7_0::Models::IssuerAttributes end - def key_list_result - Azure::KeyVault::V7_0::Models::KeyListResult - end def contact Azure::KeyVault::V7_0::Models::Contact end @@ -270,9 +273,6 @@ def deleted_secret_list_result def secret_bundle Azure::KeyVault::V7_0::Models::SecretBundle end - def certificate_list_result - Azure::KeyVault::V7_0::Models::CertificateListResult - end def storage_restore_parameters Azure::KeyVault::V7_0::Models::StorageRestoreParameters end @@ -297,9 +297,6 @@ def certificate_policy def backup_secret_result Azure::KeyVault::V7_0::Models::BackupSecretResult end - def error - Azure::KeyVault::V7_0::Models::Error - end def backup_storage_result Azure::KeyVault::V7_0::Models::BackupStorageResult end @@ -327,15 +324,9 @@ def sas_definition_item def lifetime_action Azure::KeyVault::V7_0::Models::LifetimeAction end - def storage_account_create_parameters - Azure::KeyVault::V7_0::Models::StorageAccountCreateParameters - end def issuer_credentials Azure::KeyVault::V7_0::Models::IssuerCredentials end - def storage_account_update_parameters - Azure::KeyVault::V7_0::Models::StorageAccountUpdateParameters - end def key_import_parameters Azure::KeyVault::V7_0::Models::KeyImportParameters end @@ -402,6 +393,9 @@ def deleted_storage_account_item def deleted_sas_definition_bundle Azure::KeyVault::V7_0::Models::DeletedSasDefinitionBundle end + def error + Azure::KeyVault::V7_0::Models::Error + end def deleted_sas_definition_item Azure::KeyVault::V7_0::Models::DeletedSasDefinitionItem end @@ -432,6 +426,12 @@ def json_web_key_signature_algorithm def sas_token_type Azure::KeyVault::V7_0::Models::SasTokenType end + def key_list_result + Azure::KeyVault::V7_0::Models::KeyListResult + end + def certificate_update_parameters + Azure::KeyVault::V7_0::Models::CertificateUpdateParameters + end end end module Mgmt @@ -439,33 +439,21 @@ module Mgmt Operations = Azure::KeyVault::Mgmt::V2018_02_14::Operations module Models - VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters - Permissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions - DeletedVault = Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVault - IPRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule - VaultListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultListResult - NetworkRuleSet = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet DeletedVaultListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultListResult VaultPatchProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchProperties - Resource = Azure::KeyVault::Mgmt::V2018_02_14::Models::Resource DeletedVaultProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultProperties - ResourceListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::ResourceListResult VaultPatchParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchParameters VaultCheckNameAvailabilityParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCheckNameAvailabilityParameters AccessPolicyEntry = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyEntry - CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::CheckNameAvailabilityResult VaultProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultProperties - OperationDisplay = Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationDisplay VaultCreateOrUpdateParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCreateOrUpdateParameters LogSpecification = Azure::KeyVault::Mgmt::V2018_02_14::Models::LogSpecification - VirtualNetworkRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule + ResourceListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::ResourceListResult ServiceSpecification = Azure::KeyVault::Mgmt::V2018_02_14::Models::ServiceSpecification Sku = Azure::KeyVault::Mgmt::V2018_02_14::Models::Sku - Operation = Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation - VaultAccessPolicyProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyProperties - OperationListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult Vault = Azure::KeyVault::Mgmt::V2018_02_14::Models::Vault - SkuName = Azure::KeyVault::Mgmt::V2018_02_14::Models::SkuName + VaultAccessPolicyProperties = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyProperties + Operation = Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation KeyPermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::KeyPermissions SecretPermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::SecretPermissions CertificatePermissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::CertificatePermissions @@ -473,8 +461,20 @@ module Models CreateMode = Azure::KeyVault::Mgmt::V2018_02_14::Models::CreateMode NetworkRuleBypassOptions = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleBypassOptions NetworkRuleAction = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleAction - Reason = Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason AccessPolicyUpdateKind = Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + CheckNameAvailabilityResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::CheckNameAvailabilityResult + Resource = Azure::KeyVault::Mgmt::V2018_02_14::Models::Resource + SkuName = Azure::KeyVault::Mgmt::V2018_02_14::Models::SkuName + VirtualNetworkRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule + Reason = Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason + Permissions = Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions + OperationDisplay = Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationDisplay + OperationListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult + VaultAccessPolicyParameters = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters + DeletedVault = Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVault + IPRule = Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule + VaultListResult = Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultListResult + NetworkRuleSet = Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet end class KeyVaultManagementClass @@ -508,39 +508,15 @@ def method_missing(method, *args) end class ModelClasses - def vault_access_policy_parameters - Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters - end - def permissions - Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions - end - def deleted_vault - Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVault - end - def iprule - Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule - end - def vault_list_result - Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultListResult - end - def network_rule_set - Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet - end def deleted_vault_list_result Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultListResult end def vault_patch_properties Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchProperties end - def resource - Azure::KeyVault::Mgmt::V2018_02_14::Models::Resource - end def deleted_vault_properties Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVaultProperties end - def resource_list_result - Azure::KeyVault::Mgmt::V2018_02_14::Models::ResourceListResult - end def vault_patch_parameters Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultPatchParameters end @@ -550,23 +526,17 @@ def vault_check_name_availability_parameters def access_policy_entry Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyEntry end - def check_name_availability_result - Azure::KeyVault::Mgmt::V2018_02_14::Models::CheckNameAvailabilityResult - end def vault_properties Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultProperties end - def operation_display - Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationDisplay - end def vault_create_or_update_parameters Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultCreateOrUpdateParameters end def log_specification Azure::KeyVault::Mgmt::V2018_02_14::Models::LogSpecification end - def virtual_network_rule - Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule + def resource_list_result + Azure::KeyVault::Mgmt::V2018_02_14::Models::ResourceListResult end def service_specification Azure::KeyVault::Mgmt::V2018_02_14::Models::ServiceSpecification @@ -574,20 +544,14 @@ def service_specification def sku Azure::KeyVault::Mgmt::V2018_02_14::Models::Sku end - def operation - Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation + def vault + Azure::KeyVault::Mgmt::V2018_02_14::Models::Vault end def vault_access_policy_properties Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyProperties end - def operation_list_result - Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult - end - def vault - Azure::KeyVault::Mgmt::V2018_02_14::Models::Vault - end - def sku_name - Azure::KeyVault::Mgmt::V2018_02_14::Models::SkuName + def operation + Azure::KeyVault::Mgmt::V2018_02_14::Models::Operation end def key_permissions Azure::KeyVault::Mgmt::V2018_02_14::Models::KeyPermissions @@ -610,11 +574,47 @@ def network_rule_bypass_options def network_rule_action Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleAction end + def access_policy_update_kind + Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + end + def check_name_availability_result + Azure::KeyVault::Mgmt::V2018_02_14::Models::CheckNameAvailabilityResult + end + def resource + Azure::KeyVault::Mgmt::V2018_02_14::Models::Resource + end + def sku_name + Azure::KeyVault::Mgmt::V2018_02_14::Models::SkuName + end + def virtual_network_rule + Azure::KeyVault::Mgmt::V2018_02_14::Models::VirtualNetworkRule + end def reason Azure::KeyVault::Mgmt::V2018_02_14::Models::Reason end - def access_policy_update_kind - Azure::KeyVault::Mgmt::V2018_02_14::Models::AccessPolicyUpdateKind + def permissions + Azure::KeyVault::Mgmt::V2018_02_14::Models::Permissions + end + def operation_display + Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationDisplay + end + def operation_list_result + Azure::KeyVault::Mgmt::V2018_02_14::Models::OperationListResult + end + def vault_access_policy_parameters + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultAccessPolicyParameters + end + def deleted_vault + Azure::KeyVault::Mgmt::V2018_02_14::Models::DeletedVault + end + def iprule + Azure::KeyVault::Mgmt::V2018_02_14::Models::IPRule + end + def vault_list_result + Azure::KeyVault::Mgmt::V2018_02_14::Models::VaultListResult + end + def network_rule_set + Azure::KeyVault::Mgmt::V2018_02_14::Models::NetworkRuleSet end end end diff --git a/azure_sdk/lib/latest/modules/locks_profile_module.rb b/azure_sdk/lib/latest/modules/locks_profile_module.rb index f18a1cb418..534a89b706 100644 --- a/azure_sdk/lib/latest/modules/locks_profile_module.rb +++ b/azure_sdk/lib/latest/modules/locks_profile_module.rb @@ -10,9 +10,9 @@ module Mgmt ManagementLocks = Azure::Locks::Mgmt::V2016_09_01::ManagementLocks module Models - ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject - ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult ManagementLockOwner = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner + ManagementLockListResult = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult + ManagementLockObject = Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject LockLevel = Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel end @@ -46,14 +46,14 @@ def method_missing(method, *args) end class ModelClasses - def management_lock_object - Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject + def management_lock_owner + Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner end def management_lock_list_result Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockListResult end - def management_lock_owner - Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockOwner + def management_lock_object + Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject end def lock_level Azure::Locks::Mgmt::V2016_09_01::Models::LockLevel diff --git a/azure_sdk/lib/latest/modules/logic_profile_module.rb b/azure_sdk/lib/latest/modules/logic_profile_module.rb index 2298e74248..1b7f58f939 100644 --- a/azure_sdk/lib/latest/modules/logic_profile_module.rb +++ b/azure_sdk/lib/latest/modules/logic_profile_module.rb @@ -27,8 +27,44 @@ module Mgmt Sessions = Azure::Logic::Mgmt::V2016_06_01::Sessions module Models - X12SecuritySettings = Azure::Logic::Mgmt::V2016_06_01::Models::X12SecuritySettings + RecurrenceFrequency = Azure::Logic::Mgmt::V2016_06_01::Models::RecurrenceFrequency + DaysOfWeek = Azure::Logic::Mgmt::V2016_06_01::Models::DaysOfWeek + DayOfWeek = Azure::Logic::Mgmt::V2016_06_01::Models::DayOfWeek + IntegrationAccountSkuName = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSkuName + SchemaType = Azure::Logic::Mgmt::V2016_06_01::Models::SchemaType + MapType = Azure::Logic::Mgmt::V2016_06_01::Models::MapType + PartnerType = Azure::Logic::Mgmt::V2016_06_01::Models::PartnerType + AgreementType = Azure::Logic::Mgmt::V2016_06_01::Models::AgreementType + HashingAlgorithm = Azure::Logic::Mgmt::V2016_06_01::Models::HashingAlgorithm + EncryptionAlgorithm = Azure::Logic::Mgmt::V2016_06_01::Models::EncryptionAlgorithm + SigningAlgorithm = Azure::Logic::Mgmt::V2016_06_01::Models::SigningAlgorithm + TrailingSeparatorPolicy = Azure::Logic::Mgmt::V2016_06_01::Models::TrailingSeparatorPolicy + X12CharacterSet = Azure::Logic::Mgmt::V2016_06_01::Models::X12CharacterSet + SegmentTerminatorSuffix = Azure::Logic::Mgmt::V2016_06_01::Models::SegmentTerminatorSuffix + X12DateFormat = Azure::Logic::Mgmt::V2016_06_01::Models::X12DateFormat + KeyVaultReference = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultReference + UsageIndicator = Azure::Logic::Mgmt::V2016_06_01::Models::UsageIndicator + X12TimeFormat = Azure::Logic::Mgmt::V2016_06_01::Models::X12TimeFormat + ContentHash = Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash + MessageFilterType = Azure::Logic::Mgmt::V2016_06_01::Models::MessageFilterType + EdifactCharacterSet = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactCharacterSet + EdifactDecimalIndicator = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactDecimalIndicator + TrackEventsOperationOptions = Azure::Logic::Mgmt::V2016_06_01::Models::TrackEventsOperationOptions + EventLevel = Azure::Logic::Mgmt::V2016_06_01::Models::EventLevel + TrackingRecordType = Azure::Logic::Mgmt::V2016_06_01::Models::TrackingRecordType + AccessKeyType = Azure::Logic::Mgmt::V2016_06_01::Models::AccessKeyType + ContentLink = Azure::Logic::Mgmt::V2016_06_01::Models::ContentLink + OperationDisplay = Azure::Logic::Mgmt::V2016_06_01::Models::OperationDisplay + OperationListResult = Azure::Logic::Mgmt::V2016_06_01::Models::OperationListResult + ErrorResponse = Azure::Logic::Mgmt::V2016_06_01::Models::ErrorResponse + Operation = Azure::Logic::Mgmt::V2016_06_01::Models::Operation + Sku = Azure::Logic::Mgmt::V2016_06_01::Models::Sku Resource = Azure::Logic::Mgmt::V2016_06_01::Models::Resource + SubResource = Azure::Logic::Mgmt::V2016_06_01::Models::SubResource + SkuName = Azure::Logic::Mgmt::V2016_06_01::Models::SkuName + OperationResult = Azure::Logic::Mgmt::V2016_06_01::Models::OperationResult + KeyType = Azure::Logic::Mgmt::V2016_06_01::Models::KeyType + X12SecuritySettings = Azure::Logic::Mgmt::V2016_06_01::Models::X12SecuritySettings X12ProcessingSettings = Azure::Logic::Mgmt::V2016_06_01::Models::X12ProcessingSettings ResourceReference = Azure::Logic::Mgmt::V2016_06_01::Models::ResourceReference X12EnvelopeOverride = Azure::Logic::Mgmt::V2016_06_01::Models::X12EnvelopeOverride @@ -48,12 +84,9 @@ module Models X12EnvelopeSettings = Azure::Logic::Mgmt::V2016_06_01::Models::X12EnvelopeSettings Correlation = Azure::Logic::Mgmt::V2016_06_01::Models::Correlation X12AcknowledgementSettings = Azure::Logic::Mgmt::V2016_06_01::Models::X12AcknowledgementSettings - ContentLink = Azure::Logic::Mgmt::V2016_06_01::Models::ContentLink X12MessageFilter = Azure::Logic::Mgmt::V2016_06_01::Models::X12MessageFilter WorkflowTriggerHistoryListResult = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowTriggerHistoryListResult - SubResource = Azure::Logic::Mgmt::V2016_06_01::Models::SubResource WorkflowRunTrigger = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunTrigger - Sku = Azure::Logic::Mgmt::V2016_06_01::Models::Sku ArtifactProperties = Azure::Logic::Mgmt::V2016_06_01::Models::ArtifactProperties WorkflowRunFilter = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunFilter AccessKeyRegenerateActionDefinition = Azure::Logic::Mgmt::V2016_06_01::Models::AccessKeyRegenerateActionDefinition @@ -95,7 +128,6 @@ module Models EdifactDelimiterOverride = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactDelimiterOverride WorkflowTriggerListResult = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowTriggerListResult EdifactProtocolSettings = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactProtocolSettings - ContentHash = Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash EdifactOneWayAgreement = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactOneWayAgreement WorkflowTriggerHistoryFilter = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowTriggerHistoryFilter EdifactAgreementContent = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactAgreementContent @@ -110,22 +142,18 @@ module Models IntegrationAccountSchemaFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSchemaFilter KeyVaultKeyReferenceKeyVault = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReferenceKeyVault IntegrationAccountMapFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapFilter - KeyVaultKeyReference = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReference WorkflowRunActionRepetitionDefinitionCollection = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunActionRepetitionDefinitionCollection Expression = Azure::Logic::Mgmt::V2016_06_01::Models::Expression AS2AcknowledgementConnectionSettings = Azure::Logic::Mgmt::V2016_06_01::Models::AS2AcknowledgementConnectionSettings IntegrationAccountCertificateListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountCertificateListResult AS2EnvelopeSettings = Azure::Logic::Mgmt::V2016_06_01::Models::AS2EnvelopeSettings + KeyVaultKeyReference = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReference IntegrationAccountSessionFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionFilter ExpressionTraces = Azure::Logic::Mgmt::V2016_06_01::Models::ExpressionTraces BatchConfigurationCollection = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfigurationCollection IntegrationAccountSessionListResult = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionListResult - ErrorResponse = Azure::Logic::Mgmt::V2016_06_01::Models::ErrorResponse - OperationDisplay = Azure::Logic::Mgmt::V2016_06_01::Models::OperationDisplay JsonSchema = Azure::Logic::Mgmt::V2016_06_01::Models::JsonSchema - Operation = Azure::Logic::Mgmt::V2016_06_01::Models::Operation OperationResultProperties = Azure::Logic::Mgmt::V2016_06_01::Models::OperationResultProperties - OperationListResult = Azure::Logic::Mgmt::V2016_06_01::Models::OperationListResult IntegrationAccountPartnerFilter = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountPartnerFilter SetTriggerStateActionDefinition = Azure::Logic::Mgmt::V2016_06_01::Models::SetTriggerStateActionDefinition WorkflowVersionListResult = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowVersionListResult @@ -156,11 +184,9 @@ module Models IntegrationAccountAgreement = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountAgreement IntegrationAccountCertificate = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountCertificate IntegrationAccountSession = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSession - KeyVaultReference = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultReference ExpressionRoot = Azure::Logic::Mgmt::V2016_06_01::Models::ExpressionRoot AzureResourceErrorInfo = Azure::Logic::Mgmt::V2016_06_01::Models::AzureResourceErrorInfo WorkflowRunActionRepetitionDefinition = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunActionRepetitionDefinition - OperationResult = Azure::Logic::Mgmt::V2016_06_01::Models::OperationResult RunActionCorrelation = Azure::Logic::Mgmt::V2016_06_01::Models::RunActionCorrelation AssemblyDefinition = Azure::Logic::Mgmt::V2016_06_01::Models::AssemblyDefinition ArtifactContentPropertiesDefinition = Azure::Logic::Mgmt::V2016_06_01::Models::ArtifactContentPropertiesDefinition @@ -169,35 +195,9 @@ module Models BatchConfiguration = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfiguration WorkflowProvisioningState = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowProvisioningState WorkflowState = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowState - SkuName = Azure::Logic::Mgmt::V2016_06_01::Models::SkuName ParameterType = Azure::Logic::Mgmt::V2016_06_01::Models::ParameterType WorkflowTriggerProvisioningState = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowTriggerProvisioningState WorkflowStatus = Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowStatus - RecurrenceFrequency = Azure::Logic::Mgmt::V2016_06_01::Models::RecurrenceFrequency - DaysOfWeek = Azure::Logic::Mgmt::V2016_06_01::Models::DaysOfWeek - DayOfWeek = Azure::Logic::Mgmt::V2016_06_01::Models::DayOfWeek - KeyType = Azure::Logic::Mgmt::V2016_06_01::Models::KeyType - IntegrationAccountSkuName = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSkuName - SchemaType = Azure::Logic::Mgmt::V2016_06_01::Models::SchemaType - MapType = Azure::Logic::Mgmt::V2016_06_01::Models::MapType - PartnerType = Azure::Logic::Mgmt::V2016_06_01::Models::PartnerType - AgreementType = Azure::Logic::Mgmt::V2016_06_01::Models::AgreementType - HashingAlgorithm = Azure::Logic::Mgmt::V2016_06_01::Models::HashingAlgorithm - EncryptionAlgorithm = Azure::Logic::Mgmt::V2016_06_01::Models::EncryptionAlgorithm - SigningAlgorithm = Azure::Logic::Mgmt::V2016_06_01::Models::SigningAlgorithm - TrailingSeparatorPolicy = Azure::Logic::Mgmt::V2016_06_01::Models::TrailingSeparatorPolicy - X12CharacterSet = Azure::Logic::Mgmt::V2016_06_01::Models::X12CharacterSet - SegmentTerminatorSuffix = Azure::Logic::Mgmt::V2016_06_01::Models::SegmentTerminatorSuffix - X12DateFormat = Azure::Logic::Mgmt::V2016_06_01::Models::X12DateFormat - X12TimeFormat = Azure::Logic::Mgmt::V2016_06_01::Models::X12TimeFormat - UsageIndicator = Azure::Logic::Mgmt::V2016_06_01::Models::UsageIndicator - MessageFilterType = Azure::Logic::Mgmt::V2016_06_01::Models::MessageFilterType - EdifactCharacterSet = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactCharacterSet - EdifactDecimalIndicator = Azure::Logic::Mgmt::V2016_06_01::Models::EdifactDecimalIndicator - TrackEventsOperationOptions = Azure::Logic::Mgmt::V2016_06_01::Models::TrackEventsOperationOptions - EventLevel = Azure::Logic::Mgmt::V2016_06_01::Models::EventLevel - TrackingRecordType = Azure::Logic::Mgmt::V2016_06_01::Models::TrackingRecordType - AccessKeyType = Azure::Logic::Mgmt::V2016_06_01::Models::AccessKeyType end class LogicManagementClass @@ -247,12 +247,120 @@ def method_missing(method, *args) end class ModelClasses - def x12_security_settings - Azure::Logic::Mgmt::V2016_06_01::Models::X12SecuritySettings + def recurrence_frequency + Azure::Logic::Mgmt::V2016_06_01::Models::RecurrenceFrequency + end + def days_of_week + Azure::Logic::Mgmt::V2016_06_01::Models::DaysOfWeek + end + def day_of_week + Azure::Logic::Mgmt::V2016_06_01::Models::DayOfWeek + end + def integration_account_sku_name + Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSkuName + end + def schema_type + Azure::Logic::Mgmt::V2016_06_01::Models::SchemaType + end + def map_type + Azure::Logic::Mgmt::V2016_06_01::Models::MapType + end + def partner_type + Azure::Logic::Mgmt::V2016_06_01::Models::PartnerType + end + def agreement_type + Azure::Logic::Mgmt::V2016_06_01::Models::AgreementType + end + def hashing_algorithm + Azure::Logic::Mgmt::V2016_06_01::Models::HashingAlgorithm + end + def encryption_algorithm + Azure::Logic::Mgmt::V2016_06_01::Models::EncryptionAlgorithm + end + def signing_algorithm + Azure::Logic::Mgmt::V2016_06_01::Models::SigningAlgorithm + end + def trailing_separator_policy + Azure::Logic::Mgmt::V2016_06_01::Models::TrailingSeparatorPolicy + end + def x12_character_set + Azure::Logic::Mgmt::V2016_06_01::Models::X12CharacterSet + end + def segment_terminator_suffix + Azure::Logic::Mgmt::V2016_06_01::Models::SegmentTerminatorSuffix + end + def x12_date_format + Azure::Logic::Mgmt::V2016_06_01::Models::X12DateFormat + end + def key_vault_reference + Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultReference + end + def usage_indicator + Azure::Logic::Mgmt::V2016_06_01::Models::UsageIndicator + end + def x12_time_format + Azure::Logic::Mgmt::V2016_06_01::Models::X12TimeFormat + end + def content_hash + Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash + end + def message_filter_type + Azure::Logic::Mgmt::V2016_06_01::Models::MessageFilterType + end + def edifact_character_set + Azure::Logic::Mgmt::V2016_06_01::Models::EdifactCharacterSet + end + def edifact_decimal_indicator + Azure::Logic::Mgmt::V2016_06_01::Models::EdifactDecimalIndicator + end + def track_events_operation_options + Azure::Logic::Mgmt::V2016_06_01::Models::TrackEventsOperationOptions + end + def event_level + Azure::Logic::Mgmt::V2016_06_01::Models::EventLevel + end + def tracking_record_type + Azure::Logic::Mgmt::V2016_06_01::Models::TrackingRecordType + end + def access_key_type + Azure::Logic::Mgmt::V2016_06_01::Models::AccessKeyType + end + def content_link + Azure::Logic::Mgmt::V2016_06_01::Models::ContentLink + end + def operation_display + Azure::Logic::Mgmt::V2016_06_01::Models::OperationDisplay + end + def operation_list_result + Azure::Logic::Mgmt::V2016_06_01::Models::OperationListResult + end + def error_response + Azure::Logic::Mgmt::V2016_06_01::Models::ErrorResponse + end + def operation + Azure::Logic::Mgmt::V2016_06_01::Models::Operation + end + def sku + Azure::Logic::Mgmt::V2016_06_01::Models::Sku end def resource Azure::Logic::Mgmt::V2016_06_01::Models::Resource end + def sub_resource + Azure::Logic::Mgmt::V2016_06_01::Models::SubResource + end + def sku_name + Azure::Logic::Mgmt::V2016_06_01::Models::SkuName + end + def operation_result + Azure::Logic::Mgmt::V2016_06_01::Models::OperationResult + end + def key_type + Azure::Logic::Mgmt::V2016_06_01::Models::KeyType + end + def x12_security_settings + Azure::Logic::Mgmt::V2016_06_01::Models::X12SecuritySettings + end def x12_processing_settings Azure::Logic::Mgmt::V2016_06_01::Models::X12ProcessingSettings end @@ -310,24 +418,15 @@ def correlation def x12_acknowledgement_settings Azure::Logic::Mgmt::V2016_06_01::Models::X12AcknowledgementSettings end - def content_link - Azure::Logic::Mgmt::V2016_06_01::Models::ContentLink - end def x12_message_filter Azure::Logic::Mgmt::V2016_06_01::Models::X12MessageFilter end def workflow_trigger_history_list_result Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowTriggerHistoryListResult end - def sub_resource - Azure::Logic::Mgmt::V2016_06_01::Models::SubResource - end def workflow_run_trigger Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunTrigger end - def sku - Azure::Logic::Mgmt::V2016_06_01::Models::Sku - end def artifact_properties Azure::Logic::Mgmt::V2016_06_01::Models::ArtifactProperties end @@ -451,9 +550,6 @@ def workflow_trigger_list_result def edifact_protocol_settings Azure::Logic::Mgmt::V2016_06_01::Models::EdifactProtocolSettings end - def content_hash - Azure::Logic::Mgmt::V2016_06_01::Models::ContentHash - end def edifact_one_way_agreement Azure::Logic::Mgmt::V2016_06_01::Models::EdifactOneWayAgreement end @@ -496,9 +592,6 @@ def key_vault_key_reference_key_vault def integration_account_map_filter Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMapFilter end - def key_vault_key_reference - Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReference - end def workflow_run_action_repetition_definition_collection Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunActionRepetitionDefinitionCollection end @@ -514,6 +607,9 @@ def integration_account_certificate_list_result def as2_envelope_settings Azure::Logic::Mgmt::V2016_06_01::Models::AS2EnvelopeSettings end + def key_vault_key_reference + Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyReference + end def integration_account_session_filter Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionFilter end @@ -526,24 +622,12 @@ def batch_configuration_collection def integration_account_session_list_result Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSessionListResult end - def error_response - Azure::Logic::Mgmt::V2016_06_01::Models::ErrorResponse - end - def operation_display - Azure::Logic::Mgmt::V2016_06_01::Models::OperationDisplay - end def json_schema Azure::Logic::Mgmt::V2016_06_01::Models::JsonSchema end - def operation - Azure::Logic::Mgmt::V2016_06_01::Models::Operation - end def operation_result_properties Azure::Logic::Mgmt::V2016_06_01::Models::OperationResultProperties end - def operation_list_result - Azure::Logic::Mgmt::V2016_06_01::Models::OperationListResult - end def integration_account_partner_filter Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountPartnerFilter end @@ -634,9 +718,6 @@ def integration_account_certificate def integration_account_session Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSession end - def key_vault_reference - Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultReference - end def expression_root Azure::Logic::Mgmt::V2016_06_01::Models::ExpressionRoot end @@ -646,9 +727,6 @@ def azure_resource_error_info def workflow_run_action_repetition_definition Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowRunActionRepetitionDefinition end - def operation_result - Azure::Logic::Mgmt::V2016_06_01::Models::OperationResult - end def run_action_correlation Azure::Logic::Mgmt::V2016_06_01::Models::RunActionCorrelation end @@ -673,9 +751,6 @@ def workflow_provisioning_state def workflow_state Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowState end - def sku_name - Azure::Logic::Mgmt::V2016_06_01::Models::SkuName - end def parameter_type Azure::Logic::Mgmt::V2016_06_01::Models::ParameterType end @@ -685,81 +760,6 @@ def workflow_trigger_provisioning_state def workflow_status Azure::Logic::Mgmt::V2016_06_01::Models::WorkflowStatus end - def recurrence_frequency - Azure::Logic::Mgmt::V2016_06_01::Models::RecurrenceFrequency - end - def days_of_week - Azure::Logic::Mgmt::V2016_06_01::Models::DaysOfWeek - end - def day_of_week - Azure::Logic::Mgmt::V2016_06_01::Models::DayOfWeek - end - def key_type - Azure::Logic::Mgmt::V2016_06_01::Models::KeyType - end - def integration_account_sku_name - Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountSkuName - end - def schema_type - Azure::Logic::Mgmt::V2016_06_01::Models::SchemaType - end - def map_type - Azure::Logic::Mgmt::V2016_06_01::Models::MapType - end - def partner_type - Azure::Logic::Mgmt::V2016_06_01::Models::PartnerType - end - def agreement_type - Azure::Logic::Mgmt::V2016_06_01::Models::AgreementType - end - def hashing_algorithm - Azure::Logic::Mgmt::V2016_06_01::Models::HashingAlgorithm - end - def encryption_algorithm - Azure::Logic::Mgmt::V2016_06_01::Models::EncryptionAlgorithm - end - def signing_algorithm - Azure::Logic::Mgmt::V2016_06_01::Models::SigningAlgorithm - end - def trailing_separator_policy - Azure::Logic::Mgmt::V2016_06_01::Models::TrailingSeparatorPolicy - end - def x12_character_set - Azure::Logic::Mgmt::V2016_06_01::Models::X12CharacterSet - end - def segment_terminator_suffix - Azure::Logic::Mgmt::V2016_06_01::Models::SegmentTerminatorSuffix - end - def x12_date_format - Azure::Logic::Mgmt::V2016_06_01::Models::X12DateFormat - end - def x12_time_format - Azure::Logic::Mgmt::V2016_06_01::Models::X12TimeFormat - end - def usage_indicator - Azure::Logic::Mgmt::V2016_06_01::Models::UsageIndicator - end - def message_filter_type - Azure::Logic::Mgmt::V2016_06_01::Models::MessageFilterType - end - def edifact_character_set - Azure::Logic::Mgmt::V2016_06_01::Models::EdifactCharacterSet - end - def edifact_decimal_indicator - Azure::Logic::Mgmt::V2016_06_01::Models::EdifactDecimalIndicator - end - def track_events_operation_options - Azure::Logic::Mgmt::V2016_06_01::Models::TrackEventsOperationOptions - end - def event_level - Azure::Logic::Mgmt::V2016_06_01::Models::EventLevel - end - def tracking_record_type - Azure::Logic::Mgmt::V2016_06_01::Models::TrackingRecordType - end - def access_key_type - Azure::Logic::Mgmt::V2016_06_01::Models::AccessKeyType - end end end end diff --git a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb index 4b198c7d23..47411d240c 100644 --- a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb +++ b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb @@ -7,54 +7,54 @@ module Azure::Profiles::Latest module MachineLearning module Mgmt - Operations = Azure::MachineLearning::Mgmt::V2017_01_01::Operations WebServices = Azure::MachineLearning::Mgmt::V2017_01_01::WebServices + Operations = Azure::MachineLearning::Mgmt::V2017_01_01::Operations module Models + OperationDisplayInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationDisplayInfo AssetItem = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetItem - Resource = Azure::MachineLearning::Mgmt::V2017_01_01::Models::Resource WebServiceParameter = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceParameter RealtimeConfiguration = Azure::MachineLearning::Mgmt::V2017_01_01::Models::RealtimeConfiguration + OperationEntityListResult = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult WebServiceProperties = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceProperties - StorageAccount = Azure::MachineLearning::Mgmt::V2017_01_01::Models::StorageAccount MachineLearningWorkspace = Azure::MachineLearning::Mgmt::V2017_01_01::Models::MachineLearningWorkspace CommitmentPlan = Azure::MachineLearning::Mgmt::V2017_01_01::Models::CommitmentPlan TableSpecification = Azure::MachineLearning::Mgmt::V2017_01_01::Models::TableSpecification + Resource = Azure::MachineLearning::Mgmt::V2017_01_01::Models::Resource + StorageAccount = Azure::MachineLearning::Mgmt::V2017_01_01::Models::StorageAccount GraphNode = Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphNode - ExampleRequest = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ExampleRequest - GraphEdge = Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphEdge - InputPort = Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPort GraphParameterLink = Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphParameterLink - ModeValueInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModeValueInfo + GraphEdge = Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphEdge GraphParameter = Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphParameter WebServiceKeys = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceKeys GraphPackage = Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphPackage ColumnSpecification = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnSpecification - OperationEntityListResult = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult BlobLocation = Azure::MachineLearning::Mgmt::V2017_01_01::Models::BlobLocation PaginatedWebServicesList = Azure::MachineLearning::Mgmt::V2017_01_01::Models::PaginatedWebServicesList ModuleAssetParameter = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModuleAssetParameter + InputPort = Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPort AsyncOperationErrorInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationErrorInfo + ModeValueInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModeValueInfo + ExampleRequest = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ExampleRequest ServiceInputOutputSpecification = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ServiceInputOutputSpecification AsyncOperationStatus = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationStatus - DiagnosticsConfiguration = Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsConfiguration - OperationDisplayInfo = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationDisplayInfo OutputPort = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OutputPort - OperationEntity = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity WebService = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService + DiagnosticsConfiguration = Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsConfiguration + OperationEntity = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity + ColumnType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType WebServicePropertiesForGraph = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServicePropertiesForGraph - ProvisioningState = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ProvisioningState DiagnosticsLevel = Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsLevel - ColumnType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType - ColumnFormat = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnFormat - AssetType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetType InputPortType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPortType + ProvisioningState = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ProvisioningState + AssetType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetType OutputPortType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OutputPortType + ColumnFormat = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnFormat ParameterType = Azure::MachineLearning::Mgmt::V2017_01_01::Models::ParameterType end class MachineLearningManagementClass - attr_reader :operations, :web_services, :configurable, :base_url, :options, :model_classes + attr_reader :web_services, :operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -64,8 +64,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations @web_services = @client_0.web_services + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -84,24 +84,24 @@ def method_missing(method, *args) end class ModelClasses + def operation_display_info + Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationDisplayInfo + end def asset_item Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetItem end - def resource - Azure::MachineLearning::Mgmt::V2017_01_01::Models::Resource - end def web_service_parameter Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceParameter end def realtime_configuration Azure::MachineLearning::Mgmt::V2017_01_01::Models::RealtimeConfiguration end + def operation_entity_list_result + Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult + end def web_service_properties Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServiceProperties end - def storage_account - Azure::MachineLearning::Mgmt::V2017_01_01::Models::StorageAccount - end def machine_learning_workspace Azure::MachineLearning::Mgmt::V2017_01_01::Models::MachineLearningWorkspace end @@ -111,23 +111,20 @@ def commitment_plan def table_specification Azure::MachineLearning::Mgmt::V2017_01_01::Models::TableSpecification end - def graph_node - Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphNode - end - def example_request - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ExampleRequest + def resource + Azure::MachineLearning::Mgmt::V2017_01_01::Models::Resource end - def graph_edge - Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphEdge + def storage_account + Azure::MachineLearning::Mgmt::V2017_01_01::Models::StorageAccount end - def input_port - Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPort + def graph_node + Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphNode end def graph_parameter_link Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphParameterLink end - def mode_value_info - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModeValueInfo + def graph_edge + Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphEdge end def graph_parameter Azure::MachineLearning::Mgmt::V2017_01_01::Models::GraphParameter @@ -141,9 +138,6 @@ def graph_package def column_specification Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnSpecification end - def operation_entity_list_result - Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult - end def blob_location Azure::MachineLearning::Mgmt::V2017_01_01::Models::BlobLocation end @@ -153,54 +147,60 @@ def paginated_web_services_list def module_asset_parameter Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModuleAssetParameter end + def input_port + Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPort + end def async_operation_error_info Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationErrorInfo end + def mode_value_info + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModeValueInfo + end + def example_request + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ExampleRequest + end def service_input_output_specification Azure::MachineLearning::Mgmt::V2017_01_01::Models::ServiceInputOutputSpecification end def async_operation_status Azure::MachineLearning::Mgmt::V2017_01_01::Models::AsyncOperationStatus end - def diagnostics_configuration - Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsConfiguration - end - def operation_display_info - Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationDisplayInfo - end def output_port Azure::MachineLearning::Mgmt::V2017_01_01::Models::OutputPort end + def web_service + Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService + end + def diagnostics_configuration + Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsConfiguration + end def operation_entity Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntity end - def web_service - Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService + def column_type + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType end def web_service_properties_for_graph Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebServicePropertiesForGraph end - def provisioning_state - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ProvisioningState - end def diagnostics_level Azure::MachineLearning::Mgmt::V2017_01_01::Models::DiagnosticsLevel end - def column_type - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnType + def input_port_type + Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPortType end - def column_format - Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnFormat + def provisioning_state + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ProvisioningState end def asset_type Azure::MachineLearning::Mgmt::V2017_01_01::Models::AssetType end - def input_port_type - Azure::MachineLearning::Mgmt::V2017_01_01::Models::InputPortType - end def output_port_type Azure::MachineLearning::Mgmt::V2017_01_01::Models::OutputPortType end + def column_format + Azure::MachineLearning::Mgmt::V2017_01_01::Models::ColumnFormat + end def parameter_type Azure::MachineLearning::Mgmt::V2017_01_01::Models::ParameterType end diff --git a/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb b/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb index 582d5c3042..0165329976 100644 --- a/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb @@ -11,24 +11,24 @@ module Mgmt ApplicationDefinitions = Azure::ManagedApplications::Mgmt::V2018_06_01::ApplicationDefinitions module Models - Sku = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Sku - Plan = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Plan + ProvisioningState = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ProvisioningState Identity = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Identity + Application = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Application + Plan = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Plan + GenericResource = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::GenericResource + Sku = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Sku + ApplicationListResult = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationListResult PlanPatchable = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::PlanPatchable - ErrorResponse = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ErrorResponse ApplicationProviderAuthorization = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationProviderAuthorization ApplicationDefinitionListResult = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinitionListResult - ApplicationListResult = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationListResult ApplicationArtifact = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifact - Resource = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Resource - GenericResource = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::GenericResource - Application = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Application ApplicationPatchable = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationPatchable ApplicationDefinition = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinition - ProvisioningState = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ProvisioningState ApplicationLockLevel = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationLockLevel ApplicationArtifactType = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifactType ResourceIdentityType = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ResourceIdentityType + Resource = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Resource + ErrorResponse = Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ErrorResponse end class ManagedApplicationsManagementClass @@ -62,51 +62,45 @@ def method_missing(method, *args) end class ModelClasses - def sku - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Sku + def provisioning_state + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ProvisioningState + end + def identity + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Identity + end + def application + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Application end def plan Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Plan end - def identity - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Identity + def generic_resource + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::GenericResource + end + def sku + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Sku + end + def application_list_result + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationListResult end def plan_patchable Azure::ManagedApplications::Mgmt::V2018_06_01::Models::PlanPatchable end - def error_response - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ErrorResponse - end def application_provider_authorization Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationProviderAuthorization end def application_definition_list_result Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinitionListResult end - def application_list_result - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationListResult - end def application_artifact Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationArtifact end - def resource - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Resource - end - def generic_resource - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::GenericResource - end - def application - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Application - end def application_patchable Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationPatchable end def application_definition Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationDefinition end - def provisioning_state - Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ProvisioningState - end def application_lock_level Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ApplicationLockLevel end @@ -116,6 +110,12 @@ def application_artifact_type def resource_identity_type Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ResourceIdentityType end + def resource + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::Resource + end + def error_response + Azure::ManagedApplications::Mgmt::V2018_06_01::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb b/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb index 14f3182b97..ff69ffaf97 100644 --- a/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb @@ -11,12 +11,12 @@ module Mgmt UserAssignedIdentities = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::UserAssignedIdentities module Models + UserAssignedIdentitiesListResult = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentitiesListResult + UserAssignedIdentities = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities + Operation = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Operation Identity = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity OperationDisplay = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay - Operation = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Operation - UserAssignedIdentitiesListResult = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentitiesListResult OperationListResult = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationListResult - UserAssignedIdentities = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities end class ManagedServiceIdentityManagementClass @@ -50,24 +50,24 @@ def method_missing(method, *args) end class ModelClasses - def identity - Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity + def user_assigned_identities_list_result + Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentitiesListResult end - def operation_display - Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay + def user_assigned_identities + Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities end def operation Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Operation end - def user_assigned_identities_list_result - Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentitiesListResult + def identity + Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity + end + def operation_display + Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationDisplay end def operation_list_result Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::OperationListResult end - def user_assigned_identities - Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::UserAssignedIdentities - end end end end diff --git a/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb b/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb index 80f1528636..f8a215a6a0 100644 --- a/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb +++ b/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb @@ -7,21 +7,21 @@ module Azure::Profiles::Latest module MarketplaceOrdering module Mgmt - MarketplaceAgreements = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceAgreements Operations = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Operations + MarketplaceAgreements = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceAgreements module Models - OperationDisplay = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay Operation = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation + OperationDisplay = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay ErrorResponseError = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponseError OperationListResult = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationListResult - ErrorResponse = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse Resource = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Resource AgreementTerms = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms + ErrorResponse = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse end class MarketplaceOrderingManagementClass - attr_reader :marketplace_agreements, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :marketplace_agreements, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -31,8 +31,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @marketplace_agreements = @client_0.marketplace_agreements @operations = @client_0.operations + @marketplace_agreements = @client_0.marketplace_agreements @model_classes = ModelClasses.new end @@ -51,27 +51,27 @@ def method_missing(method, *args) end class ModelClasses - def operation_display - Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay - end def operation Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation end + def operation_display + Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay + end def error_response_error Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponseError end def operation_list_result Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationListResult end - def error_response - Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse - end def resource Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Resource end def agreement_terms Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms end + def error_response + Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb index bfa9643f3b..1c2632073d 100644 --- a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb @@ -7,46 +7,30 @@ module Azure::Profiles::Latest module MediaServices module Mgmt - Operations = Azure::MediaServices::Mgmt::V2018_06_01_preview::Operations Mediaservices = Azure::MediaServices::Mgmt::V2018_06_01_preview::Mediaservices - Locations = Azure::MediaServices::Mgmt::V2018_06_01_preview::Locations Assets = Azure::MediaServices::Mgmt::V2018_06_01_preview::Assets ContentKeyPolicies = Azure::MediaServices::Mgmt::V2018_06_01_preview::ContentKeyPolicies Transforms = Azure::MediaServices::Mgmt::V2018_06_01_preview::Transforms Jobs = Azure::MediaServices::Mgmt::V2018_06_01_preview::Jobs + Operations = Azure::MediaServices::Mgmt::V2018_06_01_preview::Operations StreamingPolicies = Azure::MediaServices::Mgmt::V2018_06_01_preview::StreamingPolicies - StreamingLocators = Azure::MediaServices::Mgmt::V2018_06_01_preview::StreamingLocators + Locations = Azure::MediaServices::Mgmt::V2018_06_01_preview::Locations LiveEvents = Azure::MediaServices::Mgmt::V2018_06_01_preview::LiveEvents - LiveOutputs = Azure::MediaServices::Mgmt::V2018_06_01_preview::LiveOutputs + StreamingLocators = Azure::MediaServices::Mgmt::V2018_06_01_preview::StreamingLocators StreamingEndpoints = Azure::MediaServices::Mgmt::V2018_06_01_preview::StreamingEndpoints + LiveOutputs = Azure::MediaServices::Mgmt::V2018_06_01_preview::LiveOutputs module Models - CencDrmConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CencDrmConfiguration - Provider = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Provider - Overlay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Overlay - Operation = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Operation - EnvelopeEncryption = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnvelopeEncryption - EntityNameAvailabilityCheckOutput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntityNameAvailabilityCheckOutput - NoEncryption = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::NoEncryption - SyncStorageKeysInput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SyncStorageKeysInput - EnabledProtocols = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnabledProtocols - ContentKeyPolicyCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyCollection ODataError = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ODataError Preset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Preset - OperationCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationCollection Codec = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Codec - CheckNameAvailabilityInput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CheckNameAvailabilityInput LiveOutputListResult = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutputListResult CbcsDrmConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CbcsDrmConfiguration LiveEventEndpoint = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventEndpoint - Resource = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Resource IPRange = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::IPRange AssetStorageEncryptionKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetStorageEncryptionKey - OperationDisplay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationDisplay AssetCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetCollection - Location = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Location ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction - StorageAccount = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccount StreamingPolicyWidevineConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyWidevineConfiguration JobInput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInput ContentKeyPolicyPlayReadyPlayRight = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyPlayRight @@ -54,7 +38,6 @@ module Models ContentKeyPolicyPlayReadyLicense = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyLicense ListPathsResponse = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ListPathsResponse StreamingPolicyContentKeys = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyContentKeys - Format = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Format ContentKeyPolicyConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyConfiguration ListContentKeysResponse = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ListContentKeysResponse DefaultKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::DefaultKey @@ -68,8 +51,6 @@ module Models JobError = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobError Rectangle = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Rectangle ContentKeyPolicyProperties = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyProperties - Filters = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Filters - ApiError = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ApiError Layer = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Layer SubscriptionMediaServiceCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SubscriptionMediaServiceCollection CommonEncryptionCbcs = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CommonEncryptionCbcs @@ -93,111 +74,130 @@ module Models ContentKeyPolicyRestriction = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyRestriction LiveEventActionInput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventActionInput JobCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobCollection - CrossSiteAccessPolicies = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CrossSiteAccessPolicies + OperationDisplay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationDisplay JobErrorDetail = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorDetail LiveEventEncoding = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventEncoding - StreamingPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyPlayReadyConfiguration + CrossSiteAccessPolicies = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CrossSiteAccessPolicies LiveEventPreview = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventPreview JobOutput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobOutput LiveEventPreviewAccessControl = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventPreviewAccessControl ContentKeyPolicyRestrictionTokenKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyRestrictionTokenKey TransformOutput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TransformOutput - AssetContainerSas = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetContainerSas + StreamingPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyPlayReadyConfiguration IPAccessControl = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::IPAccessControl - TrackedResource = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackedResource MediaService = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::MediaService SubscriptionMediaService = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SubscriptionMediaService - ProxyResource = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ProxyResource Asset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Asset ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader + Operation = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Operation ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ContentKeyPolicyOpenRestriction = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyOpenRestriction ContentKeyPolicyUnknownRestriction = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyUnknownRestriction - ContentKeyPolicySymmetricTokenKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicySymmetricTokenKey + AssetContainerSas = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetContainerSas ContentKeyPolicyRsaTokenKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyRsaTokenKey - ContentKeyPolicyX509CertificateTokenKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyX509CertificateTokenKey - ContentKeyPolicyTokenRestriction = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyTokenRestriction + ContentKeyPolicySymmetricTokenKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicySymmetricTokenKey ContentKeyPolicyClearKeyConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyClearKeyConfiguration + ContentKeyPolicyX509CertificateTokenKey = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyX509CertificateTokenKey ContentKeyPolicyUnknownConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyUnknownConfiguration ContentKeyPolicyWidevineConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyWidevineConfiguration - ContentKeyPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyConfiguration ContentKeyPolicyFairPlayConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyFairPlayConfiguration - ContentKeyPolicy = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicy - Audio = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Audio + ContentKeyPolicyTokenRestriction = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyTokenRestriction + Filters = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Filters AacAudio = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AacAudio - AudioAnalyzerPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioAnalyzerPreset - AudioOverlay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioOverlay + ContentKeyPolicy = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicy + ContentKeyPolicyPlayReadyConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyConfiguration CopyVideo = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CopyVideo Video = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Video - Image = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Image - ImageFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ImageFormat + Audio = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Audio JpgFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JpgFormat PngFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::PngFormat + AudioOverlay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioOverlay CopyAudio = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CopyAudio VideoLayer = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoLayer - H264Layer = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Layer + ImageFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ImageFormat H264Video = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Video JpgLayer = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JpgLayer JpgImage = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JpgImage - MultiBitrateFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::MultiBitrateFormat Mp4Format = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Mp4Format + AudioAnalyzerPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioAnalyzerPreset PngLayer = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::PngLayer PngImage = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::PngImage - BuiltInStandardEncoderPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::BuiltInStandardEncoderPreset StandardEncoderPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StandardEncoderPreset + H264Layer = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Layer VideoAnalyzerPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoAnalyzerPreset TransportStreamFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TransportStreamFormat - VideoOverlay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoOverlay Transform = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Transform + MultiBitrateFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::MultiBitrateFormat JobInputClip = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputClip JobInputs = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputs - JobInputAsset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputAsset JobInputHttp = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputHttp + BuiltInStandardEncoderPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::BuiltInStandardEncoderPreset JobOutputAsset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobOutputAsset - Job = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Job StreamingPolicy = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicy - StreamingLocator = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocator LiveOutput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutput + VideoOverlay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoOverlay LiveEvent = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEvent StreamingEndpoint = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingEndpoint - StorageAccountType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccountType - AssetStorageEncryptionFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetStorageEncryptionFormat AssetContainerPermission = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetContainerPermission + JobInputAsset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputAsset ContentKeyPolicyPlayReadyUnknownOutputPassingOption = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyUnknownOutputPassingOption ContentKeyPolicyPlayReadyLicenseType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyLicenseType - ContentKeyPolicyPlayReadyContentType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentType ContentKeyPolicyRestrictionTokenType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyRestrictionTokenType - ContentKeyPolicyFairPlayRentalAndLeaseKeyType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType + Job = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Job AacAudioProfile = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AacAudioProfile StretchMode = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StretchMode + ContentKeyPolicyFairPlayRentalAndLeaseKeyType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType + AssetStorageEncryptionFormat = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetStorageEncryptionFormat + StreamingLocator = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocator + H264VideoProfile = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264VideoProfile + ApiError = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ApiError + StorageAccountType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccountType DeinterlaceParity = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::DeinterlaceParity DeinterlaceMode = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::DeinterlaceMode Rotation = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Rotation - H264VideoProfile = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264VideoProfile - EntropyMode = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntropyMode - H264Complexity = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Complexity EncoderNamedPreset = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EncoderNamedPreset - OnErrorType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OnErrorType + ContentKeyPolicyPlayReadyContentType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentType Priority = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Priority - JobErrorCode = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCode - JobErrorCategory = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCategory JobRetry = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobRetry - JobState = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobState - TrackPropertyType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackPropertyType + OnErrorType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OnErrorType + EntropyMode = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntropyMode + H264Complexity = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Complexity TrackPropertyCompareOperation = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackPropertyCompareOperation - StreamingLocatorContentKeyType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocatorContentKeyType - StreamingPolicyStreamingProtocol = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyStreamingProtocol EncryptionScheme = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EncryptionScheme - LiveOutputResourceState = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutputResourceState + TrackPropertyType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackPropertyType + JobErrorCode = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCode + JobErrorCategory = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCategory LiveEventInputProtocol = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventInputProtocol LiveEventEncodingType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventEncodingType + LiveOutputResourceState = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutputResourceState + StreamingLocatorContentKeyType = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocatorContentKeyType + StreamingPolicyStreamingProtocol = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyStreamingProtocol LiveEventResourceState = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventResourceState StreamOptionsFlag = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamOptionsFlag StreamingEndpointResourceState = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingEndpointResourceState + CheckNameAvailabilityInput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CheckNameAvailabilityInput + OperationCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationCollection + JobState = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobState + TrackedResource = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackedResource + ProxyResource = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ProxyResource + Resource = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Resource + StorageAccount = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccount + Format = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Format + Location = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Location + Image = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Image + Provider = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Provider + CencDrmConfiguration = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CencDrmConfiguration + Overlay = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Overlay + EnvelopeEncryption = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnvelopeEncryption + EntityNameAvailabilityCheckOutput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntityNameAvailabilityCheckOutput + NoEncryption = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::NoEncryption + SyncStorageKeysInput = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SyncStorageKeysInput + EnabledProtocols = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnabledProtocols + ContentKeyPolicyCollection = Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyCollection end class MediaServicesManagementClass - attr_reader :operations, :mediaservices, :locations, :assets, :content_key_policies, :transforms, :jobs, :streaming_policies, :streaming_locators, :live_events, :live_outputs, :streaming_endpoints, :configurable, :base_url, :options, :model_classes + attr_reader :mediaservices, :assets, :content_key_policies, :transforms, :jobs, :operations, :streaming_policies, :locations, :live_events, :streaming_locators, :streaming_endpoints, :live_outputs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -207,18 +207,18 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations @mediaservices = @client_0.mediaservices - @locations = @client_0.locations @assets = @client_0.assets @content_key_policies = @client_0.content_key_policies @transforms = @client_0.transforms @jobs = @client_0.jobs + @operations = @client_0.operations @streaming_policies = @client_0.streaming_policies - @streaming_locators = @client_0.streaming_locators + @locations = @client_0.locations @live_events = @client_0.live_events - @live_outputs = @client_0.live_outputs + @streaming_locators = @client_0.streaming_locators @streaming_endpoints = @client_0.streaming_endpoints + @live_outputs = @client_0.live_outputs @model_classes = ModelClasses.new end @@ -237,51 +237,15 @@ def method_missing(method, *args) end class ModelClasses - def cenc_drm_configuration - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CencDrmConfiguration - end - def provider - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Provider - end - def overlay - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Overlay - end - def operation - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Operation - end - def envelope_encryption - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnvelopeEncryption - end - def entity_name_availability_check_output - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntityNameAvailabilityCheckOutput - end - def no_encryption - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::NoEncryption - end - def sync_storage_keys_input - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SyncStorageKeysInput - end - def enabled_protocols - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnabledProtocols - end - def content_key_policy_collection - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyCollection - end def odata_error Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ODataError end def preset Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Preset end - def operation_collection - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationCollection - end def codec Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Codec end - def check_name_availability_input - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CheckNameAvailabilityInput - end def live_output_list_result Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutputListResult end @@ -291,30 +255,18 @@ def cbcs_drm_configuration def live_event_endpoint Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventEndpoint end - def resource - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Resource - end def iprange Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::IPRange end def asset_storage_encryption_key Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetStorageEncryptionKey end - def operation_display - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationDisplay - end def asset_collection Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetCollection end - def location - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Location - end def content_key_policy_play_ready_explicit_analog_television_restriction Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction end - def storage_account - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccount - end def streaming_policy_widevine_configuration Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyWidevineConfiguration end @@ -336,9 +288,6 @@ def list_paths_response def streaming_policy_content_keys Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyContentKeys end - def format - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Format - end def content_key_policy_configuration Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyConfiguration end @@ -378,12 +327,6 @@ def rectangle def content_key_policy_properties Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyProperties end - def filters - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Filters - end - def api_error - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ApiError - end def layer Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Layer end @@ -453,8 +396,8 @@ def live_event_action_input def job_collection Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobCollection end - def cross_site_access_policies - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CrossSiteAccessPolicies + def operation_display + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationDisplay end def job_error_detail Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorDetail @@ -462,8 +405,8 @@ def job_error_detail def live_event_encoding Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventEncoding end - def streaming_policy_play_ready_configuration - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyPlayReadyConfiguration + def cross_site_access_policies + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CrossSiteAccessPolicies end def live_event_preview Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventPreview @@ -480,30 +423,27 @@ def content_key_policy_restriction_token_key def transform_output Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TransformOutput end - def asset_container_sas - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetContainerSas + def streaming_policy_play_ready_configuration + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyPlayReadyConfiguration end def ipaccess_control Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::IPAccessControl end - def tracked_resource - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackedResource - end def media_service Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::MediaService end def subscription_media_service Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SubscriptionMediaService end - def proxy_resource - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ProxyResource - end def asset Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Asset end def content_key_policy_play_ready_content_encryption_key_from_header Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader end + def operation + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Operation + end def content_key_policy_play_ready_content_encryption_key_from_key_identifier Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier end @@ -513,47 +453,44 @@ def content_key_policy_open_restriction def content_key_policy_unknown_restriction Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyUnknownRestriction end - def content_key_policy_symmetric_token_key - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicySymmetricTokenKey + def asset_container_sas + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetContainerSas end def content_key_policy_rsa_token_key Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyRsaTokenKey end - def content_key_policy_x509_certificate_token_key - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyX509CertificateTokenKey - end - def content_key_policy_token_restriction - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyTokenRestriction + def content_key_policy_symmetric_token_key + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicySymmetricTokenKey end def content_key_policy_clear_key_configuration Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyClearKeyConfiguration end + def content_key_policy_x509_certificate_token_key + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyX509CertificateTokenKey + end def content_key_policy_unknown_configuration Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyUnknownConfiguration end def content_key_policy_widevine_configuration Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyWidevineConfiguration end - def content_key_policy_play_ready_configuration - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyConfiguration - end def content_key_policy_fair_play_configuration Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyFairPlayConfiguration end - def content_key_policy - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicy + def content_key_policy_token_restriction + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyTokenRestriction end - def audio - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Audio + def filters + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Filters end def aac_audio Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AacAudio end - def audio_analyzer_preset - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioAnalyzerPreset + def content_key_policy + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicy end - def audio_overlay - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioOverlay + def content_key_policy_play_ready_configuration + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyConfiguration end def copy_video Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CopyVideo @@ -561,11 +498,8 @@ def copy_video def video Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Video end - def image - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Image - end - def image_format - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ImageFormat + def audio + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Audio end def jpg_format Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JpgFormat @@ -573,14 +507,17 @@ def jpg_format def png_format Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::PngFormat end + def audio_overlay + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioOverlay + end def copy_audio Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CopyAudio end def video_layer Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoLayer end - def h264_layer - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Layer + def image_format + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ImageFormat end def h264_video Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Video @@ -591,92 +528,83 @@ def jpg_layer def jpg_image Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JpgImage end - def multi_bitrate_format - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::MultiBitrateFormat - end def mp4_format Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Mp4Format end + def audio_analyzer_preset + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AudioAnalyzerPreset + end def png_layer Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::PngLayer end def png_image Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::PngImage end - def built_in_standard_encoder_preset - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::BuiltInStandardEncoderPreset - end def standard_encoder_preset Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StandardEncoderPreset end + def h264_layer + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Layer + end def video_analyzer_preset Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoAnalyzerPreset end def transport_stream_format Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TransportStreamFormat end - def video_overlay - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoOverlay - end def transform Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Transform end + def multi_bitrate_format + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::MultiBitrateFormat + end def job_input_clip Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputClip end def job_inputs Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputs end - def job_input_asset - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputAsset - end def job_input_http Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputHttp end + def built_in_standard_encoder_preset + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::BuiltInStandardEncoderPreset + end def job_output_asset Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobOutputAsset end - def job - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Job - end def streaming_policy Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicy end - def streaming_locator - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocator - end def live_output Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutput end + def video_overlay + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::VideoOverlay + end def live_event Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEvent end def streaming_endpoint Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingEndpoint end - def storage_account_type - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccountType - end - def asset_storage_encryption_format - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetStorageEncryptionFormat - end def asset_container_permission Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetContainerPermission end + def job_input_asset + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobInputAsset + end def content_key_policy_play_ready_unknown_output_passing_option Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyUnknownOutputPassingOption end def content_key_policy_play_ready_license_type Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyLicenseType end - def content_key_policy_play_ready_content_type - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentType - end def content_key_policy_restriction_token_type Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyRestrictionTokenType end - def content_key_policy_fair_play_rental_and_lease_key_type - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType + def job + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Job end def aac_audio_profile Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AacAudioProfile @@ -684,6 +612,24 @@ def aac_audio_profile def stretch_mode Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StretchMode end + def content_key_policy_fair_play_rental_and_lease_key_type + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyFairPlayRentalAndLeaseKeyType + end + def asset_storage_encryption_format + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::AssetStorageEncryptionFormat + end + def streaming_locator + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocator + end + def h264_video_profile + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264VideoProfile + end + def api_error + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ApiError + end + def storage_account_type + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccountType + end def deinterlace_parity Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::DeinterlaceParity end @@ -693,53 +639,41 @@ def deinterlace_mode def rotation Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Rotation end - def h264_video_profile - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264VideoProfile - end - def entropy_mode - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntropyMode - end - def h264_complexity - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Complexity - end def encoder_named_preset Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EncoderNamedPreset end - def on_error_type - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OnErrorType + def content_key_policy_play_ready_content_type + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyPlayReadyContentType end def priority Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Priority end - def job_error_code - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCode - end - def job_error_category - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCategory - end def job_retry Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobRetry end - def job_state - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobState + def on_error_type + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OnErrorType end - def track_property_type - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackPropertyType + def entropy_mode + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntropyMode + end + def h264_complexity + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::H264Complexity end def track_property_compare_operation Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackPropertyCompareOperation end - def streaming_locator_content_key_type - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocatorContentKeyType - end - def streaming_policy_streaming_protocol - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyStreamingProtocol - end def encryption_scheme Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EncryptionScheme end - def live_output_resource_state - Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutputResourceState + def track_property_type + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackPropertyType + end + def job_error_code + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCode + end + def job_error_category + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobErrorCategory end def live_event_input_protocol Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventInputProtocol @@ -747,6 +681,15 @@ def live_event_input_protocol def live_event_encoding_type Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventEncodingType end + def live_output_resource_state + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveOutputResourceState + end + def streaming_locator_content_key_type + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingLocatorContentKeyType + end + def streaming_policy_streaming_protocol + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingPolicyStreamingProtocol + end def live_event_resource_state Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::LiveEventResourceState end @@ -756,6 +699,63 @@ def stream_options_flag def streaming_endpoint_resource_state Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StreamingEndpointResourceState end + def check_name_availability_input + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CheckNameAvailabilityInput + end + def operation_collection + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::OperationCollection + end + def job_state + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::JobState + end + def tracked_resource + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::TrackedResource + end + def proxy_resource + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ProxyResource + end + def resource + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Resource + end + def storage_account + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::StorageAccount + end + def format + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Format + end + def location + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Location + end + def image + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Image + end + def provider + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Provider + end + def cenc_drm_configuration + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::CencDrmConfiguration + end + def overlay + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::Overlay + end + def envelope_encryption + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnvelopeEncryption + end + def entity_name_availability_check_output + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EntityNameAvailabilityCheckOutput + end + def no_encryption + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::NoEncryption + end + def sync_storage_keys_input + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::SyncStorageKeysInput + end + def enabled_protocols + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::EnabledProtocols + end + def content_key_policy_collection + Azure::MediaServices::Mgmt::V2018_06_01_preview::Models::ContentKeyPolicyCollection + end end end end diff --git a/azure_sdk/lib/latest/modules/monitor_profile_module.rb b/azure_sdk/lib/latest/modules/monitor_profile_module.rb index 3a91a1dd5f..6de9fd9318 100644 --- a/azure_sdk/lib/latest/modules/monitor_profile_module.rb +++ b/azure_sdk/lib/latest/modules/monitor_profile_module.rb @@ -7,11 +7,11 @@ module Azure::Profiles::Latest module Monitor module Mgmt - ActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::ActivityLogs AutoscaleSettings = Azure::Monitor::Mgmt::V2015_04_01::AutoscaleSettings EventCategories = Azure::Monitor::Mgmt::V2015_04_01::EventCategories Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations TenantActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::TenantActivityLogs + ActivityLogs = Azure::Monitor::Mgmt::V2015_04_01::ActivityLogs AlertRules = Azure::Monitor::Mgmt::V2016_03_01::AlertRules AlertRuleIncidents = Azure::Monitor::Mgmt::V2016_03_01::AlertRuleIncidents LogProfiles = Azure::Monitor::Mgmt::V2016_03_01::LogProfiles @@ -27,6 +27,7 @@ module Mgmt ScheduledQueryRules = Azure::Monitor::Mgmt::V2018_04_16::ScheduledQueryRules module Models + Operation = Azure::Monitor::Mgmt::V2015_04_01::Models::Operation RecurrentSchedule = Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule Recurrence = Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence SenderAuthorization = Azure::Monitor::Mgmt::V2015_04_01::Models::SenderAuthorization @@ -44,30 +45,25 @@ module Models MetricTrigger = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger EventCategoryCollection = Azure::Monitor::Mgmt::V2015_04_01::Models::EventCategoryCollection HttpRequestInfo = Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo - OperationDisplay = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay TimeWindow = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow - Operation = Azure::Monitor::Mgmt::V2015_04_01::Models::Operation - OperationListResult = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult AutoscaleSettingResource = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource EventLevel = Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel - MetricStatisticType = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType TimeAggregationType = Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType - ComparisonOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType + MetricStatisticType = Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType ScaleDirection = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection + ComparisonOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType ScaleType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType - RuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition - AlertRuleResourcePatch = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch - RuleManagementEventClaimsDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource - AlertRuleResourceCollection = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection + OperationDisplay = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay + OperationListResult = Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult RuleDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleDataSource LogProfileResourcePatch = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResourcePatch ManagementEventAggregationCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventAggregationCondition LogProfileCollection = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileCollection Incident = Azure::Monitor::Mgmt::V2016_03_01::Models::Incident RuleAction = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction - IncidentListResult = Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult RuleMetricDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleMetricDataSource RuleManagementEventDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource + IncidentListResult = Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult ThresholdRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition LocationThresholdRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition ManagementEventRuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition @@ -77,6 +73,10 @@ module Models LogProfileResource = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResource ConditionOperator = Azure::Monitor::Mgmt::V2016_03_01::Models::ConditionOperator TimeAggregationOperator = Azure::Monitor::Mgmt::V2016_03_01::Models::TimeAggregationOperator + RuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition + AlertRuleResourcePatch = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch + RuleManagementEventClaimsDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource + AlertRuleResourceCollection = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection ActivityLogAlertLeafCondition = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertLeafCondition ActivityLogAlertAllOfCondition = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertAllOfCondition ActivityLogAlertActionGroup = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionGroup @@ -84,80 +84,80 @@ module Models ActivityLogAlertPatchBody = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertPatchBody ActivityLogAlertList = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertList ActivityLogAlertResource = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource + RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy + CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType ProxyOnlyResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource MetricSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings LogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection - RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy DiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource - CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType Baseline = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Baseline BaselineResponse = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::BaselineResponse BaselineMetadataValue = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::BaselineMetadataValue TimeSeriesInformation = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::TimeSeriesInformation CalculateBaselineResponse = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::CalculateBaselineResponse Sensitivity = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Sensitivity + MetricDefinition = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition + MetricDefinitionCollection = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection + MetricAvailability = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability MetricValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue - LocalizableString = Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString MetadataValue = Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue - MetricDefinition = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition TimeSeriesElement = Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement Metric = Azure::Monitor::Mgmt::V2018_01_01::Models::Metric - MetricDefinitionCollection = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection Response = Azure::Monitor::Mgmt::V2018_01_01::Models::Response - MetricAvailability = Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability - Unit = Azure::Monitor::Mgmt::V2018_01_01::Models::Unit AggregationType = Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType ResultType = Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType - EmailReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::EmailReceiver - SmsReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::SmsReceiver - MetricAlertCriteria = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertCriteria - WebhookReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::WebhookReceiver - MetricAlertResourcePatch = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResourcePatch - ItsmReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::ItsmReceiver - MetricAlertStatusProperties = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusProperties - AzureAppPushReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::AzureAppPushReceiver - MetricAlertStatusCollection = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusCollection - AutomationRunbookReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::AutomationRunbookReceiver - MetricCriteria = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricCriteria + Unit = Azure::Monitor::Mgmt::V2018_01_01::Models::Unit + LocalizableString = Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString VoiceReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::VoiceReceiver LogicAppReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::LogicAppReceiver MetricAlertAction = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertAction MetricAlertResourceCollection = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResourceCollection - ActionGroupPatchBody = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupPatchBody MetricDimension = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricDimension AzureFunctionReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::AzureFunctionReceiver MetricAlertStatus = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatus - EnableRequest = Azure::Monitor::Mgmt::V2018_03_01::Models::EnableRequest - ActionGroupList = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList MetricAlertResource = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResource MetricAlertSingleResourceMultipleMetricCriteria = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertSingleResourceMultipleMetricCriteria + MetricCriteria = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricCriteria ActionGroupResource = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource ReceiverStatus = Azure::Monitor::Mgmt::V2018_03_01::Models::ReceiverStatus + EnableRequest = Azure::Monitor::Mgmt::V2018_03_01::Models::EnableRequest + EmailReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::EmailReceiver + ActionGroupPatchBody = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupPatchBody + WebhookReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::WebhookReceiver + AzureAppPushReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::AzureAppPushReceiver + AutomationRunbookReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::AutomationRunbookReceiver + ItsmReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::ItsmReceiver + SmsReceiver = Azure::Monitor::Mgmt::V2018_03_01::Models::SmsReceiver + ActionGroupList = Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList + MetricAlertCriteria = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertCriteria + MetricAlertResourcePatch = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResourcePatch + MetricAlertStatusProperties = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusProperties + MetricAlertStatusCollection = Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusCollection + Source = Azure::Monitor::Mgmt::V2018_04_16::Models::Source + MetricTriggerType = Azure::Monitor::Mgmt::V2018_04_16::Models::MetricTriggerType + ProvisioningState = Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState + Action = Azure::Monitor::Mgmt::V2018_04_16::Models::Action + AlertSeverity = Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity + QueryType = Azure::Monitor::Mgmt::V2018_04_16::Models::QueryType LogSearchRuleResourceCollection = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourceCollection - Resource = Azure::Monitor::Mgmt::V2018_04_16::Models::Resource LogMetricTrigger = Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger - Schedule = Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule TriggerCondition = Azure::Monitor::Mgmt::V2018_04_16::Models::TriggerCondition - Action = Azure::Monitor::Mgmt::V2018_04_16::Models::Action - Source = Azure::Monitor::Mgmt::V2018_04_16::Models::Source AzNsActionGroup = Azure::Monitor::Mgmt::V2018_04_16::Models::AzNsActionGroup - LogSearchRuleResourcePatch = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourcePatch - ErrorResponse = Azure::Monitor::Mgmt::V2018_04_16::Models::ErrorResponse + Schedule = Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule + Resource = Azure::Monitor::Mgmt::V2018_04_16::Models::Resource LogSearchRuleResource = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResource - AlertingAction = Azure::Monitor::Mgmt::V2018_04_16::Models::AlertingAction + LogSearchRuleResourcePatch = Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourcePatch Enabled = Azure::Monitor::Mgmt::V2018_04_16::Models::Enabled - ProvisioningState = Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState - QueryType = Azure::Monitor::Mgmt::V2018_04_16::Models::QueryType + AlertingAction = Azure::Monitor::Mgmt::V2018_04_16::Models::AlertingAction ConditionalOperator = Azure::Monitor::Mgmt::V2018_04_16::Models::ConditionalOperator - MetricTriggerType = Azure::Monitor::Mgmt::V2018_04_16::Models::MetricTriggerType - AlertSeverity = Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity + ErrorResponse = Azure::Monitor::Mgmt::V2018_04_16::Models::ErrorResponse end class MonitorManagementClass - attr_reader :activity_logs, :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :alert_rules, :alert_rule_incidents, :log_profiles, :activity_log_alerts, :diagnostic_settings_operations, :diagnostic_settings_category_operations, :metric_baseline, :metric_definitions, :metrics, :metric_alerts, :metric_alerts_status, :action_groups, :scheduled_query_rules, :configurable, :base_url, :options, :model_classes + attr_reader :autoscale_settings, :event_categories, :operations, :tenant_activity_logs, :activity_logs, :alert_rules, :alert_rule_incidents, :log_profiles, :activity_log_alerts, :diagnostic_settings_operations, :diagnostic_settings_category_operations, :metric_baseline, :metric_definitions, :metrics, :metric_alerts, :metric_alerts_status, :action_groups, :scheduled_query_rules, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -167,11 +167,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @activity_logs = @client_0.activity_logs @autoscale_settings = @client_0.autoscale_settings @event_categories = @client_0.event_categories @operations = @client_0.operations @tenant_activity_logs = @client_0.tenant_activity_logs + @activity_logs = @client_0.activity_logs @client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options) if(@client_1.respond_to?(:subscription_id)) @@ -259,6 +259,9 @@ def method_missing(method, *args) end class ModelClasses + def operation + Azure::Monitor::Mgmt::V2015_04_01::Models::Operation + end def recurrent_schedule Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule end @@ -310,50 +313,35 @@ def event_category_collection def http_request_info Azure::Monitor::Mgmt::V2015_04_01::Models::HttpRequestInfo end - def operation_display - Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay - end def time_window Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow end - def operation - Azure::Monitor::Mgmt::V2015_04_01::Models::Operation - end - def operation_list_result - Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult - end def autoscale_setting_resource Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource end def event_level Azure::Monitor::Mgmt::V2015_04_01::Models::EventLevel end - def metric_statistic_type - Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType - end def time_aggregation_type Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType end - def comparison_operation_type - Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType + def metric_statistic_type + Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType end def scale_direction Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection end + def comparison_operation_type + Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType + end def scale_type Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType end - def rule_condition - Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition - end - def alert_rule_resource_patch - Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch - end - def rule_management_event_claims_data_source - Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource + def operation_display + Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay end - def alert_rule_resource_collection - Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection + def operation_list_result + Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult end def rule_data_source Azure::Monitor::Mgmt::V2016_03_01::Models::RuleDataSource @@ -373,15 +361,15 @@ def incident def rule_action Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction end - def incident_list_result - Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult - end def rule_metric_data_source Azure::Monitor::Mgmt::V2016_03_01::Models::RuleMetricDataSource end def rule_management_event_data_source Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource end + def incident_list_result + Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult + end def threshold_rule_condition Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition end @@ -409,6 +397,18 @@ def condition_operator def time_aggregation_operator Azure::Monitor::Mgmt::V2016_03_01::Models::TimeAggregationOperator end + def rule_condition + Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition + end + def alert_rule_resource_patch + Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch + end + def rule_management_event_claims_data_source + Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource + end + def alert_rule_resource_collection + Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection + end def activity_log_alert_leaf_condition Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertLeafCondition end @@ -430,6 +430,12 @@ def activity_log_alert_list def activity_log_alert_resource Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource end + def retention_policy + Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy + end + def category_type + Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType + end def proxy_only_resource Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource end @@ -445,18 +451,12 @@ def diagnostic_settings_category_resource_collection def diagnostic_settings_resource_collection Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection end - def retention_policy - Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy - end def diagnostic_settings_resource Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource end def diagnostic_settings_category_resource Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource end - def category_type - Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType - end def baseline Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Baseline end @@ -475,74 +475,41 @@ def calculate_baseline_response def sensitivity Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Sensitivity end + def metric_definition + Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition + end + def metric_definition_collection + Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection + end + def metric_availability + Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability + end def metric_value Azure::Monitor::Mgmt::V2018_01_01::Models::MetricValue end - def localizable_string - Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString - end def metadata_value Azure::Monitor::Mgmt::V2018_01_01::Models::MetadataValue end - def metric_definition - Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition - end def time_series_element Azure::Monitor::Mgmt::V2018_01_01::Models::TimeSeriesElement end def metric Azure::Monitor::Mgmt::V2018_01_01::Models::Metric end - def metric_definition_collection - Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinitionCollection - end def response Azure::Monitor::Mgmt::V2018_01_01::Models::Response end - def metric_availability - Azure::Monitor::Mgmt::V2018_01_01::Models::MetricAvailability - end - def unit - Azure::Monitor::Mgmt::V2018_01_01::Models::Unit - end def aggregation_type Azure::Monitor::Mgmt::V2018_01_01::Models::AggregationType end def result_type Azure::Monitor::Mgmt::V2018_01_01::Models::ResultType end - def email_receiver - Azure::Monitor::Mgmt::V2018_03_01::Models::EmailReceiver - end - def sms_receiver - Azure::Monitor::Mgmt::V2018_03_01::Models::SmsReceiver - end - def metric_alert_criteria - Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertCriteria - end - def webhook_receiver - Azure::Monitor::Mgmt::V2018_03_01::Models::WebhookReceiver - end - def metric_alert_resource_patch - Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResourcePatch - end - def itsm_receiver - Azure::Monitor::Mgmt::V2018_03_01::Models::ItsmReceiver - end - def metric_alert_status_properties - Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusProperties - end - def azure_app_push_receiver - Azure::Monitor::Mgmt::V2018_03_01::Models::AzureAppPushReceiver - end - def metric_alert_status_collection - Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusCollection - end - def automation_runbook_receiver - Azure::Monitor::Mgmt::V2018_03_01::Models::AutomationRunbookReceiver + def unit + Azure::Monitor::Mgmt::V2018_01_01::Models::Unit end - def metric_criteria - Azure::Monitor::Mgmt::V2018_03_01::Models::MetricCriteria + def localizable_string + Azure::Monitor::Mgmt::V2018_01_01::Models::LocalizableString end def voice_receiver Azure::Monitor::Mgmt::V2018_03_01::Models::VoiceReceiver @@ -556,9 +523,6 @@ def metric_alert_action def metric_alert_resource_collection Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResourceCollection end - def action_group_patch_body - Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupPatchBody - end def metric_dimension Azure::Monitor::Mgmt::V2018_03_01::Models::MetricDimension end @@ -568,77 +532,113 @@ def azure_function_receiver def metric_alert_status Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatus end - def enable_request - Azure::Monitor::Mgmt::V2018_03_01::Models::EnableRequest - end - def action_group_list - Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList - end def metric_alert_resource Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResource end def metric_alert_single_resource_multiple_metric_criteria Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertSingleResourceMultipleMetricCriteria end + def metric_criteria + Azure::Monitor::Mgmt::V2018_03_01::Models::MetricCriteria + end def action_group_resource Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupResource end def receiver_status Azure::Monitor::Mgmt::V2018_03_01::Models::ReceiverStatus end - def log_search_rule_resource_collection - Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourceCollection + def enable_request + Azure::Monitor::Mgmt::V2018_03_01::Models::EnableRequest end - def resource - Azure::Monitor::Mgmt::V2018_04_16::Models::Resource + def email_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::EmailReceiver end - def log_metric_trigger - Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger + def action_group_patch_body + Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupPatchBody end - def schedule - Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule + def webhook_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::WebhookReceiver end - def trigger_condition - Azure::Monitor::Mgmt::V2018_04_16::Models::TriggerCondition + def azure_app_push_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::AzureAppPushReceiver end - def action - Azure::Monitor::Mgmt::V2018_04_16::Models::Action + def automation_runbook_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::AutomationRunbookReceiver + end + def itsm_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::ItsmReceiver + end + def sms_receiver + Azure::Monitor::Mgmt::V2018_03_01::Models::SmsReceiver + end + def action_group_list + Azure::Monitor::Mgmt::V2018_03_01::Models::ActionGroupList + end + def metric_alert_criteria + Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertCriteria + end + def metric_alert_resource_patch + Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertResourcePatch + end + def metric_alert_status_properties + Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusProperties + end + def metric_alert_status_collection + Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertStatusCollection end def source Azure::Monitor::Mgmt::V2018_04_16::Models::Source end + def metric_trigger_type + Azure::Monitor::Mgmt::V2018_04_16::Models::MetricTriggerType + end + def provisioning_state + Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState + end + def action + Azure::Monitor::Mgmt::V2018_04_16::Models::Action + end + def alert_severity + Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity + end + def query_type + Azure::Monitor::Mgmt::V2018_04_16::Models::QueryType + end + def log_search_rule_resource_collection + Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourceCollection + end + def log_metric_trigger + Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger + end + def trigger_condition + Azure::Monitor::Mgmt::V2018_04_16::Models::TriggerCondition + end def az_ns_action_group Azure::Monitor::Mgmt::V2018_04_16::Models::AzNsActionGroup end - def log_search_rule_resource_patch - Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourcePatch + def schedule + Azure::Monitor::Mgmt::V2018_04_16::Models::Schedule end - def error_response - Azure::Monitor::Mgmt::V2018_04_16::Models::ErrorResponse + def resource + Azure::Monitor::Mgmt::V2018_04_16::Models::Resource end def log_search_rule_resource Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResource end - def alerting_action - Azure::Monitor::Mgmt::V2018_04_16::Models::AlertingAction + def log_search_rule_resource_patch + Azure::Monitor::Mgmt::V2018_04_16::Models::LogSearchRuleResourcePatch end def enabled Azure::Monitor::Mgmt::V2018_04_16::Models::Enabled end - def provisioning_state - Azure::Monitor::Mgmt::V2018_04_16::Models::ProvisioningState - end - def query_type - Azure::Monitor::Mgmt::V2018_04_16::Models::QueryType + def alerting_action + Azure::Monitor::Mgmt::V2018_04_16::Models::AlertingAction end def conditional_operator Azure::Monitor::Mgmt::V2018_04_16::Models::ConditionalOperator end - def metric_trigger_type - Azure::Monitor::Mgmt::V2018_04_16::Models::MetricTriggerType - end - def alert_severity - Azure::Monitor::Mgmt::V2018_04_16::Models::AlertSeverity + def error_response + Azure::Monitor::Mgmt::V2018_04_16::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/network_profile_module.rb b/azure_sdk/lib/latest/modules/network_profile_module.rb index e4740d9075..ee5440d03b 100644 --- a/azure_sdk/lib/latest/modules/network_profile_module.rb +++ b/azure_sdk/lib/latest/modules/network_profile_module.rb @@ -8,165 +8,71 @@ module Azure::Profiles::Latest module Network module Mgmt AzureFirewalls = Azure::Network::Mgmt::V2018_06_01::AzureFirewalls - ApplicationGateways = Azure::Network::Mgmt::V2018_06_01::ApplicationGateways ApplicationSecurityGroups = Azure::Network::Mgmt::V2018_06_01::ApplicationSecurityGroups DdosProtectionPlans = Azure::Network::Mgmt::V2018_06_01::DdosProtectionPlans AvailableEndpointServices = Azure::Network::Mgmt::V2018_06_01::AvailableEndpointServices - ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuitAuthorizations - ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuitPeerings ExpressRouteCircuitConnections = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuitConnections - ExpressRouteCircuits = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuits - ExpressRouteServiceProviders = Azure::Network::Mgmt::V2018_06_01::ExpressRouteServiceProviders ExpressRouteCrossConnections = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCrossConnections ExpressRouteCrossConnectionPeerings = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCrossConnectionPeerings - LoadBalancers = Azure::Network::Mgmt::V2018_06_01::LoadBalancers LoadBalancerBackendAddressPools = Azure::Network::Mgmt::V2018_06_01::LoadBalancerBackendAddressPools LoadBalancerFrontendIPConfigurations = Azure::Network::Mgmt::V2018_06_01::LoadBalancerFrontendIPConfigurations InboundNatRules = Azure::Network::Mgmt::V2018_06_01::InboundNatRules LoadBalancerLoadBalancingRules = Azure::Network::Mgmt::V2018_06_01::LoadBalancerLoadBalancingRules LoadBalancerNetworkInterfaces = Azure::Network::Mgmt::V2018_06_01::LoadBalancerNetworkInterfaces LoadBalancerProbes = Azure::Network::Mgmt::V2018_06_01::LoadBalancerProbes - NetworkInterfaces = Azure::Network::Mgmt::V2018_06_01::NetworkInterfaces NetworkInterfaceIPConfigurations = Azure::Network::Mgmt::V2018_06_01::NetworkInterfaceIPConfigurations NetworkInterfaceLoadBalancers = Azure::Network::Mgmt::V2018_06_01::NetworkInterfaceLoadBalancers - NetworkSecurityGroups = Azure::Network::Mgmt::V2018_06_01::NetworkSecurityGroups - SecurityRules = Azure::Network::Mgmt::V2018_06_01::SecurityRules DefaultSecurityRules = Azure::Network::Mgmt::V2018_06_01::DefaultSecurityRules NetworkWatchers = Azure::Network::Mgmt::V2018_06_01::NetworkWatchers PacketCaptures = Azure::Network::Mgmt::V2018_06_01::PacketCaptures ConnectionMonitors = Azure::Network::Mgmt::V2018_06_01::ConnectionMonitors - Operations = Azure::Network::Mgmt::V2018_06_01::Operations - PublicIPAddresses = Azure::Network::Mgmt::V2018_06_01::PublicIPAddresses RouteFilters = Azure::Network::Mgmt::V2018_06_01::RouteFilters + Operations = Azure::Network::Mgmt::V2018_06_01::Operations RouteFilterRules = Azure::Network::Mgmt::V2018_06_01::RouteFilterRules + BgpServiceCommunities = Azure::Network::Mgmt::V2018_06_01::BgpServiceCommunities + VirtualWANs = Azure::Network::Mgmt::V2018_06_01::VirtualWANs + VpnSites = Azure::Network::Mgmt::V2018_06_01::VpnSites + VirtualNetworkPeerings = Azure::Network::Mgmt::V2018_06_01::VirtualNetworkPeerings + VpnSitesConfiguration = Azure::Network::Mgmt::V2018_06_01::VpnSitesConfiguration + VirtualHubs = Azure::Network::Mgmt::V2018_06_01::VirtualHubs + ApplicationGateways = Azure::Network::Mgmt::V2018_06_01::ApplicationGateways + ExpressRouteCircuitAuthorizations = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuitAuthorizations + ExpressRouteCircuitPeerings = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuitPeerings + ExpressRouteCircuits = Azure::Network::Mgmt::V2018_06_01::ExpressRouteCircuits + ExpressRouteServiceProviders = Azure::Network::Mgmt::V2018_06_01::ExpressRouteServiceProviders + LoadBalancers = Azure::Network::Mgmt::V2018_06_01::LoadBalancers + NetworkInterfaces = Azure::Network::Mgmt::V2018_06_01::NetworkInterfaces + NetworkSecurityGroups = Azure::Network::Mgmt::V2018_06_01::NetworkSecurityGroups + SecurityRules = Azure::Network::Mgmt::V2018_06_01::SecurityRules + PublicIPAddresses = Azure::Network::Mgmt::V2018_06_01::PublicIPAddresses RouteTables = Azure::Network::Mgmt::V2018_06_01::RouteTables Routes = Azure::Network::Mgmt::V2018_06_01::Routes - BgpServiceCommunities = Azure::Network::Mgmt::V2018_06_01::BgpServiceCommunities Usages = Azure::Network::Mgmt::V2018_06_01::Usages VirtualNetworks = Azure::Network::Mgmt::V2018_06_01::VirtualNetworks Subnets = Azure::Network::Mgmt::V2018_06_01::Subnets - VirtualNetworkPeerings = Azure::Network::Mgmt::V2018_06_01::VirtualNetworkPeerings VirtualNetworkGateways = Azure::Network::Mgmt::V2018_06_01::VirtualNetworkGateways VirtualNetworkGatewayConnections = Azure::Network::Mgmt::V2018_06_01::VirtualNetworkGatewayConnections LocalNetworkGateways = Azure::Network::Mgmt::V2018_06_01::LocalNetworkGateways - VirtualWANs = Azure::Network::Mgmt::V2018_06_01::VirtualWANs - VpnSites = Azure::Network::Mgmt::V2018_06_01::VpnSites - VpnSitesConfiguration = Azure::Network::Mgmt::V2018_06_01::VpnSitesConfiguration - VirtualHubs = Azure::Network::Mgmt::V2018_06_01::VirtualHubs HubVirtualNetworkConnections = Azure::Network::Mgmt::V2018_06_01::HubVirtualNetworkConnections VpnGateways = Azure::Network::Mgmt::V2018_06_01::VpnGateways VpnConnections = Azure::Network::Mgmt::V2018_06_01::VpnConnections module Models - TopologyAssociation = Azure::Network::Mgmt::V2018_06_01::Models::TopologyAssociation - SubResource = Azure::Network::Mgmt::V2018_06_01::Models::SubResource - TopologyResource = Azure::Network::Mgmt::V2018_06_01::Models::TopologyResource - AzureFirewallRCAction = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCAction - Topology = Azure::Network::Mgmt::V2018_06_01::Models::Topology - AzureFirewallApplicationRule = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRule - VerificationIPFlowParameters = Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowParameters - AzureFirewallNetworkRule = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRule - VerificationIPFlowResult = Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowResult - UsageName = Azure::Network::Mgmt::V2018_06_01::Models::UsageName - AzureFirewallListResult = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallListResult - BgpServiceCommunityListResult = Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunityListResult - BGPCommunity = Azure::Network::Mgmt::V2018_06_01::Models::BGPCommunity - ListHubVirtualNetworkConnectionsResult = Azure::Network::Mgmt::V2018_06_01::Models::ListHubVirtualNetworkConnectionsResult - RouteListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteListResult - NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceDnsSettings - RouteTableListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteTableListResult - Policies = Azure::Network::Mgmt::V2018_06_01::Models::Policies - RouteFilterRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRuleListResult - GetVpnSitesConfigurationRequest = Azure::Network::Mgmt::V2018_06_01::Models::GetVpnSitesConfigurationRequest - LoadBalancerListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerListResult - PublicIPAddressSku = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSku - InboundNatRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRuleListResult - IpTag = Azure::Network::Mgmt::V2018_06_01::Models::IpTag - LoadBalancerBackendAddressPoolListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerBackendAddressPoolListResult - DeviceProperties = Azure::Network::Mgmt::V2018_06_01::Models::DeviceProperties - LoadBalancerFrontendIPConfigurationListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerFrontendIPConfigurationListResult - VpnDeviceScriptParameters = Azure::Network::Mgmt::V2018_06_01::Models::VpnDeviceScriptParameters - LoadBalancerLoadBalancingRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerLoadBalancingRuleListResult - ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendAddress - LoadBalancerProbeListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerProbeListResult - ApplicationGatewayConnectionDraining = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayConnectionDraining - NetworkInterfaceListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceListResult - ApplicationGatewayBackendHealthServer = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServer - ErrorDetails = Azure::Network::Mgmt::V2018_06_01::Models::ErrorDetails - ApplicationGatewayBackendHealthPool = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthPool - Error = Azure::Network::Mgmt::V2018_06_01::Models::Error - ApplicationGatewaySku = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySku - AzureAsyncOperationResult = Azure::Network::Mgmt::V2018_06_01::Models::AzureAsyncOperationResult - VpnClientIPsecParameters = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientIPsecParameters - NetworkInterfaceIPConfigurationListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfigurationListResult - VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListResult - NetworkInterfaceLoadBalancerListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceLoadBalancerListResult - GatewayRouteListResult = Azure::Network::Mgmt::V2018_06_01::Models::GatewayRouteListResult - EffectiveNetworkSecurityGroupAssociation = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupAssociation - VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListResult - EffectiveNetworkSecurityRule = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityRule - VpnClientParameters = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientParameters - EffectiveNetworkSecurityGroup = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroup - BgpPeerStatus = Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatus - EffectiveNetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupListResult - ApplicationGatewayFirewallDisabledRuleGroup = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallDisabledRuleGroup - EffectiveRoute = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRoute - ApplicationGatewayAutoscaleBounds = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleBounds - EffectiveRouteListResult = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteListResult - VpnClientConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientConfiguration - SecurityRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleListResult - ApplicationGatewayFirewallRule = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRule - NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkSecurityGroupListResult - IpsecPolicy = Azure::Network::Mgmt::V2018_06_01::Models::IpsecPolicy - RouteFilterListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterListResult - VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySku - NetworkWatcherListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcherListResult - ApplicationGatewayAvailableSslPredefinedPolicies = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies - TopologyParameters = Azure::Network::Mgmt::V2018_06_01::Models::TopologyParameters - ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroupListResult - TagsObject = Azure::Network::Mgmt::V2018_06_01::Models::TagsObject - DnsNameAvailabilityResult = Azure::Network::Mgmt::V2018_06_01::Models::DnsNameAvailabilityResult - DdosProtectionPlanListResult = Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlanListResult - OperationListResult = Azure::Network::Mgmt::V2018_06_01::Models::OperationListResult - EndpointServicesListResult = Azure::Network::Mgmt::V2018_06_01::Models::EndpointServicesListResult - AzureFirewallApplicationRuleProtocol = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocol - AuthorizationListResult = Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationListResult - Operation = Azure::Network::Mgmt::V2018_06_01::Models::Operation - IPAddressAvailabilityResult = Azure::Network::Mgmt::V2018_06_01::Models::IPAddressAvailabilityResult - OperationPropertiesFormatServiceSpecification = Azure::Network::Mgmt::V2018_06_01::Models::OperationPropertiesFormatServiceSpecification - VirtualNetworkListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkListResult - PublicIPAddressListResult = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressListResult - VirtualNetworkPeeringListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringListResult - NextHopParameters = Azure::Network::Mgmt::V2018_06_01::Models::NextHopParameters - ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringListResult - NextHopResult = Azure::Network::Mgmt::V2018_06_01::Models::NextHopResult - ExpressRouteCircuitServiceProviderProperties = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitServiceProviderProperties - SecurityGroupViewParameters = Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewParameters - ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitArpTable - NetworkInterfaceAssociation = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceAssociation - ExpressRouteCircuitRoutesTable = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTable - SubnetAssociation = Azure::Network::Mgmt::V2018_06_01::Models::SubnetAssociation - ExpressRouteCircuitRoutesTableSummary = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTableSummary SecurityRuleAssociations = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleAssociations - ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitListResult SecurityGroupNetworkInterface = Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupNetworkInterface - AddressSpace = Azure::Network::Mgmt::V2018_06_01::Models::AddressSpace SecurityGroupViewResult = Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewResult ExpressRouteCrossConnectionRoutesTableSummary = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionRoutesTableSummary PacketCaptureStorageLocation = Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureStorageLocation ExpressRouteCircuitReference = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitReference PacketCaptureFilter = Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureFilter - Usage = Azure::Network::Mgmt::V2018_06_01::Models::Usage PacketCaptureParameters = Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureParameters ExpressRouteCrossConnectionPeeringList = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeeringList PacketCapture = Azure::Network::Mgmt::V2018_06_01::Models::PacketCapture - Resource = Azure::Network::Mgmt::V2018_06_01::Models::Resource PacketCaptureResult = Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureResult ListVpnConnectionsResult = Azure::Network::Mgmt::V2018_06_01::Models::ListVpnConnectionsResult PacketCaptureListResult = Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureListResult ListVirtualHubsResult = Azure::Network::Mgmt::V2018_06_01::Models::ListVirtualHubsResult PacketCaptureQueryStatusResult = Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureQueryStatusResult - PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressDnsSettings TroubleshootingParameters = Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingParameters ListVirtualWANsResult = Azure::Network::Mgmt::V2018_06_01::Models::ListVirtualWANsResult QueryTroubleshootingParameters = Azure::Network::Mgmt::V2018_06_01::Models::QueryTroubleshootingParameters @@ -180,7 +86,6 @@ module Models RetentionPolicyParameters = Azure::Network::Mgmt::V2018_06_01::Models::RetentionPolicyParameters ApplicationGatewayProbeHealthResponseMatch = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbeHealthResponseMatch FlowLogStatusParameters = Azure::Network::Mgmt::V2018_06_01::Models::FlowLogStatusParameters - BgpSettings = Azure::Network::Mgmt::V2018_06_01::Models::BgpSettings TrafficAnalyticsConfigurationProperties = Azure::Network::Mgmt::V2018_06_01::Models::TrafficAnalyticsConfigurationProperties ApplicationGatewayAutoscaleConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleConfiguration TrafficAnalyticsProperties = Azure::Network::Mgmt::V2018_06_01::Models::TrafficAnalyticsProperties @@ -190,19 +95,12 @@ module Models ConnectivitySource = Azure::Network::Mgmt::V2018_06_01::Models::ConnectivitySource VirtualNetworkUsage = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkUsage ConnectivityDestination = Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityDestination - ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringConfig - HTTPHeader = Azure::Network::Mgmt::V2018_06_01::Models::HTTPHeader - DhcpOptions = Azure::Network::Mgmt::V2018_06_01::Models::DhcpOptions HTTPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::HTTPConfiguration - ExpressRouteCircuitSku = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSku ProtocolConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ProtocolConfiguration - ExpressRouteCircuitsArpTableListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsArpTableListResult ConnectivityParameters = Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityParameters ExpressRouteCircuitsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult ConnectivityIssue = Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityIssue - ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderListResult ConnectivityHop = Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityHop - UsagesListResult = Azure::Network::Mgmt::V2018_06_01::Models::UsagesListResult ConnectivityInformation = Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityInformation LoadBalancerSku = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSku AzureReachabilityReportLocation = Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportLocation @@ -210,21 +108,16 @@ module Models AzureReachabilityReportParameters = Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportParameters ListVpnSitesResult = Azure::Network::Mgmt::V2018_06_01::Models::ListVpnSitesResult AzureReachabilityReportLatencyInfo = Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportLatencyInfo - LocalNetworkGatewayListResult = Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGatewayListResult AzureReachabilityReportItem = Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportItem - ConnectionResetSharedKey = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionResetSharedKey AzureReachabilityReport = Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReport GatewayRoute = Azure::Network::Mgmt::V2018_06_01::Models::GatewayRoute AvailableProvidersListParameters = Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListParameters - ApplicationGatewayListResult = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayListResult AvailableProvidersListCity = Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListCity + OperationListResult = Azure::Network::Mgmt::V2018_06_01::Models::OperationListResult DdosProtectionPlan = Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlan AvailableProvidersListState = Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListState - ExpressRouteCircuitStats = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitStats AvailableProvidersListCountry = Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListCountry - SubnetListResult = Azure::Network::Mgmt::V2018_06_01::Models::SubnetListResult AvailableProvidersList = Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersList - ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderBandwidthsOffered ConnectionMonitorSource = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorSource ExpressRouteCrossConnectionListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionListResult ConnectionMonitorDestination = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorDestination @@ -233,175 +126,282 @@ module Models ApplicationGatewayBackendHealth = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealth ConnectionMonitor = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitor ApplicationGatewayWebApplicationFirewallConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration - ConnectionMonitorResult = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorResult + Operation = Azure::Network::Mgmt::V2018_06_01::Models::Operation VirtualNetworkUsageName = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkUsageName - ConnectionMonitorListResult = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorListResult - ExpressRouteCircuitsRoutesTableListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsRoutesTableListResult + ConnectionMonitorResult = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorResult ConnectionStateSnapshot = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionStateSnapshot - VpnSiteId = Azure::Network::Mgmt::V2018_06_01::Models::VpnSiteId + ConnectionMonitorListResult = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorListResult ConnectionMonitorQueryResult = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorQueryResult - BgpPeerStatusListResult = Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatusListResult - OperationDisplay = Azure::Network::Mgmt::V2018_06_01::Models::OperationDisplay + VpnSiteId = Azure::Network::Mgmt::V2018_06_01::Models::VpnSiteId Ipv6ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_06_01::Models::Ipv6ExpressRouteCircuitPeeringConfig - Availability = Azure::Network::Mgmt::V2018_06_01::Models::Availability + BgpPeerStatusListResult = Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatusListResult VirtualNetworkGatewayListConnectionsResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListConnectionsResult - Dimension = Azure::Network::Mgmt::V2018_06_01::Models::Dimension + Availability = Azure::Network::Mgmt::V2018_06_01::Models::Availability ExpressRouteCrossConnectionsRoutesTableSummaryListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult + Dimension = Azure::Network::Mgmt::V2018_06_01::Models::Dimension + OperationDisplay = Azure::Network::Mgmt::V2018_06_01::Models::OperationDisplay MetricSpecification = Azure::Network::Mgmt::V2018_06_01::Models::MetricSpecification ApplicationGatewayAvailableWafRuleSetsResult = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableWafRuleSetsResult - LogSpecification = Azure::Network::Mgmt::V2018_06_01::Models::LogSpecification AzureFirewallIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallIPConfiguration AzureFirewallApplicationRuleCollection = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleCollection AzureFirewallNetworkRuleCollection = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRuleCollection - AzureFirewall = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewall - BackendAddressPool = Azure::Network::Mgmt::V2018_06_01::Models::BackendAddressPool - InboundNatRule = Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRule + LogSpecification = Azure::Network::Mgmt::V2018_06_01::Models::LogSpecification ApplicationSecurityGroup = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroup - SecurityRule = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRule - NetworkInterface = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterface - NetworkSecurityGroup = Azure::Network::Mgmt::V2018_06_01::Models::NetworkSecurityGroup - Route = Azure::Network::Mgmt::V2018_06_01::Models::Route - RouteTable = Azure::Network::Mgmt::V2018_06_01::Models::RouteTable - PublicIPAddress = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddress - IPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::IPConfiguration ResourceNavigationLink = Azure::Network::Mgmt::V2018_06_01::Models::ResourceNavigationLink - Subnet = Azure::Network::Mgmt::V2018_06_01::Models::Subnet - NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfiguration - ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendAddressPool - ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHttpSettings - ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayIPConfiguration - ApplicationGatewayAuthenticationCertificate = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAuthenticationCertificate - ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCertificate - ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendIPConfiguration - ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendPort - ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayHttpListener - ApplicationGatewayPathRule = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayPathRule - ApplicationGatewayProbe = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbe - ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRequestRoutingRule + AzureFirewall = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewall ApplicationGatewayRedirectConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRedirectConfiguration - ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayUrlPathMap - ApplicationGateway = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGateway ApplicationGatewayFirewallRuleSet = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRuleSet - ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslOptions + ApplicationGatewayAuthenticationCertificate = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAuthenticationCertificate ApplicationGatewaySslPredefinedPolicy = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPredefinedPolicy EndpointServiceResult = Azure::Network::Mgmt::V2018_06_01::Models::EndpointServiceResult - ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitAuthorization - RouteFilterRule = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRule + ApplicationGatewayAvailableSslOptions = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslOptions ExpressRouteCircuitConnection = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitConnection - ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeering RouteFilter = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilter - ExpressRouteCircuit = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuit - ExpressRouteServiceProvider = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProvider - ExpressRouteCrossConnectionPeering = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeering + RouteFilterRule = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRule ExpressRouteCrossConnection = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnection - FrontendIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::FrontendIPConfiguration - LoadBalancingRule = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancingRule - Probe = Azure::Network::Mgmt::V2018_06_01::Models::Probe - InboundNatPool = Azure::Network::Mgmt::V2018_06_01::Models::InboundNatPool - OutboundNatRule = Azure::Network::Mgmt::V2018_06_01::Models::OutboundNatRule - LoadBalancer = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancer NetworkWatcher = Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcher - PatchRouteFilterRule = Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilterRule + ExpressRouteCrossConnectionPeering = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeering PatchRouteFilter = Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilter BgpServiceCommunity = Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunity - VirtualNetworkPeering = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeering - VirtualNetwork = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetwork - VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayIPConfiguration - VpnClientRootCertificate = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRootCertificate - VpnClientRevokedCertificate = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRevokedCertificate - VirtualNetworkGateway = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGateway - LocalNetworkGateway = Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGateway - VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnection - ConnectionSharedKey = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionSharedKey + PatchRouteFilterRule = Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilterRule VirtualNetworkGatewayConnectionListEntity = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListEntity VirtualWAN = Azure::Network::Mgmt::V2018_06_01::Models::VirtualWAN - VpnSite = Azure::Network::Mgmt::V2018_06_01::Models::VpnSite + VirtualNetworkPeering = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeering HubVirtualNetworkConnection = Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnection VirtualHub = Azure::Network::Mgmt::V2018_06_01::Models::VirtualHub - VpnConnection = Azure::Network::Mgmt::V2018_06_01::Models::VpnConnection + VpnSite = Azure::Network::Mgmt::V2018_06_01::Models::VpnSite VpnGateway = Azure::Network::Mgmt::V2018_06_01::Models::VpnGateway - ProvisioningState = Azure::Network::Mgmt::V2018_06_01::Models::ProvisioningState AzureFirewallRCActionType = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCActionType - AzureFirewallApplicationRuleProtocolType = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocolType + VpnConnection = Azure::Network::Mgmt::V2018_06_01::Models::VpnConnection AzureFirewallNetworkRuleProtocol = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRuleProtocol - TransportProtocol = Azure::Network::Mgmt::V2018_06_01::Models::TransportProtocol - IPAllocationMethod = Azure::Network::Mgmt::V2018_06_01::Models::IPAllocationMethod - IPVersion = Azure::Network::Mgmt::V2018_06_01::Models::IPVersion - SecurityRuleProtocol = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleProtocol - SecurityRuleAccess = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleAccess - SecurityRuleDirection = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleDirection - RouteNextHopType = Azure::Network::Mgmt::V2018_06_01::Models::RouteNextHopType PublicIPAddressSkuName = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSkuName - ApplicationGatewayProtocol = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProtocol - ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayCookieBasedAffinity - ApplicationGatewayBackendHealthServerHealth = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServerHealth - ApplicationGatewaySkuName = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySkuName - ApplicationGatewayTier = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayTier + AzureFirewallApplicationRuleProtocolType = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocolType ApplicationGatewaySslProtocol = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslProtocol ApplicationGatewaySslPolicyType = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyType - ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyName + ApplicationGatewayBackendHealthServerHealth = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServerHealth ApplicationGatewaySslCipherSuite = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCipherSuite - ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRequestRoutingRuleType ApplicationGatewayRedirectType = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRedirectType - ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayOperationalState - ApplicationGatewayFirewallMode = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallMode - AuthorizationUseStatus = Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationUseStatus - ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + ApplicationGatewaySslPolicyName = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyName Access = Azure::Network::Mgmt::V2018_06_01::Models::Access ExpressRoutePeeringType = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRoutePeeringType + ApplicationGatewayFirewallMode = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallMode + HTTPHeader = Azure::Network::Mgmt::V2018_06_01::Models::HTTPHeader + LoadBalancerSkuName = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSkuName ExpressRoutePeeringState = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRoutePeeringState CircuitConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::CircuitConnectionStatus - ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringState - ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuTier - ExpressRouteCircuitSkuFamily = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuFamily - ServiceProviderProvisioningState = Azure::Network::Mgmt::V2018_06_01::Models::ServiceProviderProvisioningState - LoadBalancerSkuName = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSkuName - LoadDistribution = Azure::Network::Mgmt::V2018_06_01::Models::LoadDistribution - ProbeProtocol = Azure::Network::Mgmt::V2018_06_01::Models::ProbeProtocol - NetworkOperationStatus = Azure::Network::Mgmt::V2018_06_01::Models::NetworkOperationStatus + EffectiveRouteState = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteState EffectiveSecurityRuleProtocol = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveSecurityRuleProtocol EffectiveRouteSource = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteSource - EffectiveRouteState = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteState + IpFlowProtocol = Azure::Network::Mgmt::V2018_06_01::Models::IpFlowProtocol AssociationType = Azure::Network::Mgmt::V2018_06_01::Models::AssociationType Direction = Azure::Network::Mgmt::V2018_06_01::Models::Direction - IpFlowProtocol = Azure::Network::Mgmt::V2018_06_01::Models::IpFlowProtocol + PcStatus = Azure::Network::Mgmt::V2018_06_01::Models::PcStatus NextHopType = Azure::Network::Mgmt::V2018_06_01::Models::NextHopType PcProtocol = Azure::Network::Mgmt::V2018_06_01::Models::PcProtocol - PcStatus = Azure::Network::Mgmt::V2018_06_01::Models::PcStatus + IssueType = Azure::Network::Mgmt::V2018_06_01::Models::IssueType PcError = Azure::Network::Mgmt::V2018_06_01::Models::PcError - Protocol = Azure::Network::Mgmt::V2018_06_01::Models::Protocol HTTPMethod = Azure::Network::Mgmt::V2018_06_01::Models::HTTPMethod - Origin = Azure::Network::Mgmt::V2018_06_01::Models::Origin - Severity = Azure::Network::Mgmt::V2018_06_01::Models::Severity - IssueType = Azure::Network::Mgmt::V2018_06_01::Models::IssueType + ConnectionState = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionState ConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionStatus ConnectionMonitorSourceStatus = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorSourceStatus - ConnectionState = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionState - EvaluationState = Azure::Network::Mgmt::V2018_06_01::Models::EvaluationState + VpnClientProtocol = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientProtocol + NetworkOperationStatus = Azure::Network::Mgmt::V2018_06_01::Models::NetworkOperationStatus VirtualNetworkPeeringState = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringState - VirtualNetworkGatewayType = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayType VpnType = Azure::Network::Mgmt::V2018_06_01::Models::VpnType VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuName - VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuTier - VpnClientProtocol = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientProtocol - IpsecEncryption = Azure::Network::Mgmt::V2018_06_01::Models::IpsecEncryption - IpsecIntegrity = Azure::Network::Mgmt::V2018_06_01::Models::IpsecIntegrity + EvaluationState = Azure::Network::Mgmt::V2018_06_01::Models::EvaluationState IkeEncryption = Azure::Network::Mgmt::V2018_06_01::Models::IkeEncryption IkeIntegrity = Azure::Network::Mgmt::V2018_06_01::Models::IkeIntegrity - DhGroup = Azure::Network::Mgmt::V2018_06_01::Models::DhGroup - PfsGroup = Azure::Network::Mgmt::V2018_06_01::Models::PfsGroup + IpsecEncryption = Azure::Network::Mgmt::V2018_06_01::Models::IpsecEncryption + IpsecIntegrity = Azure::Network::Mgmt::V2018_06_01::Models::IpsecIntegrity BgpPeerState = Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerState - ProcessorArchitecture = Azure::Network::Mgmt::V2018_06_01::Models::ProcessorArchitecture AuthenticationMethod = Azure::Network::Mgmt::V2018_06_01::Models::AuthenticationMethod - VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionStatus - VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionType + DhGroup = Azure::Network::Mgmt::V2018_06_01::Models::DhGroup + PfsGroup = Azure::Network::Mgmt::V2018_06_01::Models::PfsGroup + HubVirtualNetworkConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnectionStatus VpnConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::VpnConnectionStatus TunnelConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::TunnelConnectionStatus - HubVirtualNetworkConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnectionStatus + VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuTier + ProcessorArchitecture = Azure::Network::Mgmt::V2018_06_01::Models::ProcessorArchitecture + VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionType + VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionStatus + Origin = Azure::Network::Mgmt::V2018_06_01::Models::Origin + Error = Azure::Network::Mgmt::V2018_06_01::Models::Error + Severity = Azure::Network::Mgmt::V2018_06_01::Models::Severity + Protocol = Azure::Network::Mgmt::V2018_06_01::Models::Protocol + UsageName = Azure::Network::Mgmt::V2018_06_01::Models::UsageName + Usage = Azure::Network::Mgmt::V2018_06_01::Models::Usage + ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitListResult + SubResource = Azure::Network::Mgmt::V2018_06_01::Models::SubResource + Resource = Azure::Network::Mgmt::V2018_06_01::Models::Resource + PublicIPAddressListResult = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressListResult + ApplicationGatewayListResult = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayListResult + ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendAddress + ConnectionResetSharedKey = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionResetSharedKey + DnsNameAvailabilityResult = Azure::Network::Mgmt::V2018_06_01::Models::DnsNameAvailabilityResult + NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceDnsSettings + NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkSecurityGroupListResult + VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListResult + AuthorizationListResult = Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationListResult + BgpSettings = Azure::Network::Mgmt::V2018_06_01::Models::BgpSettings + ExpressRouteCircuitPeeringConfig = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringConfig + VpnClientConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientConfiguration + ExpressRouteCircuitStats = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitStats + VirtualNetworkListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkListResult + SecurityRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleListResult + AddressSpace = Azure::Network::Mgmt::V2018_06_01::Models::AddressSpace + ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringListResult + UsagesListResult = Azure::Network::Mgmt::V2018_06_01::Models::UsagesListResult + ExpressRouteCircuitSku = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSku + ExpressRouteCircuitServiceProviderProperties = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitServiceProviderProperties + RouteTableListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteTableListResult + Policies = Azure::Network::Mgmt::V2018_06_01::Models::Policies + NetworkInterfaceListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceListResult + ExpressRouteCircuitArpTable = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitArpTable + ExpressRouteCircuitsArpTableListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsArpTableListResult + PublicIPAddressDnsSettings = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressDnsSettings + ExpressRouteCircuitRoutesTable = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTable + DhcpOptions = Azure::Network::Mgmt::V2018_06_01::Models::DhcpOptions + ExpressRouteCircuitsRoutesTableListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsRoutesTableListResult + ApplicationGatewaySku = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySku + LocalNetworkGatewayListResult = Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGatewayListResult + VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListResult + LoadBalancerListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerListResult + VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySku + AzureAsyncOperationResult = Azure::Network::Mgmt::V2018_06_01::Models::AzureAsyncOperationResult + RouteListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteListResult + SubnetListResult = Azure::Network::Mgmt::V2018_06_01::Models::SubnetListResult + ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderListResult + VpnClientParameters = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientParameters + ErrorDetails = Azure::Network::Mgmt::V2018_06_01::Models::ErrorDetails + ApplicationGatewayIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayIPConfiguration + ApplicationGatewaySslCertificate = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCertificate + ApplicationGatewayFrontendIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendIPConfiguration + ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderBandwidthsOffered + BackendAddressPool = Azure::Network::Mgmt::V2018_06_01::Models::BackendAddressPool + InboundNatRule = Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRule + SecurityRule = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRule + NetworkInterface = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterface + NetworkSecurityGroup = Azure::Network::Mgmt::V2018_06_01::Models::NetworkSecurityGroup + Route = Azure::Network::Mgmt::V2018_06_01::Models::Route + RouteTable = Azure::Network::Mgmt::V2018_06_01::Models::RouteTable + PublicIPAddress = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddress + IPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::IPConfiguration + Subnet = Azure::Network::Mgmt::V2018_06_01::Models::Subnet + TagsObject = Azure::Network::Mgmt::V2018_06_01::Models::TagsObject + NetworkInterfaceIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfiguration + ApplicationGatewayBackendAddressPool = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendAddressPool + ApplicationGatewayBackendHttpSettings = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHttpSettings + ApplicationGatewayFrontendPort = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendPort + ApplicationGatewayPathRule = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayPathRule + ApplicationGatewayHttpListener = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayHttpListener + ApplicationGatewayRequestRoutingRule = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRequestRoutingRule + ApplicationGatewayProbe = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbe + ApplicationGateway = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGateway + ApplicationGatewayUrlPathMap = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayUrlPathMap + ExpressRouteCircuitPeering = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeering + ExpressRouteCircuitAuthorization = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitAuthorization + ExpressRouteServiceProvider = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProvider + ExpressRouteCircuit = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuit + LoadBalancingRule = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancingRule + FrontendIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::FrontendIPConfiguration + InboundNatPool = Azure::Network::Mgmt::V2018_06_01::Models::InboundNatPool + Probe = Azure::Network::Mgmt::V2018_06_01::Models::Probe + LoadBalancer = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancer + OutboundNatRule = Azure::Network::Mgmt::V2018_06_01::Models::OutboundNatRule + VirtualNetworkGatewayIPConfiguration = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayIPConfiguration + VirtualNetwork = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetwork + VpnClientRevokedCertificate = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRevokedCertificate + VpnClientRootCertificate = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRootCertificate + LocalNetworkGateway = Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGateway + VirtualNetworkGateway = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGateway + ProvisioningState = Azure::Network::Mgmt::V2018_06_01::Models::ProvisioningState + VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnection + TransportProtocol = Azure::Network::Mgmt::V2018_06_01::Models::TransportProtocol + SecurityRuleProtocol = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleProtocol + IPAllocationMethod = Azure::Network::Mgmt::V2018_06_01::Models::IPAllocationMethod + SecurityRuleAccess = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleAccess + ConnectionSharedKey = Azure::Network::Mgmt::V2018_06_01::Models::ConnectionSharedKey + RouteNextHopType = Azure::Network::Mgmt::V2018_06_01::Models::RouteNextHopType + SecurityRuleDirection = Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleDirection + IPVersion = Azure::Network::Mgmt::V2018_06_01::Models::IPVersion + ApplicationGatewayProtocol = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProtocol + ApplicationGatewayCookieBasedAffinity = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayCookieBasedAffinity + ApplicationGatewayRequestRoutingRuleType = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRequestRoutingRuleType + ApplicationGatewayOperationalState = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayOperationalState + ApplicationGatewaySkuName = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySkuName + ApplicationGatewayTier = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayTier + ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuTier + AuthorizationUseStatus = Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationUseStatus + ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + ExpressRouteCircuitSkuFamily = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuFamily + ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringState + LoadDistribution = Azure::Network::Mgmt::V2018_06_01::Models::LoadDistribution + ProbeProtocol = Azure::Network::Mgmt::V2018_06_01::Models::ProbeProtocol + ServiceProviderProvisioningState = Azure::Network::Mgmt::V2018_06_01::Models::ServiceProviderProvisioningState + VirtualNetworkGatewayType = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayType + TopologyAssociation = Azure::Network::Mgmt::V2018_06_01::Models::TopologyAssociation + TopologyResource = Azure::Network::Mgmt::V2018_06_01::Models::TopologyResource + AzureFirewallRCAction = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCAction + Topology = Azure::Network::Mgmt::V2018_06_01::Models::Topology + AzureFirewallApplicationRule = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRule + VerificationIPFlowParameters = Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowParameters + AzureFirewallNetworkRule = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRule + VerificationIPFlowResult = Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowResult + AzureFirewallListResult = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallListResult + BgpServiceCommunityListResult = Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunityListResult + BGPCommunity = Azure::Network::Mgmt::V2018_06_01::Models::BGPCommunity + ListHubVirtualNetworkConnectionsResult = Azure::Network::Mgmt::V2018_06_01::Models::ListHubVirtualNetworkConnectionsResult + RouteFilterRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRuleListResult + GetVpnSitesConfigurationRequest = Azure::Network::Mgmt::V2018_06_01::Models::GetVpnSitesConfigurationRequest + PublicIPAddressSku = Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSku + InboundNatRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRuleListResult + IpTag = Azure::Network::Mgmt::V2018_06_01::Models::IpTag + LoadBalancerBackendAddressPoolListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerBackendAddressPoolListResult + DeviceProperties = Azure::Network::Mgmt::V2018_06_01::Models::DeviceProperties + LoadBalancerFrontendIPConfigurationListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerFrontendIPConfigurationListResult + VpnDeviceScriptParameters = Azure::Network::Mgmt::V2018_06_01::Models::VpnDeviceScriptParameters + LoadBalancerLoadBalancingRuleListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerLoadBalancingRuleListResult + LoadBalancerProbeListResult = Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerProbeListResult + ApplicationGatewayConnectionDraining = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayConnectionDraining + ApplicationGatewayBackendHealthServer = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServer + ApplicationGatewayBackendHealthPool = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthPool + VpnClientIPsecParameters = Azure::Network::Mgmt::V2018_06_01::Models::VpnClientIPsecParameters + NetworkInterfaceIPConfigurationListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfigurationListResult + NetworkInterfaceLoadBalancerListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceLoadBalancerListResult + GatewayRouteListResult = Azure::Network::Mgmt::V2018_06_01::Models::GatewayRouteListResult + EffectiveNetworkSecurityGroupAssociation = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupAssociation + EffectiveNetworkSecurityRule = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityRule + EffectiveNetworkSecurityGroup = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroup + BgpPeerStatus = Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatus + EffectiveNetworkSecurityGroupListResult = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupListResult + ApplicationGatewayFirewallDisabledRuleGroup = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallDisabledRuleGroup + EffectiveRoute = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRoute + ApplicationGatewayAutoscaleBounds = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleBounds + EffectiveRouteListResult = Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteListResult + ApplicationGatewayFirewallRule = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRule + IpsecPolicy = Azure::Network::Mgmt::V2018_06_01::Models::IpsecPolicy + RouteFilterListResult = Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterListResult + NetworkWatcherListResult = Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcherListResult + ApplicationGatewayAvailableSslPredefinedPolicies = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies + TopologyParameters = Azure::Network::Mgmt::V2018_06_01::Models::TopologyParameters + ApplicationSecurityGroupListResult = Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroupListResult + DdosProtectionPlanListResult = Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlanListResult + EndpointServicesListResult = Azure::Network::Mgmt::V2018_06_01::Models::EndpointServicesListResult + AzureFirewallApplicationRuleProtocol = Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocol + IPAddressAvailabilityResult = Azure::Network::Mgmt::V2018_06_01::Models::IPAddressAvailabilityResult + OperationPropertiesFormatServiceSpecification = Azure::Network::Mgmt::V2018_06_01::Models::OperationPropertiesFormatServiceSpecification + VirtualNetworkPeeringListResult = Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringListResult + NextHopParameters = Azure::Network::Mgmt::V2018_06_01::Models::NextHopParameters + NextHopResult = Azure::Network::Mgmt::V2018_06_01::Models::NextHopResult + SecurityGroupViewParameters = Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewParameters + NetworkInterfaceAssociation = Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceAssociation + SubnetAssociation = Azure::Network::Mgmt::V2018_06_01::Models::SubnetAssociation + ExpressRouteCircuitRoutesTableSummary = Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTableSummary end class NetworkManagementClass - attr_reader :azure_firewalls, :application_gateways, :application_security_groups, :ddos_protection_plans, :available_endpoint_services, :express_route_circuit_authorizations, :express_route_circuit_peerings, :express_route_circuit_connections, :express_route_circuits, :express_route_service_providers, :express_route_cross_connections, :express_route_cross_connection_peerings, :load_balancers, :load_balancer_backend_address_pools, :load_balancer_frontend_ipconfigurations, :inbound_nat_rules, :load_balancer_load_balancing_rules, :load_balancer_network_interfaces, :load_balancer_probes, :network_interfaces, :network_interface_ipconfigurations, :network_interface_load_balancers, :network_security_groups, :security_rules, :default_security_rules, :network_watchers, :packet_captures, :connection_monitors, :operations, :public_ipaddresses, :route_filters, :route_filter_rules, :route_tables, :routes, :bgp_service_communities, :usages, :virtual_networks, :subnets, :virtual_network_peerings, :virtual_network_gateways, :virtual_network_gateway_connections, :local_network_gateways, :virtual_wans, :vpn_sites, :vpn_sites_configuration, :virtual_hubs, :hub_virtual_network_connections, :vpn_gateways, :vpn_connections, :configurable, :base_url, :options, :model_classes + attr_reader :azure_firewalls, :application_security_groups, :ddos_protection_plans, :available_endpoint_services, :express_route_circuit_connections, :express_route_cross_connections, :express_route_cross_connection_peerings, :load_balancer_backend_address_pools, :load_balancer_frontend_ipconfigurations, :inbound_nat_rules, :load_balancer_load_balancing_rules, :load_balancer_network_interfaces, :load_balancer_probes, :network_interface_ipconfigurations, :network_interface_load_balancers, :default_security_rules, :network_watchers, :packet_captures, :connection_monitors, :route_filters, :operations, :route_filter_rules, :bgp_service_communities, :virtual_wans, :vpn_sites, :virtual_network_peerings, :vpn_sites_configuration, :virtual_hubs, :application_gateways, :express_route_circuit_authorizations, :express_route_circuit_peerings, :express_route_circuits, :express_route_service_providers, :load_balancers, :network_interfaces, :network_security_groups, :security_rules, :public_ipaddresses, :route_tables, :routes, :usages, :virtual_networks, :subnets, :virtual_network_gateways, :virtual_network_gateway_connections, :local_network_gateways, :hub_virtual_network_connections, :vpn_gateways, :vpn_connections, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -412,51 +412,51 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @azure_firewalls = @client_0.azure_firewalls - @application_gateways = @client_0.application_gateways @application_security_groups = @client_0.application_security_groups @ddos_protection_plans = @client_0.ddos_protection_plans @available_endpoint_services = @client_0.available_endpoint_services - @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations - @express_route_circuit_peerings = @client_0.express_route_circuit_peerings @express_route_circuit_connections = @client_0.express_route_circuit_connections - @express_route_circuits = @client_0.express_route_circuits - @express_route_service_providers = @client_0.express_route_service_providers @express_route_cross_connections = @client_0.express_route_cross_connections @express_route_cross_connection_peerings = @client_0.express_route_cross_connection_peerings - @load_balancers = @client_0.load_balancers @load_balancer_backend_address_pools = @client_0.load_balancer_backend_address_pools @load_balancer_frontend_ipconfigurations = @client_0.load_balancer_frontend_ipconfigurations @inbound_nat_rules = @client_0.inbound_nat_rules @load_balancer_load_balancing_rules = @client_0.load_balancer_load_balancing_rules @load_balancer_network_interfaces = @client_0.load_balancer_network_interfaces @load_balancer_probes = @client_0.load_balancer_probes - @network_interfaces = @client_0.network_interfaces @network_interface_ipconfigurations = @client_0.network_interface_ipconfigurations @network_interface_load_balancers = @client_0.network_interface_load_balancers - @network_security_groups = @client_0.network_security_groups - @security_rules = @client_0.security_rules @default_security_rules = @client_0.default_security_rules @network_watchers = @client_0.network_watchers @packet_captures = @client_0.packet_captures @connection_monitors = @client_0.connection_monitors - @operations = @client_0.operations - @public_ipaddresses = @client_0.public_ipaddresses @route_filters = @client_0.route_filters + @operations = @client_0.operations @route_filter_rules = @client_0.route_filter_rules + @bgp_service_communities = @client_0.bgp_service_communities + @virtual_wans = @client_0.virtual_wans + @vpn_sites = @client_0.vpn_sites + @virtual_network_peerings = @client_0.virtual_network_peerings + @vpn_sites_configuration = @client_0.vpn_sites_configuration + @virtual_hubs = @client_0.virtual_hubs + @application_gateways = @client_0.application_gateways + @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_0.express_route_circuit_peerings + @express_route_circuits = @client_0.express_route_circuits + @express_route_service_providers = @client_0.express_route_service_providers + @load_balancers = @client_0.load_balancers + @network_interfaces = @client_0.network_interfaces + @network_security_groups = @client_0.network_security_groups + @security_rules = @client_0.security_rules + @public_ipaddresses = @client_0.public_ipaddresses @route_tables = @client_0.route_tables @routes = @client_0.routes - @bgp_service_communities = @client_0.bgp_service_communities @usages = @client_0.usages @virtual_networks = @client_0.virtual_networks @subnets = @client_0.subnets - @virtual_network_peerings = @client_0.virtual_network_peerings @virtual_network_gateways = @client_0.virtual_network_gateways @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections @local_network_gateways = @client_0.local_network_gateways - @virtual_wans = @client_0.virtual_wans - @vpn_sites = @client_0.vpn_sites - @vpn_sites_configuration = @client_0.vpn_sites_configuration - @virtual_hubs = @client_0.virtual_hubs @hub_virtual_network_connections = @client_0.hub_virtual_network_connections @vpn_gateways = @client_0.vpn_gateways @vpn_connections = @client_0.vpn_connections @@ -478,593 +478,665 @@ def method_missing(method, *args) end class ModelClasses - def topology_association - Azure::Network::Mgmt::V2018_06_01::Models::TopologyAssociation + def security_rule_associations + Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleAssociations end - def sub_resource - Azure::Network::Mgmt::V2018_06_01::Models::SubResource + def security_group_network_interface + Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupNetworkInterface end - def topology_resource - Azure::Network::Mgmt::V2018_06_01::Models::TopologyResource + def security_group_view_result + Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewResult end - def azure_firewall_rcaction - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCAction + def express_route_cross_connection_routes_table_summary + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionRoutesTableSummary end - def topology - Azure::Network::Mgmt::V2018_06_01::Models::Topology + def packet_capture_storage_location + Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureStorageLocation end - def azure_firewall_application_rule - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRule + def express_route_circuit_reference + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitReference end - def verification_ipflow_parameters - Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowParameters + def packet_capture_filter + Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureFilter end - def azure_firewall_network_rule - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRule + def packet_capture_parameters + Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureParameters end - def verification_ipflow_result - Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowResult + def express_route_cross_connection_peering_list + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeeringList end - def usage_name - Azure::Network::Mgmt::V2018_06_01::Models::UsageName + def packet_capture + Azure::Network::Mgmt::V2018_06_01::Models::PacketCapture end - def azure_firewall_list_result - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallListResult + def packet_capture_result + Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureResult end - def bgp_service_community_list_result - Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunityListResult + def list_vpn_connections_result + Azure::Network::Mgmt::V2018_06_01::Models::ListVpnConnectionsResult end - def bgpcommunity - Azure::Network::Mgmt::V2018_06_01::Models::BGPCommunity + def packet_capture_list_result + Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureListResult end - def list_hub_virtual_network_connections_result - Azure::Network::Mgmt::V2018_06_01::Models::ListHubVirtualNetworkConnectionsResult + def list_virtual_hubs_result + Azure::Network::Mgmt::V2018_06_01::Models::ListVirtualHubsResult end - def route_list_result - Azure::Network::Mgmt::V2018_06_01::Models::RouteListResult + def packet_capture_query_status_result + Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureQueryStatusResult end - def network_interface_dns_settings - Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceDnsSettings + def troubleshooting_parameters + Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingParameters end - def route_table_list_result - Azure::Network::Mgmt::V2018_06_01::Models::RouteTableListResult + def list_virtual_wans_result + Azure::Network::Mgmt::V2018_06_01::Models::ListVirtualWANsResult end - def policies - Azure::Network::Mgmt::V2018_06_01::Models::Policies + def query_troubleshooting_parameters + Azure::Network::Mgmt::V2018_06_01::Models::QueryTroubleshootingParameters end - def route_filter_rule_list_result - Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRuleListResult + def virtual_network_connection_gateway_reference + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkConnectionGatewayReference end - def get_vpn_sites_configuration_request - Azure::Network::Mgmt::V2018_06_01::Models::GetVpnSitesConfigurationRequest + def troubleshooting_recommended_actions + Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingRecommendedActions end - def load_balancer_list_result - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerListResult + def application_gateway_backend_health_http_settings + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthHttpSettings end - def public_ipaddress_sku - Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSku + def troubleshooting_details + Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingDetails end - def inbound_nat_rule_list_result - Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRuleListResult + def application_gateway_ssl_policy + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicy end - def ip_tag - Azure::Network::Mgmt::V2018_06_01::Models::IpTag + def troubleshooting_result + Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingResult end - def load_balancer_backend_address_pool_list_result - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerBackendAddressPoolListResult + def tunnel_connection_health + Azure::Network::Mgmt::V2018_06_01::Models::TunnelConnectionHealth end - def device_properties - Azure::Network::Mgmt::V2018_06_01::Models::DeviceProperties + def retention_policy_parameters + Azure::Network::Mgmt::V2018_06_01::Models::RetentionPolicyParameters end - def load_balancer_frontend_ipconfiguration_list_result - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerFrontendIPConfigurationListResult + def application_gateway_probe_health_response_match + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbeHealthResponseMatch end - def vpn_device_script_parameters - Azure::Network::Mgmt::V2018_06_01::Models::VpnDeviceScriptParameters + def flow_log_status_parameters + Azure::Network::Mgmt::V2018_06_01::Models::FlowLogStatusParameters end - def load_balancer_load_balancing_rule_list_result - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerLoadBalancingRuleListResult + def traffic_analytics_configuration_properties + Azure::Network::Mgmt::V2018_06_01::Models::TrafficAnalyticsConfigurationProperties end - def application_gateway_backend_address - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendAddress + def application_gateway_autoscale_configuration + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleConfiguration end - def load_balancer_probe_list_result - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerProbeListResult + def traffic_analytics_properties + Azure::Network::Mgmt::V2018_06_01::Models::TrafficAnalyticsProperties end - def application_gateway_connection_draining - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayConnectionDraining + def application_gateway_firewall_rule_group + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRuleGroup end - def network_interface_list_result - Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceListResult + def flow_log_information + Azure::Network::Mgmt::V2018_06_01::Models::FlowLogInformation end - def application_gateway_backend_health_server - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServer + def virtual_network_list_usage_result + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkListUsageResult end - def error_details - Azure::Network::Mgmt::V2018_06_01::Models::ErrorDetails + def connectivity_source + Azure::Network::Mgmt::V2018_06_01::Models::ConnectivitySource end - def application_gateway_backend_health_pool - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthPool + def virtual_network_usage + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkUsage end - def error - Azure::Network::Mgmt::V2018_06_01::Models::Error + def connectivity_destination + Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityDestination end - def application_gateway_sku - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySku + def httpconfiguration + Azure::Network::Mgmt::V2018_06_01::Models::HTTPConfiguration end - def azure_async_operation_result - Azure::Network::Mgmt::V2018_06_01::Models::AzureAsyncOperationResult + def protocol_configuration + Azure::Network::Mgmt::V2018_06_01::Models::ProtocolConfiguration end - def vpn_client_ipsec_parameters - Azure::Network::Mgmt::V2018_06_01::Models::VpnClientIPsecParameters + def connectivity_parameters + Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityParameters end - def network_interface_ipconfiguration_list_result - Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfigurationListResult + def express_route_circuits_routes_table_summary_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult end - def virtual_network_gateway_connection_list_result - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListResult + def connectivity_issue + Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityIssue end - def network_interface_load_balancer_list_result - Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceLoadBalancerListResult + def connectivity_hop + Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityHop end - def gateway_route_list_result - Azure::Network::Mgmt::V2018_06_01::Models::GatewayRouteListResult + def connectivity_information + Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityInformation end - def effective_network_security_group_association - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupAssociation + def load_balancer_sku + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSku end - def virtual_network_gateway_list_result - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListResult + def azure_reachability_report_location + Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportLocation end - def effective_network_security_rule - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityRule + def list_vpn_gateways_result + Azure::Network::Mgmt::V2018_06_01::Models::ListVpnGatewaysResult end - def vpn_client_parameters - Azure::Network::Mgmt::V2018_06_01::Models::VpnClientParameters + def azure_reachability_report_parameters + Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportParameters end - def effective_network_security_group - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroup + def list_vpn_sites_result + Azure::Network::Mgmt::V2018_06_01::Models::ListVpnSitesResult end - def bgp_peer_status - Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatus + def azure_reachability_report_latency_info + Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportLatencyInfo end - def effective_network_security_group_list_result - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupListResult + def azure_reachability_report_item + Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportItem end - def application_gateway_firewall_disabled_rule_group - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallDisabledRuleGroup + def azure_reachability_report + Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReport end - def effective_route - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRoute + def gateway_route + Azure::Network::Mgmt::V2018_06_01::Models::GatewayRoute end - def application_gateway_autoscale_bounds - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleBounds + def available_providers_list_parameters + Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListParameters end - def effective_route_list_result - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteListResult + def available_providers_list_city + Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListCity end - def vpn_client_configuration - Azure::Network::Mgmt::V2018_06_01::Models::VpnClientConfiguration + def operation_list_result + Azure::Network::Mgmt::V2018_06_01::Models::OperationListResult end - def security_rule_list_result - Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleListResult + def ddos_protection_plan + Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlan end - def application_gateway_firewall_rule - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRule + def available_providers_list_state + Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListState end - def network_security_group_list_result - Azure::Network::Mgmt::V2018_06_01::Models::NetworkSecurityGroupListResult + def available_providers_list_country + Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListCountry end - def ipsec_policy - Azure::Network::Mgmt::V2018_06_01::Models::IpsecPolicy + def available_providers_list + Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersList end - def route_filter_list_result - Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterListResult + def connection_monitor_source + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorSource end - def virtual_network_gateway_sku - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySku + def express_route_cross_connection_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionListResult end - def network_watcher_list_result - Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcherListResult + def connection_monitor_destination + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorDestination end - def application_gateway_available_ssl_predefined_policies - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies + def service_endpoint_properties_format + Azure::Network::Mgmt::V2018_06_01::Models::ServiceEndpointPropertiesFormat end - def topology_parameters - Azure::Network::Mgmt::V2018_06_01::Models::TopologyParameters + def connection_monitor_parameters + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorParameters end - def application_security_group_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroupListResult + def application_gateway_backend_health + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealth end - def tags_object - Azure::Network::Mgmt::V2018_06_01::Models::TagsObject + def connection_monitor + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitor end - def dns_name_availability_result - Azure::Network::Mgmt::V2018_06_01::Models::DnsNameAvailabilityResult + def application_gateway_web_application_firewall_configuration + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration end - def ddos_protection_plan_list_result - Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlanListResult + def operation + Azure::Network::Mgmt::V2018_06_01::Models::Operation end - def operation_list_result - Azure::Network::Mgmt::V2018_06_01::Models::OperationListResult + def virtual_network_usage_name + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkUsageName end - def endpoint_services_list_result - Azure::Network::Mgmt::V2018_06_01::Models::EndpointServicesListResult + def connection_monitor_result + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorResult end - def azure_firewall_application_rule_protocol - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocol + def connection_state_snapshot + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionStateSnapshot end - def authorization_list_result - Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationListResult + def connection_monitor_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorListResult end - def operation - Azure::Network::Mgmt::V2018_06_01::Models::Operation + def connection_monitor_query_result + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorQueryResult end - def ipaddress_availability_result - Azure::Network::Mgmt::V2018_06_01::Models::IPAddressAvailabilityResult + def vpn_site_id + Azure::Network::Mgmt::V2018_06_01::Models::VpnSiteId end - def operation_properties_format_service_specification - Azure::Network::Mgmt::V2018_06_01::Models::OperationPropertiesFormatServiceSpecification + def ipv6_express_route_circuit_peering_config + Azure::Network::Mgmt::V2018_06_01::Models::Ipv6ExpressRouteCircuitPeeringConfig end - def virtual_network_list_result - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkListResult + def bgp_peer_status_list_result + Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatusListResult end - def public_ipaddress_list_result - Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressListResult + def virtual_network_gateway_list_connections_result + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListConnectionsResult end - def virtual_network_peering_list_result - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringListResult + def availability + Azure::Network::Mgmt::V2018_06_01::Models::Availability end - def next_hop_parameters - Azure::Network::Mgmt::V2018_06_01::Models::NextHopParameters + def express_route_cross_connections_routes_table_summary_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult end - def express_route_circuit_peering_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringListResult + def dimension + Azure::Network::Mgmt::V2018_06_01::Models::Dimension end - def next_hop_result - Azure::Network::Mgmt::V2018_06_01::Models::NextHopResult + def operation_display + Azure::Network::Mgmt::V2018_06_01::Models::OperationDisplay end - def express_route_circuit_service_provider_properties - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitServiceProviderProperties + def metric_specification + Azure::Network::Mgmt::V2018_06_01::Models::MetricSpecification end - def security_group_view_parameters - Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewParameters + def application_gateway_available_waf_rule_sets_result + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableWafRuleSetsResult end - def express_route_circuit_arp_table - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitArpTable + def azure_firewall_ipconfiguration + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallIPConfiguration end - def network_interface_association - Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceAssociation + def azure_firewall_application_rule_collection + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleCollection end - def express_route_circuit_routes_table - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTable + def azure_firewall_network_rule_collection + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRuleCollection end - def subnet_association - Azure::Network::Mgmt::V2018_06_01::Models::SubnetAssociation + def log_specification + Azure::Network::Mgmt::V2018_06_01::Models::LogSpecification end - def express_route_circuit_routes_table_summary - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTableSummary + def application_security_group + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroup end - def security_rule_associations - Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleAssociations + def resource_navigation_link + Azure::Network::Mgmt::V2018_06_01::Models::ResourceNavigationLink end - def express_route_circuit_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitListResult + def azure_firewall + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewall end - def security_group_network_interface - Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupNetworkInterface + def application_gateway_redirect_configuration + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRedirectConfiguration end - def address_space - Azure::Network::Mgmt::V2018_06_01::Models::AddressSpace + def application_gateway_firewall_rule_set + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRuleSet end - def security_group_view_result - Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewResult + def application_gateway_authentication_certificate + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAuthenticationCertificate end - def express_route_cross_connection_routes_table_summary - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionRoutesTableSummary + def application_gateway_ssl_predefined_policy + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPredefinedPolicy end - def packet_capture_storage_location - Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureStorageLocation + def endpoint_service_result + Azure::Network::Mgmt::V2018_06_01::Models::EndpointServiceResult end - def express_route_circuit_reference - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitReference + def application_gateway_available_ssl_options + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslOptions end - def packet_capture_filter - Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureFilter + def express_route_circuit_connection + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitConnection end - def usage - Azure::Network::Mgmt::V2018_06_01::Models::Usage + def route_filter + Azure::Network::Mgmt::V2018_06_01::Models::RouteFilter end - def packet_capture_parameters - Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureParameters + def route_filter_rule + Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRule end - def express_route_cross_connection_peering_list - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeeringList + def express_route_cross_connection + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnection end - def packet_capture - Azure::Network::Mgmt::V2018_06_01::Models::PacketCapture + def network_watcher + Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcher end - def resource - Azure::Network::Mgmt::V2018_06_01::Models::Resource + def express_route_cross_connection_peering + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeering end - def packet_capture_result - Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureResult + def patch_route_filter + Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilter end - def list_vpn_connections_result - Azure::Network::Mgmt::V2018_06_01::Models::ListVpnConnectionsResult + def bgp_service_community + Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunity end - def packet_capture_list_result - Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureListResult + def patch_route_filter_rule + Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilterRule end - def list_virtual_hubs_result - Azure::Network::Mgmt::V2018_06_01::Models::ListVirtualHubsResult + def virtual_network_gateway_connection_list_entity + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListEntity end - def packet_capture_query_status_result - Azure::Network::Mgmt::V2018_06_01::Models::PacketCaptureQueryStatusResult + def virtual_wan + Azure::Network::Mgmt::V2018_06_01::Models::VirtualWAN end - def public_ipaddress_dns_settings - Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressDnsSettings + def virtual_network_peering + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeering end - def troubleshooting_parameters - Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingParameters + def hub_virtual_network_connection + Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnection end - def list_virtual_wans_result - Azure::Network::Mgmt::V2018_06_01::Models::ListVirtualWANsResult + def virtual_hub + Azure::Network::Mgmt::V2018_06_01::Models::VirtualHub end - def query_troubleshooting_parameters - Azure::Network::Mgmt::V2018_06_01::Models::QueryTroubleshootingParameters + def vpn_site + Azure::Network::Mgmt::V2018_06_01::Models::VpnSite end - def virtual_network_connection_gateway_reference - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkConnectionGatewayReference + def vpn_gateway + Azure::Network::Mgmt::V2018_06_01::Models::VpnGateway + end + def azure_firewall_rcaction_type + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCActionType + end + def vpn_connection + Azure::Network::Mgmt::V2018_06_01::Models::VpnConnection + end + def azure_firewall_network_rule_protocol + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRuleProtocol + end + def public_ipaddress_sku_name + Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSkuName + end + def azure_firewall_application_rule_protocol_type + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocolType + end + def application_gateway_ssl_protocol + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslProtocol + end + def application_gateway_ssl_policy_type + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyType + end + def application_gateway_backend_health_server_health + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServerHealth + end + def application_gateway_ssl_cipher_suite + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCipherSuite + end + def application_gateway_redirect_type + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRedirectType + end + def application_gateway_ssl_policy_name + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyName + end + def access + Azure::Network::Mgmt::V2018_06_01::Models::Access + end + def express_route_peering_type + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRoutePeeringType + end + def application_gateway_firewall_mode + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallMode + end + def httpheader + Azure::Network::Mgmt::V2018_06_01::Models::HTTPHeader + end + def load_balancer_sku_name + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSkuName + end + def express_route_peering_state + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRoutePeeringState + end + def circuit_connection_status + Azure::Network::Mgmt::V2018_06_01::Models::CircuitConnectionStatus + end + def effective_route_state + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteState + end + def effective_security_rule_protocol + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveSecurityRuleProtocol + end + def effective_route_source + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteSource + end + def ip_flow_protocol + Azure::Network::Mgmt::V2018_06_01::Models::IpFlowProtocol + end + def association_type + Azure::Network::Mgmt::V2018_06_01::Models::AssociationType + end + def direction + Azure::Network::Mgmt::V2018_06_01::Models::Direction + end + def pc_status + Azure::Network::Mgmt::V2018_06_01::Models::PcStatus end - def troubleshooting_recommended_actions - Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingRecommendedActions + def next_hop_type + Azure::Network::Mgmt::V2018_06_01::Models::NextHopType end - def application_gateway_backend_health_http_settings - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthHttpSettings + def pc_protocol + Azure::Network::Mgmt::V2018_06_01::Models::PcProtocol end - def troubleshooting_details - Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingDetails + def issue_type + Azure::Network::Mgmt::V2018_06_01::Models::IssueType end - def application_gateway_ssl_policy - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicy + def pc_error + Azure::Network::Mgmt::V2018_06_01::Models::PcError end - def troubleshooting_result - Azure::Network::Mgmt::V2018_06_01::Models::TroubleshootingResult + def httpmethod + Azure::Network::Mgmt::V2018_06_01::Models::HTTPMethod end - def tunnel_connection_health - Azure::Network::Mgmt::V2018_06_01::Models::TunnelConnectionHealth + def connection_state + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionState end - def retention_policy_parameters - Azure::Network::Mgmt::V2018_06_01::Models::RetentionPolicyParameters + def connection_status + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionStatus end - def application_gateway_probe_health_response_match - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbeHealthResponseMatch + def connection_monitor_source_status + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorSourceStatus end - def flow_log_status_parameters - Azure::Network::Mgmt::V2018_06_01::Models::FlowLogStatusParameters + def vpn_client_protocol + Azure::Network::Mgmt::V2018_06_01::Models::VpnClientProtocol end - def bgp_settings - Azure::Network::Mgmt::V2018_06_01::Models::BgpSettings + def network_operation_status + Azure::Network::Mgmt::V2018_06_01::Models::NetworkOperationStatus end - def traffic_analytics_configuration_properties - Azure::Network::Mgmt::V2018_06_01::Models::TrafficAnalyticsConfigurationProperties + def virtual_network_peering_state + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringState end - def application_gateway_autoscale_configuration - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleConfiguration + def vpn_type + Azure::Network::Mgmt::V2018_06_01::Models::VpnType end - def traffic_analytics_properties - Azure::Network::Mgmt::V2018_06_01::Models::TrafficAnalyticsProperties + def virtual_network_gateway_sku_name + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuName end - def application_gateway_firewall_rule_group - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRuleGroup + def evaluation_state + Azure::Network::Mgmt::V2018_06_01::Models::EvaluationState end - def flow_log_information - Azure::Network::Mgmt::V2018_06_01::Models::FlowLogInformation + def ike_encryption + Azure::Network::Mgmt::V2018_06_01::Models::IkeEncryption end - def virtual_network_list_usage_result - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkListUsageResult + def ike_integrity + Azure::Network::Mgmt::V2018_06_01::Models::IkeIntegrity end - def connectivity_source - Azure::Network::Mgmt::V2018_06_01::Models::ConnectivitySource + def ipsec_encryption + Azure::Network::Mgmt::V2018_06_01::Models::IpsecEncryption end - def virtual_network_usage - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkUsage + def ipsec_integrity + Azure::Network::Mgmt::V2018_06_01::Models::IpsecIntegrity end - def connectivity_destination - Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityDestination + def bgp_peer_state + Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerState end - def express_route_circuit_peering_config - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringConfig + def authentication_method + Azure::Network::Mgmt::V2018_06_01::Models::AuthenticationMethod end - def httpheader - Azure::Network::Mgmt::V2018_06_01::Models::HTTPHeader + def dh_group + Azure::Network::Mgmt::V2018_06_01::Models::DhGroup end - def dhcp_options - Azure::Network::Mgmt::V2018_06_01::Models::DhcpOptions + def pfs_group + Azure::Network::Mgmt::V2018_06_01::Models::PfsGroup end - def httpconfiguration - Azure::Network::Mgmt::V2018_06_01::Models::HTTPConfiguration + def hub_virtual_network_connection_status + Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnectionStatus end - def express_route_circuit_sku - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSku + def vpn_connection_status + Azure::Network::Mgmt::V2018_06_01::Models::VpnConnectionStatus end - def protocol_configuration - Azure::Network::Mgmt::V2018_06_01::Models::ProtocolConfiguration + def tunnel_connection_status + Azure::Network::Mgmt::V2018_06_01::Models::TunnelConnectionStatus end - def express_route_circuits_arp_table_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsArpTableListResult + def virtual_network_gateway_sku_tier + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuTier end - def connectivity_parameters - Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityParameters + def processor_architecture + Azure::Network::Mgmt::V2018_06_01::Models::ProcessorArchitecture end - def express_route_circuits_routes_table_summary_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsRoutesTableSummaryListResult + def virtual_network_gateway_connection_type + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionType end - def connectivity_issue - Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityIssue + def virtual_network_gateway_connection_status + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionStatus end - def express_route_service_provider_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderListResult + def origin + Azure::Network::Mgmt::V2018_06_01::Models::Origin end - def connectivity_hop - Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityHop + def error + Azure::Network::Mgmt::V2018_06_01::Models::Error end - def usages_list_result - Azure::Network::Mgmt::V2018_06_01::Models::UsagesListResult + def severity + Azure::Network::Mgmt::V2018_06_01::Models::Severity end - def connectivity_information - Azure::Network::Mgmt::V2018_06_01::Models::ConnectivityInformation + def protocol + Azure::Network::Mgmt::V2018_06_01::Models::Protocol end - def load_balancer_sku - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSku + def usage_name + Azure::Network::Mgmt::V2018_06_01::Models::UsageName end - def azure_reachability_report_location - Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportLocation + def usage + Azure::Network::Mgmt::V2018_06_01::Models::Usage end - def list_vpn_gateways_result - Azure::Network::Mgmt::V2018_06_01::Models::ListVpnGatewaysResult + def express_route_circuit_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitListResult end - def azure_reachability_report_parameters - Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportParameters + def sub_resource + Azure::Network::Mgmt::V2018_06_01::Models::SubResource end - def list_vpn_sites_result - Azure::Network::Mgmt::V2018_06_01::Models::ListVpnSitesResult + def resource + Azure::Network::Mgmt::V2018_06_01::Models::Resource end - def azure_reachability_report_latency_info - Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportLatencyInfo + def public_ipaddress_list_result + Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressListResult end - def local_network_gateway_list_result - Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGatewayListResult + def application_gateway_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayListResult end - def azure_reachability_report_item - Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReportItem + def application_gateway_backend_address + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendAddress end def connection_reset_shared_key Azure::Network::Mgmt::V2018_06_01::Models::ConnectionResetSharedKey end - def azure_reachability_report - Azure::Network::Mgmt::V2018_06_01::Models::AzureReachabilityReport + def dns_name_availability_result + Azure::Network::Mgmt::V2018_06_01::Models::DnsNameAvailabilityResult end - def gateway_route - Azure::Network::Mgmt::V2018_06_01::Models::GatewayRoute + def network_interface_dns_settings + Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceDnsSettings end - def available_providers_list_parameters - Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListParameters + def network_security_group_list_result + Azure::Network::Mgmt::V2018_06_01::Models::NetworkSecurityGroupListResult end - def application_gateway_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayListResult + def virtual_network_gateway_list_result + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListResult end - def available_providers_list_city - Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListCity + def authorization_list_result + Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationListResult end - def ddos_protection_plan - Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlan + def bgp_settings + Azure::Network::Mgmt::V2018_06_01::Models::BgpSettings end - def available_providers_list_state - Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListState + def express_route_circuit_peering_config + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringConfig + end + def vpn_client_configuration + Azure::Network::Mgmt::V2018_06_01::Models::VpnClientConfiguration end def express_route_circuit_stats Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitStats end - def available_providers_list_country - Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersListCountry + def virtual_network_list_result + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkListResult end - def subnet_list_result - Azure::Network::Mgmt::V2018_06_01::Models::SubnetListResult + def security_rule_list_result + Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleListResult end - def available_providers_list - Azure::Network::Mgmt::V2018_06_01::Models::AvailableProvidersList + def address_space + Azure::Network::Mgmt::V2018_06_01::Models::AddressSpace end - def express_route_service_provider_bandwidths_offered - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderBandwidthsOffered + def express_route_circuit_peering_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringListResult end - def connection_monitor_source - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorSource + def usages_list_result + Azure::Network::Mgmt::V2018_06_01::Models::UsagesListResult end - def express_route_cross_connection_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionListResult + def express_route_circuit_sku + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSku end - def connection_monitor_destination - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorDestination + def express_route_circuit_service_provider_properties + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitServiceProviderProperties end - def service_endpoint_properties_format - Azure::Network::Mgmt::V2018_06_01::Models::ServiceEndpointPropertiesFormat + def route_table_list_result + Azure::Network::Mgmt::V2018_06_01::Models::RouteTableListResult end - def connection_monitor_parameters - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorParameters + def policies + Azure::Network::Mgmt::V2018_06_01::Models::Policies end - def application_gateway_backend_health - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealth + def network_interface_list_result + Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceListResult end - def connection_monitor - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitor + def express_route_circuit_arp_table + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitArpTable end - def application_gateway_web_application_firewall_configuration - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayWebApplicationFirewallConfiguration + def express_route_circuits_arp_table_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsArpTableListResult end - def connection_monitor_result - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorResult + def public_ipaddress_dns_settings + Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressDnsSettings end - def virtual_network_usage_name - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkUsageName + def express_route_circuit_routes_table + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTable end - def connection_monitor_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorListResult + def dhcp_options + Azure::Network::Mgmt::V2018_06_01::Models::DhcpOptions end def express_route_circuits_routes_table_list_result Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitsRoutesTableListResult end - def connection_state_snapshot - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionStateSnapshot - end - def vpn_site_id - Azure::Network::Mgmt::V2018_06_01::Models::VpnSiteId - end - def connection_monitor_query_result - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorQueryResult + def application_gateway_sku + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySku end - def bgp_peer_status_list_result - Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatusListResult + def local_network_gateway_list_result + Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGatewayListResult end - def operation_display - Azure::Network::Mgmt::V2018_06_01::Models::OperationDisplay + def virtual_network_gateway_connection_list_result + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListResult end - def ipv6_express_route_circuit_peering_config - Azure::Network::Mgmt::V2018_06_01::Models::Ipv6ExpressRouteCircuitPeeringConfig + def load_balancer_list_result + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerListResult end - def availability - Azure::Network::Mgmt::V2018_06_01::Models::Availability + def virtual_network_gateway_sku + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySku end - def virtual_network_gateway_list_connections_result - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayListConnectionsResult + def azure_async_operation_result + Azure::Network::Mgmt::V2018_06_01::Models::AzureAsyncOperationResult end - def dimension - Azure::Network::Mgmt::V2018_06_01::Models::Dimension + def route_list_result + Azure::Network::Mgmt::V2018_06_01::Models::RouteListResult end - def express_route_cross_connections_routes_table_summary_list_result - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionsRoutesTableSummaryListResult + def subnet_list_result + Azure::Network::Mgmt::V2018_06_01::Models::SubnetListResult end - def metric_specification - Azure::Network::Mgmt::V2018_06_01::Models::MetricSpecification + def express_route_service_provider_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderListResult end - def application_gateway_available_waf_rule_sets_result - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableWafRuleSetsResult + def vpn_client_parameters + Azure::Network::Mgmt::V2018_06_01::Models::VpnClientParameters end - def log_specification - Azure::Network::Mgmt::V2018_06_01::Models::LogSpecification + def error_details + Azure::Network::Mgmt::V2018_06_01::Models::ErrorDetails end - def azure_firewall_ipconfiguration - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallIPConfiguration + def application_gateway_ipconfiguration + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayIPConfiguration end - def azure_firewall_application_rule_collection - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleCollection + def application_gateway_ssl_certificate + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCertificate end - def azure_firewall_network_rule_collection - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRuleCollection + def application_gateway_frontend_ipconfiguration + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendIPConfiguration end - def azure_firewall - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewall + def express_route_service_provider_bandwidths_offered + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProviderBandwidthsOffered end def backend_address_pool Azure::Network::Mgmt::V2018_06_01::Models::BackendAddressPool @@ -1072,9 +1144,6 @@ def backend_address_pool def inbound_nat_rule Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRule end - def application_security_group - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroup - end def security_rule Azure::Network::Mgmt::V2018_06_01::Models::SecurityRule end @@ -1096,12 +1165,12 @@ def public_ipaddress def ipconfiguration Azure::Network::Mgmt::V2018_06_01::Models::IPConfiguration end - def resource_navigation_link - Azure::Network::Mgmt::V2018_06_01::Models::ResourceNavigationLink - end def subnet Azure::Network::Mgmt::V2018_06_01::Models::Subnet end + def tags_object + Azure::Network::Mgmt::V2018_06_01::Models::TagsObject + end def network_interface_ipconfiguration Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfiguration end @@ -1111,233 +1180,125 @@ def application_gateway_backend_address_pool def application_gateway_backend_http_settings Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHttpSettings end - def application_gateway_ipconfiguration - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayIPConfiguration - end - def application_gateway_authentication_certificate - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAuthenticationCertificate - end - def application_gateway_ssl_certificate - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCertificate - end - def application_gateway_frontend_ipconfiguration - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendIPConfiguration - end def application_gateway_frontend_port Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFrontendPort end - def application_gateway_http_listener - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayHttpListener - end def application_gateway_path_rule Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayPathRule end - def application_gateway_probe - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbe + def application_gateway_http_listener + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayHttpListener end def application_gateway_request_routing_rule Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRequestRoutingRule end - def application_gateway_redirect_configuration - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRedirectConfiguration - end - def application_gateway_url_path_map - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayUrlPathMap + def application_gateway_probe + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProbe end def application_gateway Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGateway end - def application_gateway_firewall_rule_set - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRuleSet - end - def application_gateway_available_ssl_options - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslOptions - end - def application_gateway_ssl_predefined_policy - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPredefinedPolicy - end - def endpoint_service_result - Azure::Network::Mgmt::V2018_06_01::Models::EndpointServiceResult - end - def express_route_circuit_authorization - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitAuthorization - end - def route_filter_rule - Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRule - end - def express_route_circuit_connection - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitConnection + def application_gateway_url_path_map + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayUrlPathMap end def express_route_circuit_peering Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeering end - def route_filter - Azure::Network::Mgmt::V2018_06_01::Models::RouteFilter - end - def express_route_circuit - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuit + def express_route_circuit_authorization + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitAuthorization end def express_route_service_provider Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteServiceProvider end - def express_route_cross_connection_peering - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnectionPeering - end - def express_route_cross_connection - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCrossConnection - end - def frontend_ipconfiguration - Azure::Network::Mgmt::V2018_06_01::Models::FrontendIPConfiguration + def express_route_circuit + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuit end def load_balancing_rule Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancingRule end - def probe - Azure::Network::Mgmt::V2018_06_01::Models::Probe + def frontend_ipconfiguration + Azure::Network::Mgmt::V2018_06_01::Models::FrontendIPConfiguration end def inbound_nat_pool Azure::Network::Mgmt::V2018_06_01::Models::InboundNatPool end - def outbound_nat_rule - Azure::Network::Mgmt::V2018_06_01::Models::OutboundNatRule + def probe + Azure::Network::Mgmt::V2018_06_01::Models::Probe end def load_balancer Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancer end - def network_watcher - Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcher - end - def patch_route_filter_rule - Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilterRule - end - def patch_route_filter - Azure::Network::Mgmt::V2018_06_01::Models::PatchRouteFilter - end - def bgp_service_community - Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunity - end - def virtual_network_peering - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeering - end - def virtual_network - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetwork + def outbound_nat_rule + Azure::Network::Mgmt::V2018_06_01::Models::OutboundNatRule end def virtual_network_gateway_ipconfiguration Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayIPConfiguration end - def vpn_client_root_certificate - Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRootCertificate + def virtual_network + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetwork end def vpn_client_revoked_certificate Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRevokedCertificate end - def virtual_network_gateway - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGateway + def vpn_client_root_certificate + Azure::Network::Mgmt::V2018_06_01::Models::VpnClientRootCertificate end def local_network_gateway Azure::Network::Mgmt::V2018_06_01::Models::LocalNetworkGateway end - def virtual_network_gateway_connection - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnection - end - def connection_shared_key - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionSharedKey - end - def virtual_network_gateway_connection_list_entity - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionListEntity - end - def virtual_wan - Azure::Network::Mgmt::V2018_06_01::Models::VirtualWAN - end - def vpn_site - Azure::Network::Mgmt::V2018_06_01::Models::VpnSite - end - def hub_virtual_network_connection - Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnection - end - def virtual_hub - Azure::Network::Mgmt::V2018_06_01::Models::VirtualHub - end - def vpn_connection - Azure::Network::Mgmt::V2018_06_01::Models::VpnConnection - end - def vpn_gateway - Azure::Network::Mgmt::V2018_06_01::Models::VpnGateway + def virtual_network_gateway + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGateway end def provisioning_state Azure::Network::Mgmt::V2018_06_01::Models::ProvisioningState end - def azure_firewall_rcaction_type - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCActionType - end - def azure_firewall_application_rule_protocol_type - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocolType - end - def azure_firewall_network_rule_protocol - Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRuleProtocol + def virtual_network_gateway_connection + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnection end def transport_protocol Azure::Network::Mgmt::V2018_06_01::Models::TransportProtocol end - def ipallocation_method - Azure::Network::Mgmt::V2018_06_01::Models::IPAllocationMethod - end - def ipversion - Azure::Network::Mgmt::V2018_06_01::Models::IPVersion - end def security_rule_protocol Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleProtocol end + def ipallocation_method + Azure::Network::Mgmt::V2018_06_01::Models::IPAllocationMethod + end def security_rule_access Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleAccess end - def security_rule_direction - Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleDirection + def connection_shared_key + Azure::Network::Mgmt::V2018_06_01::Models::ConnectionSharedKey end def route_next_hop_type Azure::Network::Mgmt::V2018_06_01::Models::RouteNextHopType end - def public_ipaddress_sku_name - Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSkuName + def security_rule_direction + Azure::Network::Mgmt::V2018_06_01::Models::SecurityRuleDirection + end + def ipversion + Azure::Network::Mgmt::V2018_06_01::Models::IPVersion end def application_gateway_protocol Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayProtocol end - def application_gateway_cookie_based_affinity - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayCookieBasedAffinity - end - def application_gateway_backend_health_server_health - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServerHealth - end - def application_gateway_sku_name - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySkuName - end - def application_gateway_tier - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayTier - end - def application_gateway_ssl_protocol - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslProtocol - end - def application_gateway_ssl_policy_type - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyType - end - def application_gateway_ssl_policy_name - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslPolicyName - end - def application_gateway_ssl_cipher_suite - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySslCipherSuite + def application_gateway_cookie_based_affinity + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayCookieBasedAffinity end def application_gateway_request_routing_rule_type Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRequestRoutingRuleType end - def application_gateway_redirect_type - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayRedirectType - end def application_gateway_operational_state Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayOperationalState end - def application_gateway_firewall_mode - Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallMode + def application_gateway_sku_name + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewaySkuName + end + def application_gateway_tier + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayTier + end + def express_route_circuit_sku_tier + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuTier end def authorization_use_status Azure::Network::Mgmt::V2018_06_01::Models::AuthorizationUseStatus @@ -1345,158 +1306,197 @@ def authorization_use_status def express_route_circuit_peering_advertised_public_prefix_state Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState end - def access - Azure::Network::Mgmt::V2018_06_01::Models::Access - end - def express_route_peering_type - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRoutePeeringType - end - def express_route_peering_state - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRoutePeeringState - end - def circuit_connection_status - Azure::Network::Mgmt::V2018_06_01::Models::CircuitConnectionStatus + def express_route_circuit_sku_family + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuFamily end def express_route_circuit_peering_state Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitPeeringState end - def express_route_circuit_sku_tier - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuTier + def load_distribution + Azure::Network::Mgmt::V2018_06_01::Models::LoadDistribution end - def express_route_circuit_sku_family - Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitSkuFamily + def probe_protocol + Azure::Network::Mgmt::V2018_06_01::Models::ProbeProtocol end def service_provider_provisioning_state Azure::Network::Mgmt::V2018_06_01::Models::ServiceProviderProvisioningState end - def load_balancer_sku_name - Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerSkuName + def virtual_network_gateway_type + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayType end - def load_distribution - Azure::Network::Mgmt::V2018_06_01::Models::LoadDistribution + def topology_association + Azure::Network::Mgmt::V2018_06_01::Models::TopologyAssociation end - def probe_protocol - Azure::Network::Mgmt::V2018_06_01::Models::ProbeProtocol + def topology_resource + Azure::Network::Mgmt::V2018_06_01::Models::TopologyResource end - def network_operation_status - Azure::Network::Mgmt::V2018_06_01::Models::NetworkOperationStatus + def azure_firewall_rcaction + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallRCAction end - def effective_security_rule_protocol - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveSecurityRuleProtocol + def topology + Azure::Network::Mgmt::V2018_06_01::Models::Topology end - def effective_route_source - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteSource + def azure_firewall_application_rule + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRule end - def effective_route_state - Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteState + def verification_ipflow_parameters + Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowParameters end - def association_type - Azure::Network::Mgmt::V2018_06_01::Models::AssociationType + def azure_firewall_network_rule + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallNetworkRule end - def direction - Azure::Network::Mgmt::V2018_06_01::Models::Direction + def verification_ipflow_result + Azure::Network::Mgmt::V2018_06_01::Models::VerificationIPFlowResult end - def ip_flow_protocol - Azure::Network::Mgmt::V2018_06_01::Models::IpFlowProtocol + def azure_firewall_list_result + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallListResult end - def next_hop_type - Azure::Network::Mgmt::V2018_06_01::Models::NextHopType + def bgp_service_community_list_result + Azure::Network::Mgmt::V2018_06_01::Models::BgpServiceCommunityListResult end - def pc_protocol - Azure::Network::Mgmt::V2018_06_01::Models::PcProtocol + def bgpcommunity + Azure::Network::Mgmt::V2018_06_01::Models::BGPCommunity end - def pc_status - Azure::Network::Mgmt::V2018_06_01::Models::PcStatus + def list_hub_virtual_network_connections_result + Azure::Network::Mgmt::V2018_06_01::Models::ListHubVirtualNetworkConnectionsResult end - def pc_error - Azure::Network::Mgmt::V2018_06_01::Models::PcError + def route_filter_rule_list_result + Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterRuleListResult end - def protocol - Azure::Network::Mgmt::V2018_06_01::Models::Protocol + def get_vpn_sites_configuration_request + Azure::Network::Mgmt::V2018_06_01::Models::GetVpnSitesConfigurationRequest end - def httpmethod - Azure::Network::Mgmt::V2018_06_01::Models::HTTPMethod + def public_ipaddress_sku + Azure::Network::Mgmt::V2018_06_01::Models::PublicIPAddressSku end - def origin - Azure::Network::Mgmt::V2018_06_01::Models::Origin + def inbound_nat_rule_list_result + Azure::Network::Mgmt::V2018_06_01::Models::InboundNatRuleListResult end - def severity - Azure::Network::Mgmt::V2018_06_01::Models::Severity + def ip_tag + Azure::Network::Mgmt::V2018_06_01::Models::IpTag end - def issue_type - Azure::Network::Mgmt::V2018_06_01::Models::IssueType + def load_balancer_backend_address_pool_list_result + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerBackendAddressPoolListResult end - def connection_status - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionStatus + def device_properties + Azure::Network::Mgmt::V2018_06_01::Models::DeviceProperties end - def connection_monitor_source_status - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionMonitorSourceStatus + def load_balancer_frontend_ipconfiguration_list_result + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerFrontendIPConfigurationListResult end - def connection_state - Azure::Network::Mgmt::V2018_06_01::Models::ConnectionState + def vpn_device_script_parameters + Azure::Network::Mgmt::V2018_06_01::Models::VpnDeviceScriptParameters end - def evaluation_state - Azure::Network::Mgmt::V2018_06_01::Models::EvaluationState + def load_balancer_load_balancing_rule_list_result + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerLoadBalancingRuleListResult end - def virtual_network_peering_state - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringState + def load_balancer_probe_list_result + Azure::Network::Mgmt::V2018_06_01::Models::LoadBalancerProbeListResult end - def virtual_network_gateway_type - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayType + def application_gateway_connection_draining + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayConnectionDraining end - def vpn_type - Azure::Network::Mgmt::V2018_06_01::Models::VpnType + def application_gateway_backend_health_server + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthServer end - def virtual_network_gateway_sku_name - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuName + def application_gateway_backend_health_pool + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayBackendHealthPool end - def virtual_network_gateway_sku_tier - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewaySkuTier + def vpn_client_ipsec_parameters + Azure::Network::Mgmt::V2018_06_01::Models::VpnClientIPsecParameters end - def vpn_client_protocol - Azure::Network::Mgmt::V2018_06_01::Models::VpnClientProtocol + def network_interface_ipconfiguration_list_result + Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceIPConfigurationListResult end - def ipsec_encryption - Azure::Network::Mgmt::V2018_06_01::Models::IpsecEncryption + def network_interface_load_balancer_list_result + Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceLoadBalancerListResult end - def ipsec_integrity - Azure::Network::Mgmt::V2018_06_01::Models::IpsecIntegrity + def gateway_route_list_result + Azure::Network::Mgmt::V2018_06_01::Models::GatewayRouteListResult end - def ike_encryption - Azure::Network::Mgmt::V2018_06_01::Models::IkeEncryption + def effective_network_security_group_association + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupAssociation end - def ike_integrity - Azure::Network::Mgmt::V2018_06_01::Models::IkeIntegrity + def effective_network_security_rule + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityRule end - def dh_group - Azure::Network::Mgmt::V2018_06_01::Models::DhGroup + def effective_network_security_group + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroup end - def pfs_group - Azure::Network::Mgmt::V2018_06_01::Models::PfsGroup + def bgp_peer_status + Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerStatus end - def bgp_peer_state - Azure::Network::Mgmt::V2018_06_01::Models::BgpPeerState + def effective_network_security_group_list_result + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveNetworkSecurityGroupListResult end - def processor_architecture - Azure::Network::Mgmt::V2018_06_01::Models::ProcessorArchitecture + def application_gateway_firewall_disabled_rule_group + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallDisabledRuleGroup end - def authentication_method - Azure::Network::Mgmt::V2018_06_01::Models::AuthenticationMethod + def effective_route + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRoute end - def virtual_network_gateway_connection_status - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionStatus + def application_gateway_autoscale_bounds + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAutoscaleBounds end - def virtual_network_gateway_connection_type - Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkGatewayConnectionType + def effective_route_list_result + Azure::Network::Mgmt::V2018_06_01::Models::EffectiveRouteListResult end - def vpn_connection_status - Azure::Network::Mgmt::V2018_06_01::Models::VpnConnectionStatus + def application_gateway_firewall_rule + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayFirewallRule end - def tunnel_connection_status - Azure::Network::Mgmt::V2018_06_01::Models::TunnelConnectionStatus + def ipsec_policy + Azure::Network::Mgmt::V2018_06_01::Models::IpsecPolicy end - def hub_virtual_network_connection_status - Azure::Network::Mgmt::V2018_06_01::Models::HubVirtualNetworkConnectionStatus + def route_filter_list_result + Azure::Network::Mgmt::V2018_06_01::Models::RouteFilterListResult + end + def network_watcher_list_result + Azure::Network::Mgmt::V2018_06_01::Models::NetworkWatcherListResult + end + def application_gateway_available_ssl_predefined_policies + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationGatewayAvailableSslPredefinedPolicies + end + def topology_parameters + Azure::Network::Mgmt::V2018_06_01::Models::TopologyParameters + end + def application_security_group_list_result + Azure::Network::Mgmt::V2018_06_01::Models::ApplicationSecurityGroupListResult + end + def ddos_protection_plan_list_result + Azure::Network::Mgmt::V2018_06_01::Models::DdosProtectionPlanListResult + end + def endpoint_services_list_result + Azure::Network::Mgmt::V2018_06_01::Models::EndpointServicesListResult + end + def azure_firewall_application_rule_protocol + Azure::Network::Mgmt::V2018_06_01::Models::AzureFirewallApplicationRuleProtocol + end + def ipaddress_availability_result + Azure::Network::Mgmt::V2018_06_01::Models::IPAddressAvailabilityResult + end + def operation_properties_format_service_specification + Azure::Network::Mgmt::V2018_06_01::Models::OperationPropertiesFormatServiceSpecification + end + def virtual_network_peering_list_result + Azure::Network::Mgmt::V2018_06_01::Models::VirtualNetworkPeeringListResult + end + def next_hop_parameters + Azure::Network::Mgmt::V2018_06_01::Models::NextHopParameters + end + def next_hop_result + Azure::Network::Mgmt::V2018_06_01::Models::NextHopResult + end + def security_group_view_parameters + Azure::Network::Mgmt::V2018_06_01::Models::SecurityGroupViewParameters + end + def network_interface_association + Azure::Network::Mgmt::V2018_06_01::Models::NetworkInterfaceAssociation + end + def subnet_association + Azure::Network::Mgmt::V2018_06_01::Models::SubnetAssociation + end + def express_route_circuit_routes_table_summary + Azure::Network::Mgmt::V2018_06_01::Models::ExpressRouteCircuitRoutesTableSummary end end end diff --git a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb index 655bfad2cf..b73b2ca53d 100644 --- a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb @@ -9,30 +9,30 @@ module NewsSearch NewsOperations = Azure::CognitiveServices::NewsSearch::V1_0::NewsOperations module Models - ResponseBase = Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase - Error = Azure::CognitiveServices::NewsSearch::V1_0::Models::Error - Query = Azure::CognitiveServices::NewsSearch::V1_0::Models::Query NewsArticle = Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsArticle - SearchResultsAnswer = Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer News = Azure::CognitiveServices::NewsSearch::V1_0::Models::News - ImageObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::ImageObject + ResponseBase = Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase NewsTopic = Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic + Query = Azure::CognitiveServices::NewsSearch::V1_0::Models::Query + TrendingTopics = Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics Article = Azure::CognitiveServices::NewsSearch::V1_0::Models::Article + VideoObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject + SearchResultsAnswer = Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer Identifiable = Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::NewsSearch::V1_0::Models::Response Answer = Azure::CognitiveServices::NewsSearch::V1_0::Models::Answer Thing = Azure::CognitiveServices::NewsSearch::V1_0::Models::Thing - TrendingTopics = Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics - MediaObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::MediaObject - VideoObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject CreativeWork = Azure::CognitiveServices::NewsSearch::V1_0::Models::CreativeWork - Organization = Azure::CognitiveServices::NewsSearch::V1_0::Models::Organization - ErrorResponse = Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse ErrorCode = Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorCode ErrorSubCode = Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorSubCode - Freshness = Azure::CognitiveServices::NewsSearch::V1_0::Models::Freshness SafeSearch = Azure::CognitiveServices::NewsSearch::V1_0::Models::SafeSearch TextFormat = Azure::CognitiveServices::NewsSearch::V1_0::Models::TextFormat + Response = Azure::CognitiveServices::NewsSearch::V1_0::Models::Response + Freshness = Azure::CognitiveServices::NewsSearch::V1_0::Models::Freshness + ImageObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::ImageObject + Organization = Azure::CognitiveServices::NewsSearch::V1_0::Models::Organization + MediaObject = Azure::CognitiveServices::NewsSearch::V1_0::Models::MediaObject + Error = Azure::CognitiveServices::NewsSearch::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse end class NewsSearchDataClass @@ -65,78 +65,78 @@ def method_missing(method, *args) end class ModelClasses - def response_base - Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase - end - def error - Azure::CognitiveServices::NewsSearch::V1_0::Models::Error - end - def query - Azure::CognitiveServices::NewsSearch::V1_0::Models::Query - end def news_article Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsArticle end - def search_results_answer - Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer - end def news Azure::CognitiveServices::NewsSearch::V1_0::Models::News end - def image_object - Azure::CognitiveServices::NewsSearch::V1_0::Models::ImageObject + def response_base + Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase end def news_topic Azure::CognitiveServices::NewsSearch::V1_0::Models::NewsTopic end + def query + Azure::CognitiveServices::NewsSearch::V1_0::Models::Query + end + def trending_topics + Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics + end def article Azure::CognitiveServices::NewsSearch::V1_0::Models::Article end + def video_object + Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject + end + def search_results_answer + Azure::CognitiveServices::NewsSearch::V1_0::Models::SearchResultsAnswer + end def identifiable Azure::CognitiveServices::NewsSearch::V1_0::Models::Identifiable end - def response - Azure::CognitiveServices::NewsSearch::V1_0::Models::Response - end def answer Azure::CognitiveServices::NewsSearch::V1_0::Models::Answer end def thing Azure::CognitiveServices::NewsSearch::V1_0::Models::Thing end - def trending_topics - Azure::CognitiveServices::NewsSearch::V1_0::Models::TrendingTopics - end - def media_object - Azure::CognitiveServices::NewsSearch::V1_0::Models::MediaObject - end - def video_object - Azure::CognitiveServices::NewsSearch::V1_0::Models::VideoObject - end def creative_work Azure::CognitiveServices::NewsSearch::V1_0::Models::CreativeWork end - def organization - Azure::CognitiveServices::NewsSearch::V1_0::Models::Organization - end - def error_response - Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse - end def error_code Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorCode end def error_sub_code Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorSubCode end - def freshness - Azure::CognitiveServices::NewsSearch::V1_0::Models::Freshness - end def safe_search Azure::CognitiveServices::NewsSearch::V1_0::Models::SafeSearch end def text_format Azure::CognitiveServices::NewsSearch::V1_0::Models::TextFormat end + def response + Azure::CognitiveServices::NewsSearch::V1_0::Models::Response + end + def freshness + Azure::CognitiveServices::NewsSearch::V1_0::Models::Freshness + end + def image_object + Azure::CognitiveServices::NewsSearch::V1_0::Models::ImageObject + end + def organization + Azure::CognitiveServices::NewsSearch::V1_0::Models::Organization + end + def media_object + Azure::CognitiveServices::NewsSearch::V1_0::Models::MediaObject + end + def error + Azure::CognitiveServices::NewsSearch::V1_0::Models::Error + end + def error_response + Azure::CognitiveServices::NewsSearch::V1_0::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb index d481e842fd..a03e4c6fe9 100644 --- a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb @@ -7,49 +7,49 @@ module Azure::Profiles::Latest module NotificationHubs module Mgmt - Operations = Azure::NotificationHubs::Mgmt::V2017_04_01::Operations Namespaces = Azure::NotificationHubs::Mgmt::V2017_04_01::Namespaces + Operations = Azure::NotificationHubs::Mgmt::V2017_04_01::Operations NotificationHubs = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubs module Models - ResourceListKeys = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys - PolicykeyResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource - Operation = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation - ApnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential - ErrorResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse - WnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential - CheckAvailabilityParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters - GcmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential - OperationDisplay = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay - OperationListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult - Sku = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku - SharedAccessAuthorizationRuleCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters - SubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource - NotificationHubListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult - SharedAccessAuthorizationRuleListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult - Resource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource SharedAccessAuthorizationRuleProperties = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties MpnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential NamespacePatchParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters AdmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential + Operation = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation NamespaceListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult BaiduCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential - CheckAvailabilityResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult + SharedAccessAuthorizationRuleCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters NamespaceCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters + ErrorResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse + Sku = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku NamespaceResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource - SharedAccessAuthorizationRuleResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource + CheckAvailabilityResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult NotificationHubCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters NotificationHubPatchParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubPatchParameters - NotificationHubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource + SharedAccessAuthorizationRuleResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource DebugSendResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse PnsCredentialsResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource - SkuName = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName - NamespaceType = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType + NotificationHubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource AccessRights = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights + NamespaceType = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType + SubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource + Resource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource + SkuName = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName + OperationDisplay = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay + ResourceListKeys = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys + PolicykeyResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource + ApnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential + WnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential + CheckAvailabilityParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters + GcmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential + OperationListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult + NotificationHubListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult + SharedAccessAuthorizationRuleListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult end class NotificationHubsManagementClass - attr_reader :operations, :namespaces, :notification_hubs, :configurable, :base_url, :options, :model_classes + attr_reader :namespaces, :operations, :notification_hubs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -59,8 +59,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations @namespaces = @client_0.namespaces + @operations = @client_0.operations @notification_hubs = @client_0.notification_hubs @model_classes = ModelClasses.new @@ -80,54 +80,6 @@ def method_missing(method, *args) end class ModelClasses - def resource_list_keys - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys - end - def policykey_resource - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource - end - def operation - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation - end - def apns_credential - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential - end - def error_response - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse - end - def wns_credential - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential - end - def check_availability_parameters - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters - end - def gcm_credential - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential - end - def operation_display - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay - end - def operation_list_result - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult - end - def sku - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku - end - def shared_access_authorization_rule_create_or_update_parameters - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters - end - def sub_resource - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource - end - def notification_hub_list_result - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult - end - def shared_access_authorization_rule_list_result - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult - end - def resource - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource - end def shared_access_authorization_rule_properties Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties end @@ -140,23 +92,32 @@ def namespace_patch_parameters def adm_credential Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential end + def operation + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation + end def namespace_list_result Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult end def baidu_credential Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential end - def check_availability_result - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult + def shared_access_authorization_rule_create_or_update_parameters + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters end def namespace_create_or_update_parameters Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters end + def error_response + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse + end + def sku + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku + end def namespace_resource Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource end - def shared_access_authorization_rule_resource - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource + def check_availability_result + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult end def notification_hub_create_or_update_parameters Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters @@ -164,8 +125,8 @@ def notification_hub_create_or_update_parameters def notification_hub_patch_parameters Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubPatchParameters end - def notification_hub_resource - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource + def shared_access_authorization_rule_resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource end def debug_send_response Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse @@ -173,14 +134,53 @@ def debug_send_response def pns_credentials_resource Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource end - def sku_name - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName + def notification_hub_resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource + end + def access_rights + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights end def namespace_type Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType end - def access_rights - Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights + def sub_resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource + end + def resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource + end + def sku_name + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName + end + def operation_display + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay + end + def resource_list_keys + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys + end + def policykey_resource + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource + end + def apns_credential + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential + end + def wns_credential + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential + end + def check_availability_parameters + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters + end + def gcm_credential + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential + end + def operation_list_result + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult + end + def notification_hub_list_result + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult + end + def shared_access_authorization_rule_list_result + Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult end end end diff --git a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb index 5f7eec328a..430707a8d7 100644 --- a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb @@ -9,64 +9,64 @@ module OperationalInsights module Mgmt StorageInsights = Azure::OperationalInsights::Mgmt::V2015_03_20::StorageInsights SavedSearches = Azure::OperationalInsights::Mgmt::V2015_03_20::SavedSearches + Operations = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Operations LinkedServices = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::LinkedServices DataSources = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::DataSources Workspaces = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Workspaces - Operations = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Operations module Models - SearchSchemaValue = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue - SearchGetSchemaResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchGetSchemaResponse - SearchHighlight = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchHighlight - LinkTarget = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::LinkTarget - SearchParameters = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters - CoreSummary = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::CoreSummary - StorageAccount = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageAccount - SearchMetadataSchema = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadataSchema - StorageInsightStatus = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightStatus SavedSearch = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch SavedSearchesListResult = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearchesListResult SearchResultsResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchResultsResponse StorageInsightListResult = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightListResult SearchSort = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSort - SearchError = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchError WorkspacePurgeBodyFilters = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBodyFilters - Tag = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag WorkspacePurgeBody = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody + SearchError = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchError WorkspacePurgeResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeResponse SearchMetadata = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadata WorkspacePurgeStatusResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeStatusResponse StorageInsight = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsight - SearchSortEnum = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum StorageInsightState = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightState + SearchSortEnum = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum PurgeState = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState - MetricName = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::MetricName - OperationDisplay = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationDisplay - UsageMetric = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric - OperationListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationListResult - WorkspaceListUsagesResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListUsagesResult - LinkedServiceListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedServiceListResult - ManagementGroup = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ManagementGroup + Tag = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag + StorageAccount = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageAccount + SearchSchemaValue = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue + SearchGetSchemaResponse = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchGetSchemaResponse + SearchHighlight = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchHighlight + LinkTarget = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::LinkTarget + SearchParameters = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters + CoreSummary = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::CoreSummary + SearchMetadataSchema = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadataSchema + StorageInsightStatus = Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightStatus DataSourceFilter = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceFilter WorkspaceListManagementGroupsResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListManagementGroupsResult IntelligencePack = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::IntelligencePack - Sku = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Sku - Operation = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Operation SharedKeys = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SharedKeys - Resource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Resource - DataSourceListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceListResult - ProxyResource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ProxyResource + Operation = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Operation WorkspaceListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListResult LinkedService = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService + DataSourceListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceListResult DataSource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource Workspace = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace + Sku = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Sku + EntityStatus = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus DataSourceKind = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceKind + ProxyResource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ProxyResource SkuNameEnum = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SkuNameEnum - EntityStatus = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus + Resource = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Resource + MetricName = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::MetricName + OperationDisplay = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationDisplay + OperationListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationListResult + UsageMetric = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric + WorkspaceListUsagesResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListUsagesResult + LinkedServiceListResult = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedServiceListResult + ManagementGroup = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ManagementGroup end class OperationalInsightsManagementClass - attr_reader :storage_insights, :saved_searches, :linked_services, :data_sources, :workspaces, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :storage_insights, :saved_searches, :operations, :linked_services, :data_sources, :workspaces, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -84,10 +84,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @operations = @client_1.operations @linked_services = @client_1.linked_services @data_sources = @client_1.data_sources @workspaces = @client_1.workspaces - @operations = @client_1.operations @model_classes = ModelClasses.new end @@ -108,33 +108,6 @@ def method_missing(method, *args) end class ModelClasses - def search_schema_value - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue - end - def search_get_schema_response - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchGetSchemaResponse - end - def search_highlight - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchHighlight - end - def link_target - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::LinkTarget - end - def search_parameters - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters - end - def core_summary - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::CoreSummary - end - def storage_account - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageAccount - end - def search_metadata_schema - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadataSchema - end - def storage_insight_status - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightStatus - end def saved_search Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SavedSearch end @@ -150,18 +123,15 @@ def storage_insight_list_result def search_sort Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSort end - def search_error - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchError - end def workspace_purge_body_filters Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBodyFilters end - def tag - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag - end def workspace_purge_body Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeBody end + def search_error + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchError + end def workspace_purge_response Azure::OperationalInsights::Mgmt::V2015_03_20::Models::WorkspacePurgeResponse end @@ -174,35 +144,44 @@ def workspace_purge_status_response def storage_insight Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsight end - def search_sort_enum - Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum - end def storage_insight_state Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightState end + def search_sort_enum + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSortEnum + end def purge_state Azure::OperationalInsights::Mgmt::V2015_03_20::Models::PurgeState end - def metric_name - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::MetricName + def tag + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::Tag end - def operation_display - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationDisplay + def storage_account + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageAccount end - def usage_metric - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric + def search_schema_value + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue end - def operation_list_result - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationListResult + def search_get_schema_response + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchGetSchemaResponse end - def workspace_list_usages_result - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListUsagesResult + def search_highlight + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchHighlight end - def linked_service_list_result - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedServiceListResult + def link_target + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::LinkTarget end - def management_group - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ManagementGroup + def search_parameters + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchParameters + end + def core_summary + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::CoreSummary + end + def search_metadata_schema + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchMetadataSchema + end + def storage_insight_status + Azure::OperationalInsights::Mgmt::V2015_03_20::Models::StorageInsightStatus end def data_source_filter Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceFilter @@ -213,23 +192,11 @@ def workspace_list_management_groups_result def intelligence_pack Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::IntelligencePack end - def sku - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Sku - end - def operation - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Operation - end def shared_keys Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SharedKeys end - def resource - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Resource - end - def data_source_list_result - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceListResult - end - def proxy_resource - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ProxyResource + def operation + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Operation end def workspace_list_result Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListResult @@ -237,20 +204,53 @@ def workspace_list_result def linked_service Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedService end + def data_source_list_result + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceListResult + end def data_source Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSource end def workspace Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Workspace end + def sku + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Sku + end + def entity_status + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus + end def data_source_kind Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::DataSourceKind end + def proxy_resource + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ProxyResource + end def sku_name_enum Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::SkuNameEnum end - def entity_status - Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::EntityStatus + def resource + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::Resource + end + def metric_name + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::MetricName + end + def operation_display + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationDisplay + end + def operation_list_result + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::OperationListResult + end + def usage_metric + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::UsageMetric + end + def workspace_list_usages_result + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::WorkspaceListUsagesResult + end + def linked_service_list_result + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::LinkedServiceListResult + end + def management_group + Azure::OperationalInsights::Mgmt::V2015_11_01_preview::Models::ManagementGroup end end end diff --git a/azure_sdk/lib/latest/modules/policy_profile_module.rb b/azure_sdk/lib/latest/modules/policy_profile_module.rb index 55cc7f93f8..ca8948bfa3 100644 --- a/azure_sdk/lib/latest/modules/policy_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policy_profile_module.rb @@ -7,26 +7,26 @@ module Azure::Profiles::Latest module Policy module Mgmt + PolicySetDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicySetDefinitions PolicyAssignments = Azure::Policy::Mgmt::V2018_03_01::PolicyAssignments PolicyDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicyDefinitions - PolicySetDefinitions = Azure::Policy::Mgmt::V2018_03_01::PolicySetDefinitions module Models - PolicyDefinition = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinition - PolicyDefinitionListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionListResult - PolicyAssignment = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignment PolicyDefinitionReference = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionReference - ErrorResponse = Azure::Policy::Mgmt::V2018_03_01::Models::ErrorResponse PolicySetDefinition = Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinition - PolicyAssignmentListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignmentListResult PolicySetDefinitionListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinitionListResult PolicySku = Azure::Policy::Mgmt::V2018_03_01::Models::PolicySku - PolicyType = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyType PolicyMode = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyMode + PolicyAssignment = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignment + PolicyDefinition = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinition + PolicyAssignmentListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignmentListResult + PolicyDefinitionListResult = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionListResult + PolicyType = Azure::Policy::Mgmt::V2018_03_01::Models::PolicyType + ErrorResponse = Azure::Policy::Mgmt::V2018_03_01::Models::ErrorResponse end class PolicyManagementClass - attr_reader :policy_assignments, :policy_definitions, :policy_set_definitions, :configurable, :base_url, :options, :model_classes + attr_reader :policy_set_definitions, :policy_assignments, :policy_definitions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -36,9 +36,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @policy_set_definitions = @client_0.policy_set_definitions @policy_assignments = @client_0.policy_assignments @policy_definitions = @client_0.policy_definitions - @policy_set_definitions = @client_0.policy_set_definitions @model_classes = ModelClasses.new end @@ -57,38 +57,38 @@ def method_missing(method, *args) end class ModelClasses - def policy_definition - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinition - end - def policy_definition_list_result - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionListResult - end - def policy_assignment - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignment - end def policy_definition_reference Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionReference end - def error_response - Azure::Policy::Mgmt::V2018_03_01::Models::ErrorResponse - end def policy_set_definition Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinition end - def policy_assignment_list_result - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignmentListResult - end def policy_set_definition_list_result Azure::Policy::Mgmt::V2018_03_01::Models::PolicySetDefinitionListResult end def policy_sku Azure::Policy::Mgmt::V2018_03_01::Models::PolicySku end + def policy_mode + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyMode + end + def policy_assignment + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignment + end + def policy_definition + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinition + end + def policy_assignment_list_result + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyAssignmentListResult + end + def policy_definition_list_result + Azure::Policy::Mgmt::V2018_03_01::Models::PolicyDefinitionListResult + end def policy_type Azure::Policy::Mgmt::V2018_03_01::Models::PolicyType end - def policy_mode - Azure::Policy::Mgmt::V2018_03_01::Models::PolicyMode + def error_response + Azure::Policy::Mgmt::V2018_03_01::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb b/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb index 49e79b35b4..cc4e048933 100644 --- a/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policyinsights_profile_module.rb @@ -7,11 +7,12 @@ module Azure::Profiles::Latest module PolicyInsights module Mgmt + Operations = Azure::PolicyInsights::Mgmt::V2018_04_04::Operations PolicyEvents = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyEvents PolicyStates = Azure::PolicyInsights::Mgmt::V2018_04_04::PolicyStates - Operations = Azure::PolicyInsights::Mgmt::V2018_04_04::Operations module Models + Operation = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation PolicyDefinitionSummary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyDefinitionSummary PolicyAssignmentSummary = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyAssignmentSummary PolicyEventsQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEventsQueryResults @@ -19,19 +20,18 @@ module Models QueryFailure = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailure SummarizeResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummarizeResults PolicyStatesQueryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesQueryResults - OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay PolicyEvent = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent - Operation = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation PolicyState = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyState OperationsListResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationsListResults QueryFailureError = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError - QueryOptions = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions SummaryResults = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults + OperationDisplay = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay PolicyStatesResource = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesResource + QueryOptions = Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions end class PolicyInsightsManagementClass - attr_reader :policy_events, :policy_states, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :policy_events, :policy_states, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -41,9 +41,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @policy_events = @client_0.policy_events @policy_states = @client_0.policy_states - @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -62,6 +62,9 @@ def method_missing(method, *args) end class ModelClasses + def operation + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation + end def policy_definition_summary Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyDefinitionSummary end @@ -83,15 +86,9 @@ def summarize_results def policy_states_query_results Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesQueryResults end - def operation_display - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay - end def policy_event Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyEvent end - def operation - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::Operation - end def policy_state Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyState end @@ -101,15 +98,18 @@ def operations_list_results def query_failure_error Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryFailureError end - def query_options - Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions - end def summary_results Azure::PolicyInsights::Mgmt::V2018_04_04::Models::SummaryResults end + def operation_display + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::OperationDisplay + end def policy_states_resource Azure::PolicyInsights::Mgmt::V2018_04_04::Models::PolicyStatesResource end + def query_options + Azure::PolicyInsights::Mgmt::V2018_04_04::Models::QueryOptions + end end end end diff --git a/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb b/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb index 215c4dbc2c..d71a418929 100644 --- a/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb +++ b/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb @@ -11,25 +11,25 @@ module Mgmt Workspaces = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Workspaces module Models - Operation = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation - OperationList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList - Error = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error - WorkspaceCollectionAccessKeys = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys - WorkspaceCollection = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection - WorkspaceCollectionAccessKey = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey - Workspace = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace CreateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest Display = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Display UpdateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::UpdateWorkspaceCollectionRequest AzureSku = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku + Operation = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation CheckNameRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest WorkspaceList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList + Error = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error + Workspace = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace CheckNameResponse = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse WorkspaceCollectionList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionList MigrateWorkspaceCollectionRequest = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::MigrateWorkspaceCollectionRequest ErrorDetail = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::ErrorDetail AccessKeyName = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AccessKeyName CheckNameReason = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason + OperationList = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList + WorkspaceCollectionAccessKeys = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys + WorkspaceCollection = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection + WorkspaceCollectionAccessKey = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey end class PowerBiEmbeddedManagementClass @@ -63,27 +63,6 @@ def method_missing(method, *args) end class ModelClasses - def operation - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation - end - def operation_list - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList - end - def error - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error - end - def workspace_collection_access_keys - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys - end - def workspace_collection - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection - end - def workspace_collection_access_key - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey - end - def workspace - Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace - end def create_workspace_collection_request Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CreateWorkspaceCollectionRequest end @@ -96,12 +75,21 @@ def update_workspace_collection_request def azure_sku Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::AzureSku end + def operation + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation + end def check_name_request Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameRequest end def workspace_list Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceList end + def error + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Error + end + def workspace + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Workspace + end def check_name_response Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameResponse end @@ -120,6 +108,18 @@ def access_key_name def check_name_reason Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::CheckNameReason end + def operation_list + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::OperationList + end + def workspace_collection_access_keys + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKeys + end + def workspace_collection + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollection + end + def workspace_collection_access_key + Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::WorkspaceCollectionAccessKey + end end end end diff --git a/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb index e4a5a707d8..3165c7d925 100644 --- a/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb @@ -7,19 +7,18 @@ module Azure::Profiles::Latest module RecoveryServices module Mgmt + Usages = Azure::RecoveryServices::Mgmt::V2016_06_01::Usages + Operations = Azure::RecoveryServices::Mgmt::V2016_06_01::Operations + Vaults = Azure::RecoveryServices::Mgmt::V2016_06_01::Vaults VaultCertificates = Azure::RecoveryServices::Mgmt::V2016_06_01::VaultCertificates RegisteredIdentities = Azure::RecoveryServices::Mgmt::V2016_06_01::RegisteredIdentities ReplicationUsages = Azure::RecoveryServices::Mgmt::V2016_06_01::ReplicationUsages - Vaults = Azure::RecoveryServices::Mgmt::V2016_06_01::Vaults - Operations = Azure::RecoveryServices::Mgmt::V2016_06_01::Operations VaultExtendedInfoOperations = Azure::RecoveryServices::Mgmt::V2016_06_01::VaultExtendedInfoOperations - Usages = Azure::RecoveryServices::Mgmt::V2016_06_01::Usages module Models ClientDiscoveryValueForSingleApi = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryValueForSingleApi ClientDiscoveryResponse = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryResponse CertificateRequest = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::CertificateRequest - Resource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Resource ClientDiscoveryForProperties = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForProperties RawCertificateData = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::RawCertificateData VaultCertificateResponse = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultCertificateResponse @@ -35,25 +34,26 @@ module Models ClientDiscoveryForLogSpecification = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForLogSpecification UpgradeDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UpgradeDetails ReplicationUsageList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsageList - VaultProperties = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultProperties ResourceCertificateDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateDetails NameInfo = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::NameInfo ResourceCertificateAndAadDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAadDetails - ResourceCertificateAndAcsDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAcsDetails - TrackedResource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TrackedResource + VaultProperties = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultProperties PatchTrackedResource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchTrackedResource - Vault = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault - PatchVault = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchVault + ResourceCertificateAndAcsDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAcsDetails VaultExtendedInfoResource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource + Resource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Resource + TrackedResource = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TrackedResource AuthType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType + PatchVault = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchVault + TriggerType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType SkuName = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::SkuName VaultUpgradeState = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUpgradeState - TriggerType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType + Vault = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault UsagesUnit = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit end class RecoveryServicesManagementClass - attr_reader :vault_certificates, :registered_identities, :replication_usages, :vaults, :operations, :vault_extended_info_operations, :usages, :configurable, :base_url, :options, :model_classes + attr_reader :usages, :operations, :vaults, :vault_certificates, :registered_identities, :replication_usages, :vault_extended_info_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -63,13 +63,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @usages = @client_0.usages + @operations = @client_0.operations + @vaults = @client_0.vaults @vault_certificates = @client_0.vault_certificates @registered_identities = @client_0.registered_identities @replication_usages = @client_0.replication_usages - @vaults = @client_0.vaults - @operations = @client_0.operations @vault_extended_info_operations = @client_0.vault_extended_info_operations - @usages = @client_0.usages @model_classes = ModelClasses.new end @@ -97,9 +97,6 @@ def client_discovery_response def certificate_request Azure::RecoveryServices::Mgmt::V2016_06_01::Models::CertificateRequest end - def resource - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Resource - end def client_discovery_for_properties Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForProperties end @@ -145,9 +142,6 @@ def upgrade_details def replication_usage_list Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsageList end - def vault_properties - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultProperties - end def resource_certificate_details Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateDetails end @@ -157,35 +151,41 @@ def name_info def resource_certificate_and_aad_details Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAadDetails end - def resource_certificate_and_acs_details - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAcsDetails - end - def tracked_resource - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TrackedResource + def vault_properties + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultProperties end def patch_tracked_resource Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchTrackedResource end - def vault - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault - end - def patch_vault - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchVault + def resource_certificate_and_acs_details + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAcsDetails end def vault_extended_info_resource Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultExtendedInfoResource end + def resource + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Resource + end + def tracked_resource + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TrackedResource + end def auth_type Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType end + def patch_vault + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::PatchVault + end + def trigger_type + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType + end def sku_name Azure::RecoveryServices::Mgmt::V2016_06_01::Models::SkuName end def vault_upgrade_state Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUpgradeState end - def trigger_type - Azure::RecoveryServices::Mgmt::V2016_06_01::Models::TriggerType + def vault + Azure::RecoveryServices::Mgmt::V2016_06_01::Models::Vault end def usages_unit Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit diff --git a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb index 3a8c4a9510..20ae253ae1 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb @@ -8,6 +8,13 @@ module Azure::Profiles::Latest module RecoveryServicesBackup module Mgmt Operations = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Operations + ProtectionPolicies = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicies + ProtectionPolicyOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicyOperationResults + ProtectionPolicyOperationStatuses = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicyOperationStatuses + BackupProtectableItems = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupProtectableItems + BackupProtectionContainers = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupProtectionContainers + SecurityPINs = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::SecurityPINs + BackupResourceStorageConfigs = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupResourceStorageConfigs BackupResourceVaultConfigs = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupResourceVaultConfigs BackupEngines = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupEngines ProtectionContainerRefreshOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionContainerRefreshOperationResults @@ -26,32 +33,31 @@ module Mgmt JobOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::JobOperationResults BackupOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupOperationResults BackupOperationStatuses = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupOperationStatuses - ProtectionPolicies = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicies - ProtectionPolicyOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicyOperationResults - ProtectionPolicyOperationStatuses = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::ProtectionPolicyOperationStatuses - BackupProtectableItems = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupProtectableItems - BackupProtectionContainers = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupProtectionContainers - SecurityPINs = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::SecurityPINs - BackupResourceStorageConfigs = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::BackupResourceStorageConfigs + Operation = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Operation ProtectionIntentOperations = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::ProtectionIntentOperations BackupStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupStatus FeatureSupport = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::FeatureSupport BackupJobs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupJobs JobDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::JobDetails ExportJobsOperationResults = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::ExportJobsOperationResults - Jobs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Jobs BackupPolicies = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupPolicies BackupProtectedItems = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupProtectedItems + Jobs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Jobs BackupUsageSummaries = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::BackupUsageSummaries - Operation = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Operation module Models - ClientDiscoveryForProperties = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties - ClientDiscoveryDisplay = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryDisplay ClientDiscoveryValueForSingleApi = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryValueForSingleApi + ClientDiscoveryDisplay = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryDisplay ClientDiscoveryForServiceSpecification = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForServiceSpecification + ClientDiscoveryForProperties = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties ClientDiscoveryResponse = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryResponse ClientDiscoveryForLogSpecification = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForLogSpecification + RestorePointQueryType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestorePointQueryType + RecoveryPointTierType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierType + RecoveryPointTierStatus = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierStatus + BackupItemType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupItemType + OperationStatusValues = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusValues + OperationStatus = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatus AzureWorkloadContainerExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainerExtendedInfo DPMContainerExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DPMContainerExtendedInfo InquiryInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::InquiryInfo @@ -94,7 +100,6 @@ module Models BMSPOQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BMSPOQueryObject AzureWorkloadSQLRecoveryPointExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLRecoveryPointExtendedInfo RecoveryPointTierInformation = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierInformation - OperationStatus = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatus GetProtectedItemQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GetProtectedItemQueryObject AzureBackupServerContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureBackupServerContainer AzureBackupServerEngine = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureBackupServerEngine @@ -107,59 +112,59 @@ module Models AzureIaaSComputeVMProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSComputeVMProtectableItem AzureSqlContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureSqlContainer AzureStorageContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureStorageContainer - AzureStorageProtectableContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureStorageProtectableContainer AzureVMAppContainerProtectableContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVMAppContainerProtectableContainer - AzureVmWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadItem + AzureStorageProtectableContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureStorageProtectableContainer AzureVmWorkloadProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadProtectableItem + AzureVmWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadItem AzureVmWorkloadSAPHanaDatabaseProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectableItem - AzureVmWorkloadSAPHanaDatabaseWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaDatabaseWorkloadItem AzureVmWorkloadSAPHanaSystemProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaSystemProtectableItem - AzureVmWorkloadSAPHanaSystemWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaSystemWorkloadItem + AzureVmWorkloadSAPHanaDatabaseWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaDatabaseWorkloadItem AzureVmWorkloadSQLAvailabilityGroupProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLAvailabilityGroupProtectableItem + AzureVmWorkloadSAPHanaSystemWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaSystemWorkloadItem AzureVmWorkloadSQLDatabaseProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLDatabaseProtectableItem - AzureVmWorkloadSQLDatabaseWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLDatabaseWorkloadItem AzureVmWorkloadSQLInstanceProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLInstanceProtectableItem - AzureVmWorkloadSQLInstanceWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLInstanceWorkloadItem + AzureVmWorkloadSQLDatabaseWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLDatabaseWorkloadItem AzureWorkloadBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadBackupRequest - AzureWorkloadContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainer + AzureVmWorkloadSQLInstanceWorkloadItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLInstanceWorkloadItem AzureSQLAGWorkloadContainerProtectionContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureSQLAGWorkloadContainerProtectionContainer - AzureVMAppContainerProtectionContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVMAppContainerProtectionContainer + AzureWorkloadContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainer AzureWorkloadRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadRecoveryPoint + AzureVMAppContainerProtectionContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVMAppContainerProtectionContainer AzureWorkloadSAPHanaRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSAPHanaRecoveryPoint AzureWorkloadSAPHanaPointInTimeRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSAPHanaPointInTimeRecoveryPoint - AzureWorkloadSQLRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLRecoveryPoint AzureWorkloadSQLPointInTimeRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLPointInTimeRecoveryPoint + AzureWorkloadSQLRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLRecoveryPoint BackupEngineBaseResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupEngineBaseResource - BackupEngineBaseResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupEngineBaseResourceList BackupRequestResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequestResource - BackupResourceConfigResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceConfigResource + BackupEngineBaseResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupEngineBaseResourceList BackupResourceVaultConfigResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceVaultConfigResource - DpmBackupEngine = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmBackupEngine + BackupResourceConfigResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceConfigResource DpmContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmContainer + DpmBackupEngine = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmBackupEngine GenericContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericContainer - GenericRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericRecoveryPoint IaasVMBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMBackupRequest - IaaSVMContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMContainer + GenericRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericRecoveryPoint IaasVMILRRegistrationRequest = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMILRRegistrationRequest - IaaSVMProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMProtectableItem + IaaSVMContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMContainer IaasVMRecoveryPoint = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMRecoveryPoint + IaaSVMProtectableItem = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMProtectableItem ILRRequestResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ILRRequestResource MabContainer = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::MabContainer - OperationStatusJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobExtendedInfo OperationStatusJobsExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobsExtendedInfo - OperationStatusProvisionILRExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusProvisionILRExtendedInfo + OperationStatusJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobExtendedInfo ProtectableContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource + OperationStatusProvisionILRExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusProvisionILRExtendedInfo ProtectableContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList - ProtectionContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource ProtectionContainerResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResourceList + ProtectionContainerResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource RecoveryPointResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResource - RecoveryPointResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResourceList RestoreRequestResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestoreRequestResource - WorkloadItemResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResource + RecoveryPointResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResourceList WorkloadItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResourceList - WorkloadProtectableItemResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResource WorkloadProtectableItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResourceList AzureFileShareType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareType + WorkloadProtectableItemResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResource + WorkloadItemResource = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResource InquiryStatus = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::InquiryStatus BackupType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupType RestorePointType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestorePointType @@ -167,165 +172,160 @@ module Models StorageTypeState = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::StorageTypeState EnhancedSecurityState = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::EnhancedSecurityState ContainerType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ContainerType - RestorePointQueryType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestorePointQueryType - RecoveryPointTierType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierType - RecoveryPointTierStatus = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierStatus - BackupItemType = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupItemType - OperationStatusValues = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusValues - DailyRetentionFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat - RetentionDuration = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration + RetentionDurationType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDurationType + DayOfWeek = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek + RetentionScheduleFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionScheduleFormat + RetentionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy + WeekOfMonth = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeekOfMonth + MonthOfYear = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthOfYear + ScheduleRunType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType + DataSourceType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType + NameInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::NameInfo + UsagesUnit = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::UsagesUnit + Job = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job + SubProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy AzureFileshareProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItemExtendedInfo - DailyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule SchedulePolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SchedulePolicy + CreateMode = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode + RestoreFileSpecs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreFileSpecs + ResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ResourceList DpmErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmErrorInfo + Resource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource OperationWorkerResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationWorkerResponse OperationResultInfoBase = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBase - TargetAFSRestoreInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetAFSRestoreInfo MabJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobExtendedInfo - ValidateOperationsResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationsResponse AzureWorkloadErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadErrorInfo AzureIaaSVMErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMErrorInfo AzureWorkloadJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobTaskDetails AzureIaaSVMJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobTaskDetails - AzureWorkloadJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo + DailyRetentionFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat ValidateOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest MabJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobTaskDetails - RestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest - MabFileFolderProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo - Resource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource + AzureWorkloadJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo MabErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabErrorInfo - AzureSqlProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo - TargetRestoreInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetRestoreInfo + ValidateOperationsResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationsResponse + DailyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule ProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntent - YearlyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::YearlyRetentionSchedule - AzureStorageJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails - MonthlyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthlyRetentionSchedule + RetentionDuration = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration ProtectedItemQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemQueryObject - WeeklyRetentionFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionFormat AzureVMResourceFeatureSupportResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportResponse - SQLDataDirectoryMapping = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping + AzureStorageJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails + ProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicy AzureVmWorkloadProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo - WeeklyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionSchedule - Settings = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings - NameInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::NameInfo PreValidateEnableBackupRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupRequest BackupManagementUsage = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsage - BackupManagementUsageList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList - AzureIaaSVMHealthDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMHealthDetails - BackupStatusRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest - AzureIaaSVMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo + RestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest + DPMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo BackupStatusResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusResponse - ProtectionPolicyQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject - BMSBackupSummariesQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject - AzureStorageErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageErrorInfo - Day = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Day - ProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem - ErrorDetail = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail - PreValidateEnableBackupResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse - EncryptionDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::EncryptionDetails - RestoreFileSpecs = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreFileSpecs - FeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FeatureSupportRequest - AzureIaaSVMJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo - RetentionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy - ProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicy JobQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobQueryObject - SubProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy DpmJobTaskDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobTaskDetails - ResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ResourceList DpmJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobExtendedInfo ValidateOperationResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationResponse - Job = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job AzureStorageJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobExtendedInfo - DPMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo AzureBackupGoalFeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureBackupGoalFeatureSupportRequest + AzureIaaSVMJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob + AzureRecoveryServiceVaultProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent + AzureResourceProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent + AzureStorageJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob + AzureVMResourceFeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest + AzureWorkloadAutoProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent + AzureIaaSVMHealthDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMHealthDetails + YearlyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::YearlyRetentionSchedule + Day = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Day + MonthlyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthlyRetentionSchedule + WeeklyRetentionFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionFormat + EncryptionDetails = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::EncryptionDetails + AzureWorkloadJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob + BackupManagementUsageList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList + WeeklyRetentionSchedule = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionSchedule + SQLDataDirectoryMapping = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping + ProtectionPolicyQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + MabFileFolderProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo + AzureStorageErrorInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageErrorInfo + PreValidateEnableBackupResponse = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse + FeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FeatureSupportRequest + AzureIaaSVMJobExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo AzureFileshareProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItem AzureFileShareProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareProtectionPolicy + AzureSqlProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo AzureFileShareRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareRestoreRequest + TargetRestoreInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetRestoreInfo + MabJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJob + AzureIaaSVMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem AzureIaaSClassicComputeVMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSClassicComputeVMProtectedItem + ExportJobsOperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo + BackupStatusRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest AzureIaaSComputeVMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSComputeVMProtectedItem - AzureIaaSVMJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob - AzureIaaSVMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem AzureIaaSVMProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectionPolicy - AzureRecoveryServiceVaultProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent - AzureResourceProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent + BMSBackupSummariesQueryObject = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject + Settings = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings AzureSqlProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItem AzureSqlProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectionPolicy - AzureStorageJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob - AzureVMResourceFeatureSupportRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest + JobResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResource + ProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem + TargetAFSRestoreInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetAFSRestoreInfo + OperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfo AzureVmWorkloadProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItem AzureVmWorkloadProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectionPolicy + DpmJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob AzureVmWorkloadSAPHanaDatabaseProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectedItem + ValidateRestoreOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateRestoreOperationRequest + AzureIaaSVMProtectedItemExtendedInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo + JobSupportedAction = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobSupportedAction + SupportStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SupportStatus + OperationResultInfoBaseResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBaseResource AzureVmWorkloadSQLDatabaseProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSQLDatabaseProtectedItem - AzureWorkloadAutoProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent - AzureWorkloadJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob + AzureWorkloadSQLAutoProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLAutoProtectionIntent + ProtectionPolicyResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResourceList + ValidationStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus + ValidateIaasVMRestoreOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateIaasVMRestoreOperationRequest + JobResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResourceList + FabricName = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName + Type = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type AzureWorkloadRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadRestoreRequest + ProtectionIntentResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntentResource + JobStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobStatus AzureWorkloadSAPHanaRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSAPHanaRestoreRequest AzureWorkloadSAPHanaPointInTimeRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSAPHanaPointInTimeRestoreRequest - AzureWorkloadSQLAutoProtectionIntent = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLAutoProtectionIntent - AzureWorkloadSQLRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLRestoreRequest AzureWorkloadSQLPointInTimeRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLPointInTimeRestoreRequest - DpmJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob + AzureWorkloadSQLRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLRestoreRequest + JobOperationType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType + ProtectedItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResourceList + HealthState = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState + HttpStatusCode = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode DPMProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItem - ExportJobsOperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo GenericProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectedItem GenericProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectionPolicy + MabServerType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType IaasVMRestoreRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::IaasVMRestoreRequest - JobResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResource - JobResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResourceList LogSchedulePolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::LogSchedulePolicy LongTermRetentionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::LongTermRetentionPolicy LongTermSchedulePolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::LongTermSchedulePolicy MabFileFolderProtectedItem = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItem - MabJob = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJob MabProtectionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabProtectionPolicy - OperationResultInfo = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfo - OperationResultInfoBaseResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBaseResource ProtectedItemResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResource - ProtectedItemResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResourceList - ProtectionIntentResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntentResource ProtectionPolicyResource = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResource - ProtectionPolicyResourceList = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResourceList SimpleRetentionPolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SimpleRetentionPolicy SimpleSchedulePolicy = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SimpleSchedulePolicy - ValidateRestoreOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateRestoreOperationRequest - ValidateIaasVMRestoreOperationRequest = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateIaasVMRestoreOperationRequest + ErrorDetail = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail ProtectionState = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionState HealthStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthStatus RecoveryType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RecoveryType CopyOptions = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CopyOptions RestoreRequestType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequestType - JobSupportedAction = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobSupportedAction ProtectedItemState = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemState - SupportStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SupportStatus LastBackupStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::LastBackupStatus ProtectedItemHealthStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemHealthStatus + SQLDataDirectoryType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryType + WorkloadType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadType OverwriteOptions = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OverwriteOptions + BackupManagementType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementType WorkloadItemType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadItemType - SQLDataDirectoryType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryType - UsagesUnit = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::UsagesUnit - DataSourceType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType ProtectionStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionStatus - FabricName = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName - Type = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type - RetentionDurationType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDurationType - BackupManagementType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementType - JobStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobStatus - JobOperationType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType - DayOfWeek = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek - RetentionScheduleFormat = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionScheduleFormat - WeekOfMonth = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeekOfMonth - MonthOfYear = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthOfYear - MabServerType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType - WorkloadType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadType - HttpStatusCode = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode - ValidationStatus = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus - CreateMode = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode - HealthState = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState - ScheduleRunType = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType end class RecoveryServicesBackupManagementClass - attr_reader :operations, :backup_resource_vault_configs, :backup_engines, :protection_container_refresh_operation_results, :protectable_containers, :protection_containers, :backup_workload_items, :protection_container_operation_results, :protected_items, :backups, :protected_item_operation_results, :protected_item_operation_statuses, :recovery_points, :item_level_recovery_connections, :restores, :job_cancellations, :job_operation_results, :backup_operation_results, :backup_operation_statuses, :protection_policies, :protection_policy_operation_results, :protection_policy_operation_statuses, :backup_protectable_items, :backup_protection_containers, :security_pins, :backup_resource_storage_configs, :protection_intent_operations, :backup_status, :feature_support, :backup_jobs, :job_details, :export_jobs_operation_results, :jobs, :backup_policies, :backup_protected_items, :backup_usage_summaries, :operation, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :protection_policies, :protection_policy_operation_results, :protection_policy_operation_statuses, :backup_protectable_items, :backup_protection_containers, :security_pins, :backup_resource_storage_configs, :backup_resource_vault_configs, :backup_engines, :protection_container_refresh_operation_results, :protectable_containers, :protection_containers, :backup_workload_items, :protection_container_operation_results, :protected_items, :backups, :protected_item_operation_results, :protected_item_operation_statuses, :recovery_points, :item_level_recovery_connections, :restores, :job_cancellations, :job_operation_results, :backup_operation_results, :backup_operation_statuses, :operation, :protection_intent_operations, :backup_status, :feature_support, :backup_jobs, :job_details, :export_jobs_operation_results, :backup_policies, :backup_protected_items, :jobs, :backup_usage_summaries, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -342,6 +342,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) + @protection_policies = @client_1.protection_policies + @protection_policy_operation_results = @client_1.protection_policy_operation_results + @protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses + @backup_protectable_items = @client_1.backup_protectable_items + @backup_protection_containers = @client_1.backup_protection_containers + @security_pins = @client_1.security_pins + @backup_resource_storage_configs = @client_1.backup_resource_storage_configs @backup_resource_vault_configs = @client_1.backup_resource_vault_configs @backup_engines = @client_1.backup_engines @protection_container_refresh_operation_results = @client_1.protection_container_refresh_operation_results @@ -360,30 +367,23 @@ def initialize(configurable, base_url=nil, options=nil) @job_operation_results = @client_1.job_operation_results @backup_operation_results = @client_1.backup_operation_results @backup_operation_statuses = @client_1.backup_operation_statuses - @protection_policies = @client_1.protection_policies - @protection_policy_operation_results = @client_1.protection_policy_operation_results - @protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses - @backup_protectable_items = @client_1.backup_protectable_items - @backup_protection_containers = @client_1.backup_protection_containers - @security_pins = @client_1.security_pins - @backup_resource_storage_configs = @client_1.backup_resource_storage_configs @client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @client_2.subscription_id = configurable.subscription_id end add_telemetry(@client_2) + @operation = @client_2.operation @protection_intent_operations = @client_2.protection_intent_operations @backup_status = @client_2.backup_status @feature_support = @client_2.feature_support @backup_jobs = @client_2.backup_jobs @job_details = @client_2.job_details @export_jobs_operation_results = @client_2.export_jobs_operation_results - @jobs = @client_2.jobs @backup_policies = @client_2.backup_policies @backup_protected_items = @client_2.backup_protected_items + @jobs = @client_2.jobs @backup_usage_summaries = @client_2.backup_usage_summaries - @operation = @client_2.operation @model_classes = ModelClasses.new end @@ -406,24 +406,42 @@ def method_missing(method, *args) end class ModelClasses - def client_discovery_for_properties - Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties + def client_discovery_value_for_single_api + Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryValueForSingleApi end def client_discovery_display Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryDisplay end - def client_discovery_value_for_single_api - Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryValueForSingleApi - end def client_discovery_for_service_specification Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForServiceSpecification end + def client_discovery_for_properties + Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties + end def client_discovery_response Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryResponse end def client_discovery_for_log_specification Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForLogSpecification end + def restore_point_query_type + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestorePointQueryType + end + def recovery_point_tier_type + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierType + end + def recovery_point_tier_status + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierStatus + end + def backup_item_type + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupItemType + end + def operation_status_values + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusValues + end + def operation_status + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatus + end def azure_workload_container_extended_info Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainerExtendedInfo end @@ -550,9 +568,6 @@ def azure_workload_sqlrecovery_point_extended_info def recovery_point_tier_information Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierInformation end - def operation_status - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatus - end def get_protected_item_query_object Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GetProtectedItemQueryObject end @@ -589,165 +604,165 @@ def azure_sql_container def azure_storage_container Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureStorageContainer end - def azure_storage_protectable_container - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureStorageProtectableContainer - end def azure_vmapp_container_protectable_container Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVMAppContainerProtectableContainer end - def azure_vm_workload_item - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadItem + def azure_storage_protectable_container + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureStorageProtectableContainer end def azure_vm_workload_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadProtectableItem end + def azure_vm_workload_item + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadItem + end def azure_vm_workload_saphana_database_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectableItem end - def azure_vm_workload_saphana_database_workload_item - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaDatabaseWorkloadItem - end def azure_vm_workload_saphana_system_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaSystemProtectableItem end - def azure_vm_workload_saphana_system_workload_item - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaSystemWorkloadItem + def azure_vm_workload_saphana_database_workload_item + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaDatabaseWorkloadItem end def azure_vm_workload_sqlavailability_group_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLAvailabilityGroupProtectableItem end + def azure_vm_workload_saphana_system_workload_item + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSAPHanaSystemWorkloadItem + end def azure_vm_workload_sqldatabase_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLDatabaseProtectableItem end - def azure_vm_workload_sqldatabase_workload_item - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLDatabaseWorkloadItem - end def azure_vm_workload_sqlinstance_protectable_item Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLInstanceProtectableItem end - def azure_vm_workload_sqlinstance_workload_item - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLInstanceWorkloadItem + def azure_vm_workload_sqldatabase_workload_item + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLDatabaseWorkloadItem end def azure_workload_backup_request Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadBackupRequest end - def azure_workload_container - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainer + def azure_vm_workload_sqlinstance_workload_item + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVmWorkloadSQLInstanceWorkloadItem end def azure_sqlagworkload_container_protection_container Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureSQLAGWorkloadContainerProtectionContainer end - def azure_vmapp_container_protection_container - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVMAppContainerProtectionContainer + def azure_workload_container + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadContainer end def azure_workload_recovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadRecoveryPoint end + def azure_vmapp_container_protection_container + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureVMAppContainerProtectionContainer + end def azure_workload_saphana_recovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSAPHanaRecoveryPoint end def azure_workload_saphana_point_in_time_recovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSAPHanaPointInTimeRecoveryPoint end - def azure_workload_sqlrecovery_point - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLRecoveryPoint - end def azure_workload_sqlpoint_in_time_recovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLPointInTimeRecoveryPoint end + def azure_workload_sqlrecovery_point + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureWorkloadSQLRecoveryPoint + end def backup_engine_base_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupEngineBaseResource end - def backup_engine_base_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupEngineBaseResourceList - end def backup_request_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupRequestResource end - def backup_resource_config_resource - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceConfigResource + def backup_engine_base_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupEngineBaseResourceList end def backup_resource_vault_config_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceVaultConfigResource end - def dpm_backup_engine - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmBackupEngine + def backup_resource_config_resource + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupResourceConfigResource end def dpm_container Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmContainer end + def dpm_backup_engine + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::DpmBackupEngine + end def generic_container Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericContainer end - def generic_recovery_point - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericRecoveryPoint - end def iaas_vmbackup_request Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMBackupRequest end - def iaa_svmcontainer - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMContainer + def generic_recovery_point + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericRecoveryPoint end def iaas_vmilrregistration_request Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMILRRegistrationRequest end - def iaa_svmprotectable_item - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMProtectableItem + def iaa_svmcontainer + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMContainer end def iaas_vmrecovery_point Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaasVMRecoveryPoint end + def iaa_svmprotectable_item + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::IaaSVMProtectableItem + end def ilrrequest_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ILRRequestResource end def mab_container Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::MabContainer end - def operation_status_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobExtendedInfo - end def operation_status_jobs_extended_info Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobsExtendedInfo end - def operation_status_provision_ilrextended_info - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusProvisionILRExtendedInfo + def operation_status_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusJobExtendedInfo end def protectable_container_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResource end + def operation_status_provision_ilrextended_info + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusProvisionILRExtendedInfo + end def protectable_container_resource_list Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectableContainerResourceList end - def protection_container_resource - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource - end def protection_container_resource_list Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResourceList end + def protection_container_resource + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ProtectionContainerResource + end def recovery_point_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResource end - def recovery_point_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResourceList - end def restore_request_resource Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestoreRequestResource end - def workload_item_resource - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResource + def recovery_point_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointResourceList end def workload_item_resource_list Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResourceList end - def workload_protectable_item_resource - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResource - end def workload_protectable_item_resource_list Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResourceList end def azure_file_share_type Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureFileShareType end + def workload_protectable_item_resource + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadProtectableItemResource + end + def workload_item_resource + Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::WorkloadItemResource + end def inquiry_status Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::InquiryStatus end @@ -769,54 +784,72 @@ def enhanced_security_state def container_type Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::ContainerType end - def restore_point_query_type - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RestorePointQueryType + def retention_duration_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDurationType end - def recovery_point_tier_type - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierType + def day_of_week + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek end - def recovery_point_tier_status - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::RecoveryPointTierStatus + def retention_schedule_format + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionScheduleFormat end - def backup_item_type - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::BackupItemType + def retention_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy end - def operation_status_values - Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::OperationStatusValues + def week_of_month + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeekOfMonth end - def daily_retention_format - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat + def month_of_year + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthOfYear end - def retention_duration - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration + def schedule_run_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType + end + def data_source_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType + end + def name_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::NameInfo + end + def usages_unit + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::UsagesUnit + end + def job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job + end + def sub_protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy end def azure_fileshare_protected_item_extended_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItemExtendedInfo end - def daily_retention_schedule - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule - end def schedule_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SchedulePolicy end + def create_mode + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode + end + def restore_file_specs + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreFileSpecs + end + def resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ResourceList + end def dpm_error_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmErrorInfo end + def resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource + end def operation_worker_response Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationWorkerResponse end def operation_result_info_base Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBase end - def target_afsrestore_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetAFSRestoreInfo - end def mab_job_extended_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobExtendedInfo end - def validate_operations_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationsResponse - end def azure_workload_error_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadErrorInfo end @@ -829,8 +862,8 @@ def azure_workload_job_task_details def azure_iaa_svmjob_task_details Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobTaskDetails end - def azure_workload_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo + def daily_retention_format + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionFormat end def validate_operation_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationRequest @@ -838,149 +871,137 @@ def validate_operation_request def mab_job_task_details Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJobTaskDetails end - def restore_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest - end - def mab_file_folder_protected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo - end - def resource - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Resource + def azure_workload_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJobExtendedInfo end def mab_error_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabErrorInfo end - def azure_sql_protected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo + def validate_operations_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationsResponse end - def target_restore_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetRestoreInfo + def daily_retention_schedule + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DailyRetentionSchedule end def protection_intent Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntent end - def yearly_retention_schedule - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::YearlyRetentionSchedule - end - def azure_storage_job_task_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails - end - def monthly_retention_schedule - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthlyRetentionSchedule + def retention_duration + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDuration end def protected_item_query_object Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemQueryObject end - def weekly_retention_format - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionFormat - end def azure_vmresource_feature_support_response Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportResponse end - def sqldata_directory_mapping - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping + def azure_storage_job_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobTaskDetails + end + def protection_policy + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicy end def azure_vm_workload_protected_item_extended_info Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItemExtendedInfo end - def weekly_retention_schedule - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionSchedule - end - def settings - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings - end - def name_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::NameInfo - end def pre_validate_enable_backup_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupRequest end def backup_management_usage Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsage end - def backup_management_usage_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList - end - def azure_iaa_svmhealth_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMHealthDetails - end - def backup_status_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest + def restore_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequest end - def azure_iaa_svmprotected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo + def dpmprotected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo end def backup_status_response Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusResponse end - def protection_policy_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + def job_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobQueryObject end - def bmsbackup_summaries_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject + def dpm_job_task_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobTaskDetails end - def azure_storage_error_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageErrorInfo + def dpm_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobExtendedInfo end - def day - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Day + def validate_operation_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationResponse end - def protected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem + def azure_storage_job_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobExtendedInfo end - def error_detail - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail + def azure_backup_goal_feature_support_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureBackupGoalFeatureSupportRequest end - def pre_validate_enable_backup_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse + def azure_iaa_svmjob + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob end - def encryption_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::EncryptionDetails + def azure_recovery_service_vault_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent end - def restore_file_specs - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreFileSpecs + def azure_resource_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent end - def feature_support_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FeatureSupportRequest + def azure_storage_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob end - def azure_iaa_svmjob_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo + def azure_vmresource_feature_support_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest end - def retention_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionPolicy + def azure_workload_auto_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent end - def protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicy + def azure_iaa_svmhealth_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMHealthDetails end - def job_query_object - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobQueryObject + def yearly_retention_schedule + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::YearlyRetentionSchedule end - def sub_protection_policy - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy + def day + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Day end - def dpm_job_task_details - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobTaskDetails + def monthly_retention_schedule + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthlyRetentionSchedule end - def resource_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ResourceList + def weekly_retention_format + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionFormat end - def dpm_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJobExtendedInfo + def encryption_details + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::EncryptionDetails end - def validate_operation_response - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateOperationResponse + def azure_workload_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob end - def job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Job + def backup_management_usage_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementUsageList end - def azure_storage_job_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJobExtendedInfo + def weekly_retention_schedule + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeeklyRetentionSchedule end - def dpmprotected_item_extended_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItemExtendedInfo + def sqldata_directory_mapping + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryMapping end - def azure_backup_goal_feature_support_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureBackupGoalFeatureSupportRequest + def protection_policy_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyQueryObject + end + def mab_file_folder_protected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItemExtendedInfo + end + def azure_storage_error_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageErrorInfo + end + def pre_validate_enable_backup_response + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::PreValidateEnableBackupResponse + end + def feature_support_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FeatureSupportRequest + end + def azure_iaa_svmjob_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJobExtendedInfo end def azure_fileshare_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileshareProtectedItem @@ -988,29 +1009,41 @@ def azure_fileshare_protected_item def azure_file_share_protection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareProtectionPolicy end + def azure_sql_protected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItemExtendedInfo + end def azure_file_share_restore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureFileShareRestoreRequest end + def target_restore_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetRestoreInfo + end + def mab_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJob + end + def azure_iaa_svmprotected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem + end def azure_iaa_sclassic_compute_vmprotected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSClassicComputeVMProtectedItem end - def azure_iaa_scompute_vmprotected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSComputeVMProtectedItem + def export_jobs_operation_result_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo end - def azure_iaa_svmjob - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMJob + def backup_status_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupStatusRequest end - def azure_iaa_svmprotected_item - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItem + def azure_iaa_scompute_vmprotected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSComputeVMProtectedItem end def azure_iaa_svmprotection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectionPolicy end - def azure_recovery_service_vault_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureRecoveryServiceVaultProtectionIntent + def bmsbackup_summaries_query_object + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BMSBackupSummariesQueryObject end - def azure_resource_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureResourceProtectionIntent + def settings + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Settings end def azure_sql_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectedItem @@ -1018,11 +1051,17 @@ def azure_sql_protected_item def azure_sql_protection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureSqlProtectionPolicy end - def azure_storage_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureStorageJob + def job_resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResource end - def azure_vmresource_feature_support_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVMResourceFeatureSupportRequest + def protected_item + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem + end + def target_afsrestore_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::TargetAFSRestoreInfo + end + def operation_result_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfo end def azure_vm_workload_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectedItem @@ -1030,60 +1069,99 @@ def azure_vm_workload_protected_item def azure_vm_workload_protection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadProtectionPolicy end + def dpm_job + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob + end def azure_vm_workload_saphana_database_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSAPHanaDatabaseProtectedItem end + def validate_restore_operation_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateRestoreOperationRequest + end + def azure_iaa_svmprotected_item_extended_info + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureIaaSVMProtectedItemExtendedInfo + end + def job_supported_action + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobSupportedAction + end + def support_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SupportStatus + end + def operation_result_info_base_resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBaseResource + end def azure_vm_workload_sqldatabase_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureVmWorkloadSQLDatabaseProtectedItem end - def azure_workload_auto_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadAutoProtectionIntent + def azure_workload_sqlauto_protection_intent + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLAutoProtectionIntent end - def azure_workload_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadJob + def protection_policy_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResourceList + end + def validation_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus + end + def validate_iaas_vmrestore_operation_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateIaasVMRestoreOperationRequest + end + def job_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResourceList + end + def fabric_name + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName + end + def type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type end def azure_workload_restore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadRestoreRequest end + def protection_intent_resource + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntentResource + end + def job_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobStatus + end def azure_workload_saphana_restore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSAPHanaRestoreRequest end def azure_workload_saphana_point_in_time_restore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSAPHanaPointInTimeRestoreRequest end - def azure_workload_sqlauto_protection_intent - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLAutoProtectionIntent + def azure_workload_sqlpoint_in_time_restore_request + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLPointInTimeRestoreRequest end def azure_workload_sqlrestore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLRestoreRequest end - def azure_workload_sqlpoint_in_time_restore_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadSQLPointInTimeRestoreRequest + def job_operation_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType end - def dpm_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DpmJob + def protected_item_resource_list + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResourceList + end + def health_state + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState + end + def http_status_code + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode end def dpmprotected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DPMProtectedItem end - def export_jobs_operation_result_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ExportJobsOperationResultInfo - end def generic_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectedItem end def generic_protection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::GenericProtectionPolicy end + def mab_server_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType + end def iaas_vmrestore_request Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::IaasVMRestoreRequest end - def job_resource - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResource - end - def job_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobResourceList - end def log_schedule_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::LogSchedulePolicy end @@ -1096,44 +1174,23 @@ def long_term_schedule_policy def mab_file_folder_protected_item Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabFileFolderProtectedItem end - def mab_job - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabJob - end def mab_protection_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabProtectionPolicy end - def operation_result_info - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfo - end - def operation_result_info_base_resource - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OperationResultInfoBaseResource - end def protected_item_resource Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResource end - def protected_item_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemResourceList - end - def protection_intent_resource - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionIntentResource - end def protection_policy_resource Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResource end - def protection_policy_resource_list - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionPolicyResourceList - end def simple_retention_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SimpleRetentionPolicy end def simple_schedule_policy Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SimpleSchedulePolicy end - def validate_restore_operation_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateRestoreOperationRequest - end - def validate_iaas_vmrestore_operation_request - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidateIaasVMRestoreOperationRequest + def error_detail + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ErrorDetail end def protection_state Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionState @@ -1150,89 +1207,32 @@ def copy_options def restore_request_type Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RestoreRequestType end - def job_supported_action - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobSupportedAction - end def protected_item_state Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemState end - def support_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SupportStatus - end def last_backup_status Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::LastBackupStatus end def protected_item_health_status Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItemHealthStatus end - def overwrite_options - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OverwriteOptions - end - def workload_item_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadItemType - end def sqldata_directory_type Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SQLDataDirectoryType end - def usages_unit - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::UsagesUnit - end - def data_source_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DataSourceType - end - def protection_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionStatus - end - def fabric_name - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::FabricName - end - def type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::Type - end - def retention_duration_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionDurationType - end - def backup_management_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementType - end - def job_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobStatus - end - def job_operation_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::JobOperationType - end - def day_of_week - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::DayOfWeek - end - def retention_schedule_format - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::RetentionScheduleFormat - end - def week_of_month - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WeekOfMonth - end - def month_of_year - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MonthOfYear - end - def mab_server_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::MabServerType - end def workload_type Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadType end - def http_status_code - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HttpStatusCode - end - def validation_status - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ValidationStatus + def overwrite_options + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::OverwriteOptions end - def create_mode - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::CreateMode + def backup_management_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::BackupManagementType end - def health_state - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::HealthState + def workload_item_type + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::WorkloadItemType end - def schedule_run_type - Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ScheduleRunType + def protection_status + Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectionStatus end end end diff --git a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb index aaaeec1a2a..5481b6406c 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb @@ -7,29 +7,55 @@ module Azure::Profiles::Latest module RecoveryServicesSiteRecovery module Mgmt - Operations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Operations + ReplicationVaultHealth = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationVaultHealth + ReplicationvCenters = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationvCenters + ReplicationJobs = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationJobs ReplicationAlertSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationAlertSettings ReplicationEvents = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationEvents ReplicationFabrics = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationFabrics ReplicationLogicalNetworks = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationLogicalNetworks + Operations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Operations ReplicationNetworks = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationNetworks ReplicationNetworkMappings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationNetworkMappings ReplicationProtectionContainers = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationProtectionContainers ReplicationProtectableItems = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationProtectableItems ReplicationProtectedItems = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationProtectedItems - RecoveryPoints = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::RecoveryPoints TargetComputeSizes = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::TargetComputeSizes - ReplicationProtectionContainerMappings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationProtectionContainerMappings + RecoveryPoints = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::RecoveryPoints ReplicationRecoveryServicesProviders = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationRecoveryServicesProviders - ReplicationStorageClassifications = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationStorageClassifications + ReplicationProtectionContainerMappings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationProtectionContainerMappings ReplicationStorageClassificationMappings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationStorageClassificationMappings - ReplicationvCenters = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationvCenters - ReplicationJobs = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationJobs + ReplicationStorageClassifications = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationStorageClassifications ReplicationPolicies = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationPolicies ReplicationRecoveryPlans = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationRecoveryPlans - ReplicationVaultHealth = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::ReplicationVaultHealth module Models + A2ARpRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARpRecoveryPointType + MultiVmSyncPointOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncPointOption + RecoveryPlanActionLocation = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionLocation + DataSyncStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DataSyncStatus + AlternateLocationRecoveryOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AlternateLocationRecoveryOption + HyperVReplicaAzureRpRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureRpRecoveryPointType + InMageV2RpRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageV2RpRecoveryPointType + RpInMageRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RpInMageRecoveryPointType + SourceSiteOperations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SourceSiteOperations + LicenseType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LicenseType + JobCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobCollection + Event = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event + PolicyCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyCollection + Display = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Display + Severity = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Severity + ProtectionContainer = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer + RecoveryPoint = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPoint + Resource = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Resource + IdentityProviderType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::IdentityProviderType + EncryptionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EncryptionDetails + Subnet = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Subnet + Policy = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy + Network = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network + Job = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Job + JobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobDetails + RoleAssignment = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment OSDiskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::OSDiskDetails FabricCreationInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricCreationInputProperties FabricCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricCreationInput @@ -88,7 +114,6 @@ module Models CreateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateNetworkMappingInput ResourceHealthSummary = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ResourceHealthSummary CreatePolicyInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreatePolicyInputProperties - Resource = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Resource ReplicationProviderSpecificContainerCreationInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProviderSpecificContainerCreationInput ReplicationProviderSpecificUpdateContainerMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProviderSpecificUpdateContainerMappingInput CreateProtectionContainerInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateProtectionContainerInput @@ -157,13 +182,11 @@ module Models CreateNetworkMappingInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateNetworkMappingInputProperties ProviderSpecificRecoveryPointDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProviderSpecificRecoveryPointDetails CreatePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreatePolicyInput - JobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobDetails ReplicationProviderSpecificContainerMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProviderSpecificContainerMappingInput JobProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobProperties RecoveryPlanActionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionDetails ProtectionContainerMappingCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMappingCollection CreateRecoveryPlanInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateRecoveryPlanInput - JobCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobCollection DisableProtectionInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionInputProperties JobQueryParameter = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobQueryParameter DiskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DiskDetails @@ -180,14 +203,12 @@ module Models ProtectionContainerProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerProperties UpdateVCenterRequest = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateVCenterRequest RetentionVolume = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RetentionVolume - RoleAssignment = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment VersionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VersionDetails UpdateProtectionContainerMappingInputProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateProtectionContainerMappingInputProperties MasterTargetServer = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MasterTargetServer ApplyRecoveryPointInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ApplyRecoveryPointInput MobilityServiceUpdate = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MobilityServiceUpdate UpdateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateNetworkMappingInput - Subnet = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Subnet ConfigurationSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConfigurationSettings NetworkProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkProperties PolicyProviderSpecificInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyProviderSpecificInput @@ -196,7 +217,6 @@ module Models NetworkCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkCollection DataStore = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DataStore NetworkMappingFabricSpecificSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkMappingFabricSpecificSettings - Display = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Display NetworkMappingProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkMappingProperties HealthError = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HealthError ProtectedItemsQueryParameter = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectedItemsQueryParameter @@ -218,8 +238,6 @@ module Models PolicyProperties = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyProperties TestFailoverInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::TestFailoverInput ProtectableItemQueryParameter = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectableItemQueryParameter - EncryptionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EncryptionDetails - PolicyCollection = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyCollection ServiceError = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ServiceError ProcessServer = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProcessServer A2AVmDiskInputDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2AVmDiskInputDetails @@ -250,7 +268,6 @@ module Models AzureToAzureNetworkMappingSettings = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureNetworkMappingSettings AzureToAzureUpdateNetworkMappingInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AzureToAzureUpdateNetworkMappingInput ConsistencyCheckTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConsistencyCheckTaskDetails - Event = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event ExportJobDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ExportJobDetails Fabric = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Fabric FabricReplicationGroupTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::FabricReplicationGroupTaskDetails @@ -297,16 +314,12 @@ module Models InMagePolicyInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMagePolicyInput InMageReplicationDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageReplicationDetails InMageReprotectInput = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageReprotectInput - Job = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Job JobStatusEventDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobStatusEventDetails JobTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobTaskDetails LogicalNetwork = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LogicalNetwork ManualActionTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ManualActionTaskDetails - Network = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network NetworkMapping = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkMapping - Policy = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy ProtectableItem = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectableItem - ProtectionContainer = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer ProtectionContainerMapping = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMapping RcmAzureMigrationPolicyDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RcmAzureMigrationPolicyDetails RecoveryPlan = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlan @@ -320,7 +333,6 @@ module Models RecoveryPlanManualActionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanManualActionDetails RecoveryPlanScriptActionDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanScriptActionDetails RecoveryPlanShutdownGroupTaskDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanShutdownGroupTaskDetails - RecoveryPoint = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPoint RecoveryServicesProvider = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryServicesProvider ReplicationGroupDetails = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationGroupDetails ReplicationProtectedItem = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProtectedItem @@ -358,26 +370,14 @@ module Models PossibleOperationsDirections = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PossibleOperationsDirections DisableProtectionReason = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionReason HealthErrorCategory = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HealthErrorCategory - Severity = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Severity PresenceStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PresenceStatus - IdentityProviderType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::IdentityProviderType AgentVersionStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentVersionStatus RecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPointType MultiVmSyncStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncStatus - A2ARpRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARpRecoveryPointType - MultiVmSyncPointOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncPointOption - RecoveryPlanActionLocation = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionLocation - DataSyncStatus = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DataSyncStatus - AlternateLocationRecoveryOption = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AlternateLocationRecoveryOption - HyperVReplicaAzureRpRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureRpRecoveryPointType - InMageV2RpRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageV2RpRecoveryPointType - RpInMageRecoveryPointType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RpInMageRecoveryPointType - SourceSiteOperations = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SourceSiteOperations - LicenseType = Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LicenseType end class RecoveryServicesSiteRecoveryManagementClass - attr_reader :operations, :replication_alert_settings, :replication_events, :replication_fabrics, :replication_logical_networks, :replication_networks, :replication_network_mappings, :replication_protection_containers, :replication_protectable_items, :replication_protected_items, :recovery_points, :target_compute_sizes, :replication_protection_container_mappings, :replication_recovery_services_providers, :replication_storage_classifications, :replication_storage_classification_mappings, :replicationv_centers, :replication_jobs, :replication_policies, :replication_recovery_plans, :replication_vault_health, :configurable, :base_url, :options, :model_classes + attr_reader :replication_vault_health, :replicationv_centers, :replication_jobs, :replication_alert_settings, :replication_events, :replication_fabrics, :replication_logical_networks, :operations, :replication_networks, :replication_network_mappings, :replication_protection_containers, :replication_protectable_items, :replication_protected_items, :target_compute_sizes, :recovery_points, :replication_recovery_services_providers, :replication_protection_container_mappings, :replication_storage_classification_mappings, :replication_storage_classifications, :replication_policies, :replication_recovery_plans, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -387,27 +387,27 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations + @replication_vault_health = @client_0.replication_vault_health + @replicationv_centers = @client_0.replicationv_centers + @replication_jobs = @client_0.replication_jobs @replication_alert_settings = @client_0.replication_alert_settings @replication_events = @client_0.replication_events @replication_fabrics = @client_0.replication_fabrics @replication_logical_networks = @client_0.replication_logical_networks + @operations = @client_0.operations @replication_networks = @client_0.replication_networks @replication_network_mappings = @client_0.replication_network_mappings @replication_protection_containers = @client_0.replication_protection_containers @replication_protectable_items = @client_0.replication_protectable_items @replication_protected_items = @client_0.replication_protected_items - @recovery_points = @client_0.recovery_points @target_compute_sizes = @client_0.target_compute_sizes - @replication_protection_container_mappings = @client_0.replication_protection_container_mappings + @recovery_points = @client_0.recovery_points @replication_recovery_services_providers = @client_0.replication_recovery_services_providers - @replication_storage_classifications = @client_0.replication_storage_classifications + @replication_protection_container_mappings = @client_0.replication_protection_container_mappings @replication_storage_classification_mappings = @client_0.replication_storage_classification_mappings - @replicationv_centers = @client_0.replicationv_centers - @replication_jobs = @client_0.replication_jobs + @replication_storage_classifications = @client_0.replication_storage_classifications @replication_policies = @client_0.replication_policies @replication_recovery_plans = @client_0.replication_recovery_plans - @replication_vault_health = @client_0.replication_vault_health @model_classes = ModelClasses.new end @@ -426,6 +426,84 @@ def method_missing(method, *args) end class ModelClasses + def a2_arp_recovery_point_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARpRecoveryPointType + end + def multi_vm_sync_point_option + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncPointOption + end + def recovery_plan_action_location + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionLocation + end + def data_sync_status + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DataSyncStatus + end + def alternate_location_recovery_option + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AlternateLocationRecoveryOption + end + def hyper_vreplica_azure_rp_recovery_point_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureRpRecoveryPointType + end + def in_mage_v2_rp_recovery_point_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageV2RpRecoveryPointType + end + def rp_in_mage_recovery_point_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RpInMageRecoveryPointType + end + def source_site_operations + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SourceSiteOperations + end + def license_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LicenseType + end + def job_collection + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobCollection + end + def event + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event + end + def policy_collection + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyCollection + end + def display + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Display + end + def severity + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Severity + end + def protection_container + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer + end + def recovery_point + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPoint + end + def resource + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Resource + end + def identity_provider_type + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::IdentityProviderType + end + def encryption_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EncryptionDetails + end + def subnet + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Subnet + end + def policy + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy + end + def network + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network + end + def job + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Job + end + def job_details + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobDetails + end + def role_assignment + Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment + end def osdisk_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::OSDiskDetails end @@ -600,9 +678,6 @@ def resource_health_summary def create_policy_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreatePolicyInputProperties end - def resource - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Resource - end def replication_provider_specific_container_creation_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProviderSpecificContainerCreationInput end @@ -807,9 +882,6 @@ def provider_specific_recovery_point_details def create_policy_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreatePolicyInput end - def job_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobDetails - end def replication_provider_specific_container_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ReplicationProviderSpecificContainerMappingInput end @@ -825,9 +897,6 @@ def protection_container_mapping_collection def create_recovery_plan_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::CreateRecoveryPlanInput end - def job_collection - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobCollection - end def disable_protection_input_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DisableProtectionInputProperties end @@ -876,9 +945,6 @@ def update_vcenter_request def retention_volume Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RetentionVolume end - def role_assignment - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RoleAssignment - end def version_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::VersionDetails end @@ -897,9 +963,6 @@ def mobility_service_update def update_network_mapping_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::UpdateNetworkMappingInput end - def subnet - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Subnet - end def configuration_settings Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConfigurationSettings end @@ -924,9 +987,6 @@ def data_store def network_mapping_fabric_specific_settings Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkMappingFabricSpecificSettings end - def display - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Display - end def network_mapping_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkMappingProperties end @@ -990,12 +1050,6 @@ def test_failover_input def protectable_item_query_parameter Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectableItemQueryParameter end - def encryption_details - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::EncryptionDetails - end - def policy_collection - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PolicyCollection - end def service_error Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ServiceError end @@ -1086,9 +1140,6 @@ def azure_to_azure_update_network_mapping_input def consistency_check_task_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ConsistencyCheckTaskDetails end - def event - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Event - end def export_job_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ExportJobDetails end @@ -1227,9 +1278,6 @@ def in_mage_replication_details def in_mage_reprotect_input Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageReprotectInput end - def job - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Job - end def job_status_event_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::JobStatusEventDetails end @@ -1242,21 +1290,12 @@ def logical_network def manual_action_task_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ManualActionTaskDetails end - def network - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Network - end def network_mapping Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::NetworkMapping end - def policy - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Policy - end def protectable_item Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectableItem end - def protection_container - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainer - end def protection_container_mapping Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::ProtectionContainerMapping end @@ -1296,9 +1335,6 @@ def recovery_plan_script_action_details def recovery_plan_shutdown_group_task_details Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanShutdownGroupTaskDetails end - def recovery_point - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPoint - end def recovery_services_provider Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryServicesProvider end @@ -1410,15 +1446,9 @@ def disable_protection_reason def health_error_category Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HealthErrorCategory end - def severity - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::Severity - end def presence_status Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::PresenceStatus end - def identity_provider_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::IdentityProviderType - end def agent_version_status Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AgentVersionStatus end @@ -1428,36 +1458,6 @@ def recovery_point_type def multi_vm_sync_status Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncStatus end - def a2_arp_recovery_point_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::A2ARpRecoveryPointType - end - def multi_vm_sync_point_option - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::MultiVmSyncPointOption - end - def recovery_plan_action_location - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RecoveryPlanActionLocation - end - def data_sync_status - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::DataSyncStatus - end - def alternate_location_recovery_option - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::AlternateLocationRecoveryOption - end - def hyper_vreplica_azure_rp_recovery_point_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::HyperVReplicaAzureRpRecoveryPointType - end - def in_mage_v2_rp_recovery_point_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::InMageV2RpRecoveryPointType - end - def rp_in_mage_recovery_point_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::RpInMageRecoveryPointType - end - def source_site_operations - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::SourceSiteOperations - end - def license_type - Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10::Models::LicenseType - end end end end diff --git a/azure_sdk/lib/latest/modules/redis_profile_module.rb b/azure_sdk/lib/latest/modules/redis_profile_module.rb index c311a6a00b..e18e02cbfd 100644 --- a/azure_sdk/lib/latest/modules/redis_profile_module.rb +++ b/azure_sdk/lib/latest/modules/redis_profile_module.rb @@ -7,55 +7,55 @@ module Azure::Profiles::Latest module Redis module Mgmt + PatchSchedules = Azure::Redis::Mgmt::V2018_03_01::PatchSchedules Operations = Azure::Redis::Mgmt::V2018_03_01::Operations - Redis = Azure::Redis::Mgmt::V2018_03_01::Redis FirewallRules = Azure::Redis::Mgmt::V2018_03_01::FirewallRules - PatchSchedules = Azure::Redis::Mgmt::V2018_03_01::PatchSchedules LinkedServer = Azure::Redis::Mgmt::V2018_03_01::LinkedServer + Redis = Azure::Redis::Mgmt::V2018_03_01::Redis module Models - RedisRebootParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters + DayOfWeek = Azure::Redis::Mgmt::V2018_03_01::Models::DayOfWeek + Operation = Azure::Redis::Mgmt::V2018_03_01::Models::Operation Sku = Azure::Redis::Mgmt::V2018_03_01::Models::Sku + TrackedResource = Azure::Redis::Mgmt::V2018_03_01::Models::TrackedResource + ProxyResource = Azure::Redis::Mgmt::V2018_03_01::Models::ProxyResource + RedisRebootParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters ExportRDBParameters = Azure::Redis::Mgmt::V2018_03_01::Models::ExportRDBParameters RedisListResult = Azure::Redis::Mgmt::V2018_03_01::Models::RedisListResult RedisAccessKeys = Azure::Redis::Mgmt::V2018_03_01::Models::RedisAccessKeys RedisRegenerateKeyParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisRegenerateKeyParameters Resource = Azure::Redis::Mgmt::V2018_03_01::Models::Resource - NotificationListResponse = Azure::Redis::Mgmt::V2018_03_01::Models::NotificationListResponse - OperationListResult = Azure::Redis::Mgmt::V2018_03_01::Models::OperationListResult RedisUpdateParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisUpdateParameters ImportRDBParameters = Azure::Redis::Mgmt::V2018_03_01::Models::ImportRDBParameters - RedisFirewallRuleCreateParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleCreateParameters - ScheduleEntry = Azure::Redis::Mgmt::V2018_03_01::Models::ScheduleEntry CheckNameAvailabilityParameters = Azure::Redis::Mgmt::V2018_03_01::Models::CheckNameAvailabilityParameters - Operation = Azure::Redis::Mgmt::V2018_03_01::Models::Operation + ScheduleEntry = Azure::Redis::Mgmt::V2018_03_01::Models::ScheduleEntry RedisPatchScheduleListResult = Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchScheduleListResult UpgradeNotification = Azure::Redis::Mgmt::V2018_03_01::Models::UpgradeNotification RedisForceRebootResponse = Azure::Redis::Mgmt::V2018_03_01::Models::RedisForceRebootResponse RedisLinkedServer = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServer - OperationDisplay = Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay RedisFirewallRuleListResult = Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleListResult RedisLinkedServerWithPropertiesList = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerWithPropertiesList RedisCreateParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisCreateParameters RedisLinkedServerCreateParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerCreateParameters - ProxyResource = Azure::Redis::Mgmt::V2018_03_01::Models::ProxyResource - TrackedResource = Azure::Redis::Mgmt::V2018_03_01::Models::TrackedResource + RedisFirewallRuleCreateParameters = Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleCreateParameters RedisFirewallRule = Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRule - RedisResource = Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource + NotificationListResponse = Azure::Redis::Mgmt::V2018_03_01::Models::NotificationListResponse RedisPatchSchedule = Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchSchedule - RedisLinkedServerWithProperties = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerWithProperties - SkuName = Azure::Redis::Mgmt::V2018_03_01::Models::SkuName + RedisResource = Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource SkuFamily = Azure::Redis::Mgmt::V2018_03_01::Models::SkuFamily - TlsVersion = Azure::Redis::Mgmt::V2018_03_01::Models::TlsVersion - ProvisioningState = Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState + RedisLinkedServerWithProperties = Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerWithProperties RedisKeyType = Azure::Redis::Mgmt::V2018_03_01::Models::RedisKeyType - RebootType = Azure::Redis::Mgmt::V2018_03_01::Models::RebootType - DayOfWeek = Azure::Redis::Mgmt::V2018_03_01::Models::DayOfWeek + TlsVersion = Azure::Redis::Mgmt::V2018_03_01::Models::TlsVersion ReplicationRole = Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole + SkuName = Azure::Redis::Mgmt::V2018_03_01::Models::SkuName + RebootType = Azure::Redis::Mgmt::V2018_03_01::Models::RebootType + ProvisioningState = Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState + OperationDisplay = Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay + OperationListResult = Azure::Redis::Mgmt::V2018_03_01::Models::OperationListResult end class RedisManagementClass - attr_reader :operations, :redis, :firewall_rules, :patch_schedules, :linked_server, :configurable, :base_url, :options, :model_classes + attr_reader :patch_schedules, :operations, :firewall_rules, :linked_server, :redis, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -65,11 +65,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @patch_schedules = @client_0.patch_schedules @operations = @client_0.operations - @redis = @client_0.redis @firewall_rules = @client_0.firewall_rules - @patch_schedules = @client_0.patch_schedules @linked_server = @client_0.linked_server + @redis = @client_0.redis @model_classes = ModelClasses.new end @@ -88,12 +88,24 @@ def method_missing(method, *args) end class ModelClasses - def redis_reboot_parameters - Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters + def day_of_week + Azure::Redis::Mgmt::V2018_03_01::Models::DayOfWeek + end + def operation + Azure::Redis::Mgmt::V2018_03_01::Models::Operation end def sku Azure::Redis::Mgmt::V2018_03_01::Models::Sku end + def tracked_resource + Azure::Redis::Mgmt::V2018_03_01::Models::TrackedResource + end + def proxy_resource + Azure::Redis::Mgmt::V2018_03_01::Models::ProxyResource + end + def redis_reboot_parameters + Azure::Redis::Mgmt::V2018_03_01::Models::RedisRebootParameters + end def export_rdbparameters Azure::Redis::Mgmt::V2018_03_01::Models::ExportRDBParameters end @@ -109,29 +121,17 @@ def redis_regenerate_key_parameters def resource Azure::Redis::Mgmt::V2018_03_01::Models::Resource end - def notification_list_response - Azure::Redis::Mgmt::V2018_03_01::Models::NotificationListResponse - end - def operation_list_result - Azure::Redis::Mgmt::V2018_03_01::Models::OperationListResult - end def redis_update_parameters Azure::Redis::Mgmt::V2018_03_01::Models::RedisUpdateParameters end def import_rdbparameters Azure::Redis::Mgmt::V2018_03_01::Models::ImportRDBParameters end - def redis_firewall_rule_create_parameters - Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleCreateParameters - end - def schedule_entry - Azure::Redis::Mgmt::V2018_03_01::Models::ScheduleEntry - end def check_name_availability_parameters Azure::Redis::Mgmt::V2018_03_01::Models::CheckNameAvailabilityParameters end - def operation - Azure::Redis::Mgmt::V2018_03_01::Models::Operation + def schedule_entry + Azure::Redis::Mgmt::V2018_03_01::Models::ScheduleEntry end def redis_patch_schedule_list_result Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchScheduleListResult @@ -145,9 +145,6 @@ def redis_force_reboot_response def redis_linked_server Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServer end - def operation_display - Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay - end def redis_firewall_rule_list_result Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleListResult end @@ -160,47 +157,50 @@ def redis_create_parameters def redis_linked_server_create_parameters Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerCreateParameters end - def proxy_resource - Azure::Redis::Mgmt::V2018_03_01::Models::ProxyResource - end - def tracked_resource - Azure::Redis::Mgmt::V2018_03_01::Models::TrackedResource + def redis_firewall_rule_create_parameters + Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRuleCreateParameters end def redis_firewall_rule Azure::Redis::Mgmt::V2018_03_01::Models::RedisFirewallRule end - def redis_resource - Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource + def notification_list_response + Azure::Redis::Mgmt::V2018_03_01::Models::NotificationListResponse end def redis_patch_schedule Azure::Redis::Mgmt::V2018_03_01::Models::RedisPatchSchedule end - def redis_linked_server_with_properties - Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerWithProperties - end - def sku_name - Azure::Redis::Mgmt::V2018_03_01::Models::SkuName + def redis_resource + Azure::Redis::Mgmt::V2018_03_01::Models::RedisResource end def sku_family Azure::Redis::Mgmt::V2018_03_01::Models::SkuFamily end + def redis_linked_server_with_properties + Azure::Redis::Mgmt::V2018_03_01::Models::RedisLinkedServerWithProperties + end + def redis_key_type + Azure::Redis::Mgmt::V2018_03_01::Models::RedisKeyType + end def tls_version Azure::Redis::Mgmt::V2018_03_01::Models::TlsVersion end - def provisioning_state - Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState + def replication_role + Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole end - def redis_key_type - Azure::Redis::Mgmt::V2018_03_01::Models::RedisKeyType + def sku_name + Azure::Redis::Mgmt::V2018_03_01::Models::SkuName end def reboot_type Azure::Redis::Mgmt::V2018_03_01::Models::RebootType end - def day_of_week - Azure::Redis::Mgmt::V2018_03_01::Models::DayOfWeek + def provisioning_state + Azure::Redis::Mgmt::V2018_03_01::Models::ProvisioningState end - def replication_role - Azure::Redis::Mgmt::V2018_03_01::Models::ReplicationRole + def operation_display + Azure::Redis::Mgmt::V2018_03_01::Models::OperationDisplay + end + def operation_list_result + Azure::Redis::Mgmt::V2018_03_01::Models::OperationListResult end end end diff --git a/azure_sdk/lib/latest/modules/relay_profile_module.rb b/azure_sdk/lib/latest/modules/relay_profile_module.rb index 56d9ce6dd2..c0434eeab1 100644 --- a/azure_sdk/lib/latest/modules/relay_profile_module.rb +++ b/azure_sdk/lib/latest/modules/relay_profile_module.rb @@ -7,43 +7,43 @@ module Azure::Profiles::Latest module Relay module Mgmt - Operations = Azure::Relay::Mgmt::V2017_04_01::Operations + WCFRelays = Azure::Relay::Mgmt::V2017_04_01::WCFRelays Namespaces = Azure::Relay::Mgmt::V2017_04_01::Namespaces + Operations = Azure::Relay::Mgmt::V2017_04_01::Operations HybridConnections = Azure::Relay::Mgmt::V2017_04_01::HybridConnections - WCFRelays = Azure::Relay::Mgmt::V2017_04_01::WCFRelays module Models + Operation = Azure::Relay::Mgmt::V2017_04_01::Models::Operation + Sku = Azure::Relay::Mgmt::V2017_04_01::Models::Sku + TrackedResource = Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource + AccessRights = Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights RelayNamespaceListResult = Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult - OperationDisplay = Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay - Resource = Azure::Relay::Mgmt::V2017_04_01::Models::Resource CheckNameAvailability = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability HybridConnectionListResult = Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnectionListResult - CheckNameAvailabilityResult = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult WcfRelaysListResult = Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelaysListResult - ErrorResponse = Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse - OperationListResult = Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult AuthorizationRuleListResult = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult - Sku = Azure::Relay::Mgmt::V2017_04_01::Models::Sku AccessKeys = Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys - Operation = Azure::Relay::Mgmt::V2017_04_01::Models::Operation - RegenerateAccessKeyParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters - TrackedResource = Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource + CheckNameAvailabilityResult = Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult ResourceNamespacePatch = Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch - HybridConnection = Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection - WcfRelay = Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay + Resource = Azure::Relay::Mgmt::V2017_04_01::Models::Resource + RegenerateAccessKeyParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters RelayNamespace = Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace RelayUpdateParameters = Azure::Relay::Mgmt::V2017_04_01::Models::RelayUpdateParameters AuthorizationRule = Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRule Relaytype = Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype + HybridConnection = Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection + WcfRelay = Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay SkuTier = Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier ProvisioningStateEnum = Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum - AccessRights = Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights - KeyType = Azure::Relay::Mgmt::V2017_04_01::Models::KeyType UnavailableReason = Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason + KeyType = Azure::Relay::Mgmt::V2017_04_01::Models::KeyType + OperationDisplay = Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay + OperationListResult = Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult + ErrorResponse = Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse end class RelayManagementClass - attr_reader :operations, :namespaces, :hybrid_connections, :wcfrelays, :configurable, :base_url, :options, :model_classes + attr_reader :wcfrelays, :namespaces, :operations, :hybrid_connections, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -53,10 +53,10 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations + @wcfrelays = @client_0.wcfrelays @namespaces = @client_0.namespaces + @operations = @client_0.operations @hybrid_connections = @client_0.hybrid_connections - @wcfrelays = @client_0.wcfrelays @model_classes = ModelClasses.new end @@ -75,14 +75,20 @@ def method_missing(method, *args) end class ModelClasses - def relay_namespace_list_result - Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult + def operation + Azure::Relay::Mgmt::V2017_04_01::Models::Operation end - def operation_display - Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay + def sku + Azure::Relay::Mgmt::V2017_04_01::Models::Sku end - def resource - Azure::Relay::Mgmt::V2017_04_01::Models::Resource + def tracked_resource + Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource + end + def access_rights + Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights + end + def relay_namespace_list_result + Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult end def check_name_availability Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailability @@ -90,44 +96,26 @@ def check_name_availability def hybrid_connection_list_result Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnectionListResult end - def check_name_availability_result - Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult - end def wcf_relays_list_result Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelaysListResult end - def error_response - Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse - end - def operation_list_result - Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult - end def authorization_rule_list_result Azure::Relay::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult end - def sku - Azure::Relay::Mgmt::V2017_04_01::Models::Sku - end def access_keys Azure::Relay::Mgmt::V2017_04_01::Models::AccessKeys end - def operation - Azure::Relay::Mgmt::V2017_04_01::Models::Operation - end - def regenerate_access_key_parameters - Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters - end - def tracked_resource - Azure::Relay::Mgmt::V2017_04_01::Models::TrackedResource + def check_name_availability_result + Azure::Relay::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult end def resource_namespace_patch Azure::Relay::Mgmt::V2017_04_01::Models::ResourceNamespacePatch end - def hybrid_connection - Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection + def resource + Azure::Relay::Mgmt::V2017_04_01::Models::Resource end - def wcf_relay - Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay + def regenerate_access_key_parameters + Azure::Relay::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters end def relay_namespace Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespace @@ -141,20 +129,32 @@ def authorization_rule def relaytype Azure::Relay::Mgmt::V2017_04_01::Models::Relaytype end + def hybrid_connection + Azure::Relay::Mgmt::V2017_04_01::Models::HybridConnection + end + def wcf_relay + Azure::Relay::Mgmt::V2017_04_01::Models::WcfRelay + end def sku_tier Azure::Relay::Mgmt::V2017_04_01::Models::SkuTier end def provisioning_state_enum Azure::Relay::Mgmt::V2017_04_01::Models::ProvisioningStateEnum end - def access_rights - Azure::Relay::Mgmt::V2017_04_01::Models::AccessRights + def unavailable_reason + Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason end def key_type Azure::Relay::Mgmt::V2017_04_01::Models::KeyType end - def unavailable_reason - Azure::Relay::Mgmt::V2017_04_01::Models::UnavailableReason + def operation_display + Azure::Relay::Mgmt::V2017_04_01::Models::OperationDisplay + end + def operation_list_result + Azure::Relay::Mgmt::V2017_04_01::Models::OperationListResult + end + def error_response + Azure::Relay::Mgmt::V2017_04_01::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/resources_profile_module.rb b/azure_sdk/lib/latest/modules/resources_profile_module.rb index d33845cb43..0538eccd16 100644 --- a/azure_sdk/lib/latest/modules/resources_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resources_profile_module.rb @@ -7,69 +7,69 @@ module Azure::Profiles::Latest module Resources module Mgmt - Deployments = Azure::Resources::Mgmt::V2018_05_01::Deployments - Providers = Azure::Resources::Mgmt::V2018_05_01::Providers - Resources = Azure::Resources::Mgmt::V2018_05_01::Resources ResourceGroups = Azure::Resources::Mgmt::V2018_05_01::ResourceGroups Tags = Azure::Resources::Mgmt::V2018_05_01::Tags DeploymentOperations = Azure::Resources::Mgmt::V2018_05_01::DeploymentOperations + Resources = Azure::Resources::Mgmt::V2018_05_01::Resources + Deployments = Azure::Resources::Mgmt::V2018_05_01::Deployments + Providers = Azure::Resources::Mgmt::V2018_05_01::Providers module Models - Sku = Azure::Resources::Mgmt::V2018_05_01::Models::Sku - DeploymentExtendedFilter = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter + Dependency = Azure::Resources::Mgmt::V2018_05_01::Models::Dependency + Plan = Azure::Resources::Mgmt::V2018_05_01::Models::Plan IdentityUserAssignedIdentitiesValue = Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue - ResourceGroupFilter = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter + ResourceGroupPatchable = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable + OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended + OnErrorDeployment = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment + OnErrorDeploymentType = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType + DeploymentExtendedFilter = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter Identity = Azure::Resources::Mgmt::V2018_05_01::Models::Identity - ParametersLink = Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink + ResourceGroupFilter = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter + TemplateLink = Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink DebugSetting = Azure::Resources::Mgmt::V2018_05_01::Models::DebugSetting - DeploymentProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties ResourceListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult - DeploymentExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult + Sku = Azure::Resources::Mgmt::V2018_05_01::Models::Sku ResourceGroupProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties - AliasPathType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType + ResourceManagementErrorWithDetails = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails ResourceGroup = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup - ProviderResourceType = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType - ResourceGroupPatchable = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable - BasicDependency = Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency + AliasType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasType ResourceGroupListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupListResult - OnErrorDeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended + Deployment = Azure::Resources::Mgmt::V2018_05_01::Models::Deployment ResourcesMoveInfo = Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo - DeploymentValidateResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult ExportTemplateRequest = Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest - DeploymentListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult + DeploymentValidateResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult TagCount = Azure::Resources::Mgmt::V2018_05_01::Models::TagCount - Plan = Azure::Resources::Mgmt::V2018_05_01::Models::Plan + DeploymentListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult TagValue = Azure::Resources::Mgmt::V2018_05_01::Models::TagValue - TemplateLink = Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink TagDetails = Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails - Deployment = Azure::Resources::Mgmt::V2018_05_01::Models::Deployment + ParametersLink = Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink TagsListResult = Azure::Resources::Mgmt::V2018_05_01::Models::TagsListResult - AliasType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasType + DeploymentExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult TargetResource = Azure::Resources::Mgmt::V2018_05_01::Models::TargetResource - Dependency = Azure::Resources::Mgmt::V2018_05_01::Models::Dependency + ProviderResourceType = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType HttpMessage = Azure::Resources::Mgmt::V2018_05_01::Models::HttpMessage - DeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended + DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended DeploymentOperationProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationProperties - GenericResourceFilter = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter + ProviderListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult DeploymentOperation = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperation - ResourceManagementErrorWithDetails = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails + DeploymentProperties = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties DeploymentOperationsListResult = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationsListResult - DeploymentPropertiesExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended + BasicDependency = Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceProviderOperationDisplayProperties - OnErrorDeployment = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment - Resource = Azure::Resources::Mgmt::V2018_05_01::Models::Resource - ProviderListResult = Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult - SubResource = Azure::Resources::Mgmt::V2018_05_01::Models::SubResource - Provider = Azure::Resources::Mgmt::V2018_05_01::Models::Provider + GenericResourceFilter = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter + DeploymentExtended = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended + AliasPathType = Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType ResourceGroupExportResult = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupExportResult GenericResource = Azure::Resources::Mgmt::V2018_05_01::Models::GenericResource DeploymentMode = Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentMode - OnErrorDeploymentType = Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType + Provider = Azure::Resources::Mgmt::V2018_05_01::Models::Provider + Resource = Azure::Resources::Mgmt::V2018_05_01::Models::Resource ResourceIdentityType = Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType + SubResource = Azure::Resources::Mgmt::V2018_05_01::Models::SubResource end class ResourcesManagementClass - attr_reader :deployments, :providers, :resources, :resource_groups, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes + attr_reader :resource_groups, :tags, :deployment_operations, :resources, :deployments, :providers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -79,12 +79,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @deployments = @client_0.deployments - @providers = @client_0.providers - @resources = @client_0.resources @resource_groups = @client_0.resource_groups @tags = @client_0.tags @deployment_operations = @client_0.deployment_operations + @resources = @client_0.resources + @deployments = @client_0.deployments + @providers = @client_0.providers @model_classes = ModelClasses.new end @@ -103,143 +103,137 @@ def method_missing(method, *args) end class ModelClasses - def sku - Azure::Resources::Mgmt::V2018_05_01::Models::Sku + def dependency + Azure::Resources::Mgmt::V2018_05_01::Models::Dependency end - def deployment_extended_filter - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter + def plan + Azure::Resources::Mgmt::V2018_05_01::Models::Plan end def identity_user_assigned_identities_value Azure::Resources::Mgmt::V2018_05_01::Models::IdentityUserAssignedIdentitiesValue end - def resource_group_filter - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter + def resource_group_patchable + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable + end + def on_error_deployment_extended + Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended + end + def on_error_deployment + Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment + end + def on_error_deployment_type + Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType + end + def deployment_extended_filter + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtendedFilter end def identity Azure::Resources::Mgmt::V2018_05_01::Models::Identity end - def parameters_link - Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink + def resource_group_filter + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupFilter + end + def template_link + Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink end def debug_setting Azure::Resources::Mgmt::V2018_05_01::Models::DebugSetting end - def deployment_properties - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties - end def resource_list_result Azure::Resources::Mgmt::V2018_05_01::Models::ResourceListResult end - def deployment_export_result - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult + def sku + Azure::Resources::Mgmt::V2018_05_01::Models::Sku end def resource_group_properties Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupProperties end - def alias_path_type - Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType + def resource_management_error_with_details + Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails end def resource_group Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroup end - def provider_resource_type - Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType - end - def resource_group_patchable - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupPatchable - end - def basic_dependency - Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency + def alias_type + Azure::Resources::Mgmt::V2018_05_01::Models::AliasType end def resource_group_list_result Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupListResult end - def on_error_deployment_extended - Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentExtended + def deployment + Azure::Resources::Mgmt::V2018_05_01::Models::Deployment end def resources_move_info Azure::Resources::Mgmt::V2018_05_01::Models::ResourcesMoveInfo end - def deployment_validate_result - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult - end def export_template_request Azure::Resources::Mgmt::V2018_05_01::Models::ExportTemplateRequest end - def deployment_list_result - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult + def deployment_validate_result + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentValidateResult end def tag_count Azure::Resources::Mgmt::V2018_05_01::Models::TagCount end - def plan - Azure::Resources::Mgmt::V2018_05_01::Models::Plan + def deployment_list_result + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentListResult end def tag_value Azure::Resources::Mgmt::V2018_05_01::Models::TagValue end - def template_link - Azure::Resources::Mgmt::V2018_05_01::Models::TemplateLink - end def tag_details Azure::Resources::Mgmt::V2018_05_01::Models::TagDetails end - def deployment - Azure::Resources::Mgmt::V2018_05_01::Models::Deployment + def parameters_link + Azure::Resources::Mgmt::V2018_05_01::Models::ParametersLink end def tags_list_result Azure::Resources::Mgmt::V2018_05_01::Models::TagsListResult end - def alias_type - Azure::Resources::Mgmt::V2018_05_01::Models::AliasType + def deployment_export_result + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExportResult end def target_resource Azure::Resources::Mgmt::V2018_05_01::Models::TargetResource end - def dependency - Azure::Resources::Mgmt::V2018_05_01::Models::Dependency + def provider_resource_type + Azure::Resources::Mgmt::V2018_05_01::Models::ProviderResourceType end def http_message Azure::Resources::Mgmt::V2018_05_01::Models::HttpMessage end - def deployment_extended - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended + def deployment_properties_extended + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended end def deployment_operation_properties Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationProperties end - def generic_resource_filter - Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter + def provider_list_result + Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult end def deployment_operation Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperation end - def resource_management_error_with_details - Azure::Resources::Mgmt::V2018_05_01::Models::ResourceManagementErrorWithDetails + def deployment_properties + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentProperties end def deployment_operations_list_result Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentOperationsListResult end - def deployment_properties_extended - Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentPropertiesExtended + def basic_dependency + Azure::Resources::Mgmt::V2018_05_01::Models::BasicDependency end def resource_provider_operation_display_properties Azure::Resources::Mgmt::V2018_05_01::Models::ResourceProviderOperationDisplayProperties end - def on_error_deployment - Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeployment - end - def resource - Azure::Resources::Mgmt::V2018_05_01::Models::Resource - end - def provider_list_result - Azure::Resources::Mgmt::V2018_05_01::Models::ProviderListResult + def generic_resource_filter + Azure::Resources::Mgmt::V2018_05_01::Models::GenericResourceFilter end - def sub_resource - Azure::Resources::Mgmt::V2018_05_01::Models::SubResource + def deployment_extended + Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentExtended end - def provider - Azure::Resources::Mgmt::V2018_05_01::Models::Provider + def alias_path_type + Azure::Resources::Mgmt::V2018_05_01::Models::AliasPathType end def resource_group_export_result Azure::Resources::Mgmt::V2018_05_01::Models::ResourceGroupExportResult @@ -250,12 +244,18 @@ def generic_resource def deployment_mode Azure::Resources::Mgmt::V2018_05_01::Models::DeploymentMode end - def on_error_deployment_type - Azure::Resources::Mgmt::V2018_05_01::Models::OnErrorDeploymentType + def provider + Azure::Resources::Mgmt::V2018_05_01::Models::Provider + end + def resource + Azure::Resources::Mgmt::V2018_05_01::Models::Resource end def resource_identity_type Azure::Resources::Mgmt::V2018_05_01::Models::ResourceIdentityType end + def sub_resource + Azure::Resources::Mgmt::V2018_05_01::Models::SubResource + end end end end diff --git a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb index d6d4b7482c..c7972da36d 100644 --- a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb @@ -7,18 +7,21 @@ module Azure::Profiles::Latest module ResourcesManagement module Mgmt + Operations = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Operations ManagementGroups = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::ManagementGroups ManagementGroupSubscriptions = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::ManagementGroupSubscriptions - Operations = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Operations Entities = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Entities module Models ManagementGroup = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroup ErrorDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorDetails + Operation = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation + Type = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type + CheckNameAvailabilityResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult + Reason = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason OperationResults = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults OperationDisplayProperties = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationDisplayProperties EntityParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityParentGroupInfo - OperationListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult EntityInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityInfo TenantBackfillStatusResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::TenantBackfillStatusResult EntityListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityListResult @@ -26,24 +29,21 @@ module Models EntityHierarchyItem = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityHierarchyItem ManagementGroupDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupDetails PatchManagementGroupRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::PatchManagementGroupRequest - ErrorResponse = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse CreateParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateParentGroupInfo - CheckNameAvailabilityResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult CreateManagementGroupDetails = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupDetails ParentGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ParentGroupInfo CreateManagementGroupChildInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupChildInfo - Operation = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation CreateManagementGroupRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupRequest ManagementGroupChildInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupChildInfo + OperationListResult = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult CheckNameAvailabilityRequest = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityRequest ManagementGroupInfo = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo - Reason = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason Status = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Status - Type = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type + ErrorResponse = Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse end class ResourcesManagementManagementClass - attr_reader :management_groups, :management_group_subscriptions, :operations, :entities, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :management_groups, :management_group_subscriptions, :entities, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -53,9 +53,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @operations = @client_0.operations @management_groups = @client_0.management_groups @management_group_subscriptions = @client_0.management_group_subscriptions - @operations = @client_0.operations @entities = @client_0.entities @model_classes = ModelClasses.new @@ -81,6 +81,18 @@ def management_group def error_details Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorDetails end + def operation + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation + end + def type + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type + end + def check_name_availability_result + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult + end + def reason + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason + end def operation_results Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationResults end @@ -90,9 +102,6 @@ def operation_display_properties def entity_parent_group_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityParentGroupInfo end - def operation_list_result - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult - end def entity_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::EntityInfo end @@ -114,15 +123,9 @@ def management_group_details def patch_management_group_request Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::PatchManagementGroupRequest end - def error_response - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse - end def create_parent_group_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateParentGroupInfo end - def check_name_availability_result - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult - end def create_management_group_details Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupDetails end @@ -132,29 +135,26 @@ def parent_group_info def create_management_group_child_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupChildInfo end - def operation - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Operation - end def create_management_group_request Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CreateManagementGroupRequest end def management_group_child_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupChildInfo end + def operation_list_result + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::OperationListResult + end def check_name_availability_request Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityRequest end def management_group_info Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ManagementGroupInfo end - def reason - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Reason - end def status Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Status end - def type - Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::Type + def error_response + Azure::ResourcesManagement::Mgmt::V2018_03_01_preview::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb index 50290bce4b..9d54bd8102 100644 --- a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb +++ b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb @@ -7,58 +7,58 @@ module Azure::Profiles::Latest module Scheduler module Mgmt - JobCollections = Azure::Scheduler::Mgmt::V2016_03_01::JobCollections Jobs = Azure::Scheduler::Mgmt::V2016_03_01::Jobs + JobCollections = Azure::Scheduler::Mgmt::V2016_03_01::JobCollections module Models + DayOfWeek = Azure::Scheduler::Mgmt::V2016_03_01::Models::DayOfWeek JobRecurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence - Sku = Azure::Scheduler::Mgmt::V2016_03_01::Models::Sku - JobStatus = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus JobCollectionQuota = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionQuota - JobProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties JobCollectionDefinition = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionDefinition JobDefinition = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobDefinition HttpAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::HttpAuthentication - JobListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult StorageQueueMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::StorageQueueMessage + JobListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult JobHistoryDefinitionProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryDefinitionProperties HttpRequest = Azure::Scheduler::Mgmt::V2016_03_01::Models::HttpRequest - RetryPolicy = Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy ServiceBusBrokeredMessageProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusBrokeredMessageProperties - JobAction = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobAction JobRecurrenceSchedule = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrenceSchedule JobHistoryDefinition = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryDefinition - JobCollectionProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionProperties + JobAction = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobAction JobHistoryListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryListResult JobErrorAction = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobErrorAction - JobHistoryFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryFilter + JobCollectionProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionProperties JobMaxRecurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobMaxRecurrence JobStateFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStateFilter + JobHistoryFilter = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryFilter JobRecurrenceScheduleMonthlyOccurrence = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrenceScheduleMonthlyOccurrence - ServiceBusMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusMessage JobCollectionListResult = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionListResult ServiceBusAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusAuthentication + ServiceBusMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusMessage ServiceBusQueueMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusQueueMessage - ServiceBusTopicMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTopicMessage ClientCertAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::ClientCertAuthentication - BasicAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication OAuthAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::OAuthAuthentication + ServiceBusTopicMessage = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTopicMessage SkuDefinition = Azure::Scheduler::Mgmt::V2016_03_01::Models::SkuDefinition JobCollectionState = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionState - RecurrenceFrequency = Azure::Scheduler::Mgmt::V2016_03_01::Models::RecurrenceFrequency JobActionType = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobActionType RetryType = Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryType - DayOfWeek = Azure::Scheduler::Mgmt::V2016_03_01::Models::DayOfWeek JobScheduleDay = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobScheduleDay - JobState = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobState JobHistoryActionName = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryActionName JobExecutionStatus = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobExecutionStatus ServiceBusAuthenticationType = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusAuthenticationType ServiceBusTransportType = Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTransportType + JobProperties = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties + Sku = Azure::Scheduler::Mgmt::V2016_03_01::Models::Sku + BasicAuthentication = Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication + JobStatus = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus + JobState = Azure::Scheduler::Mgmt::V2016_03_01::Models::JobState + RetryPolicy = Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy + RecurrenceFrequency = Azure::Scheduler::Mgmt::V2016_03_01::Models::RecurrenceFrequency end class SchedulerManagementClass - attr_reader :job_collections, :jobs, :configurable, :base_url, :options, :model_classes + attr_reader :jobs, :job_collections, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -68,8 +68,8 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @job_collections = @client_0.job_collections @jobs = @client_0.jobs + @job_collections = @client_0.job_collections @model_classes = ModelClasses.new end @@ -88,21 +88,15 @@ def method_missing(method, *args) end class ModelClasses + def day_of_week + Azure::Scheduler::Mgmt::V2016_03_01::Models::DayOfWeek + end def job_recurrence Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence end - def sku - Azure::Scheduler::Mgmt::V2016_03_01::Models::Sku - end - def job_status - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus - end def job_collection_quota Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionQuota end - def job_properties - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties - end def job_collection_definition Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionDefinition end @@ -112,35 +106,29 @@ def job_definition def http_authentication Azure::Scheduler::Mgmt::V2016_03_01::Models::HttpAuthentication end - def job_list_result - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult - end def storage_queue_message Azure::Scheduler::Mgmt::V2016_03_01::Models::StorageQueueMessage end + def job_list_result + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobListResult + end def job_history_definition_properties Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryDefinitionProperties end def http_request Azure::Scheduler::Mgmt::V2016_03_01::Models::HttpRequest end - def retry_policy - Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy - end def service_bus_brokered_message_properties Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusBrokeredMessageProperties end - def job_action - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobAction - end def job_recurrence_schedule Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrenceSchedule end def job_history_definition Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryDefinition end - def job_collection_properties - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionProperties + def job_action + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobAction end def job_history_list_result Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryListResult @@ -148,8 +136,8 @@ def job_history_list_result def job_error_action Azure::Scheduler::Mgmt::V2016_03_01::Models::JobErrorAction end - def job_history_filter - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryFilter + def job_collection_properties + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionProperties end def job_max_recurrence Azure::Scheduler::Mgmt::V2016_03_01::Models::JobMaxRecurrence @@ -157,57 +145,48 @@ def job_max_recurrence def job_state_filter Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStateFilter end + def job_history_filter + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryFilter + end def job_recurrence_schedule_monthly_occurrence Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrenceScheduleMonthlyOccurrence end - def service_bus_message - Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusMessage - end def job_collection_list_result Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionListResult end def service_bus_authentication Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusAuthentication end + def service_bus_message + Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusMessage + end def service_bus_queue_message Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusQueueMessage end - def service_bus_topic_message - Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTopicMessage - end def client_cert_authentication Azure::Scheduler::Mgmt::V2016_03_01::Models::ClientCertAuthentication end - def basic_authentication - Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication - end def oauth_authentication Azure::Scheduler::Mgmt::V2016_03_01::Models::OAuthAuthentication end + def service_bus_topic_message + Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTopicMessage + end def sku_definition Azure::Scheduler::Mgmt::V2016_03_01::Models::SkuDefinition end def job_collection_state Azure::Scheduler::Mgmt::V2016_03_01::Models::JobCollectionState end - def recurrence_frequency - Azure::Scheduler::Mgmt::V2016_03_01::Models::RecurrenceFrequency - end def job_action_type Azure::Scheduler::Mgmt::V2016_03_01::Models::JobActionType end def retry_type Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryType end - def day_of_week - Azure::Scheduler::Mgmt::V2016_03_01::Models::DayOfWeek - end def job_schedule_day Azure::Scheduler::Mgmt::V2016_03_01::Models::JobScheduleDay end - def job_state - Azure::Scheduler::Mgmt::V2016_03_01::Models::JobState - end def job_history_action_name Azure::Scheduler::Mgmt::V2016_03_01::Models::JobHistoryActionName end @@ -220,6 +199,27 @@ def service_bus_authentication_type def service_bus_transport_type Azure::Scheduler::Mgmt::V2016_03_01::Models::ServiceBusTransportType end + def job_properties + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobProperties + end + def sku + Azure::Scheduler::Mgmt::V2016_03_01::Models::Sku + end + def basic_authentication + Azure::Scheduler::Mgmt::V2016_03_01::Models::BasicAuthentication + end + def job_status + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobStatus + end + def job_state + Azure::Scheduler::Mgmt::V2016_03_01::Models::JobState + end + def retry_policy + Azure::Scheduler::Mgmt::V2016_03_01::Models::RetryPolicy + end + def recurrence_frequency + Azure::Scheduler::Mgmt::V2016_03_01::Models::RecurrenceFrequency + end end end end diff --git a/azure_sdk/lib/latest/modules/search_profile_module.rb b/azure_sdk/lib/latest/modules/search_profile_module.rb index 6f3597ad7d..3f85f8b193 100644 --- a/azure_sdk/lib/latest/modules/search_profile_module.rb +++ b/azure_sdk/lib/latest/modules/search_profile_module.rb @@ -8,33 +8,33 @@ module Azure::Profiles::Latest module Search module Mgmt Operations = Azure::Search::Mgmt::V2015_08_19::Operations - AdminKeys = Azure::Search::Mgmt::V2015_08_19::AdminKeys QueryKeys = Azure::Search::Mgmt::V2015_08_19::QueryKeys Services = Azure::Search::Mgmt::V2015_08_19::Services + AdminKeys = Azure::Search::Mgmt::V2015_08_19::AdminKeys module Models + CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput Identity = Azure::Search::Mgmt::V2015_08_19::Models::Identity CheckNameAvailabilityOutput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput - Resource = Azure::Search::Mgmt::V2015_08_19::Models::Resource QueryKey = Azure::Search::Mgmt::V2015_08_19::Models::QueryKey - Sku = Azure::Search::Mgmt::V2015_08_19::Models::Sku - CheckNameAvailabilityInput = Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput - OperationDisplay = Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay - Operation = Azure::Search::Mgmt::V2015_08_19::Models::Operation - AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult - OperationListResult = Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult SearchManagementRequestOptions = Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions SearchService = Azure::Search::Mgmt::V2015_08_19::Models::SearchService + Sku = Azure::Search::Mgmt::V2015_08_19::Models::Sku UnavailableNameReason = Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason - SkuName = Azure::Search::Mgmt::V2015_08_19::Models::SkuName HostingMode = Azure::Search::Mgmt::V2015_08_19::Models::HostingMode + AdminKeyResult = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult + Operation = Azure::Search::Mgmt::V2015_08_19::Models::Operation SearchServiceStatus = Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus - ProvisioningState = Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState AdminKeyKind = Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind + OperationDisplay = Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay + OperationListResult = Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult + Resource = Azure::Search::Mgmt::V2015_08_19::Models::Resource + SkuName = Azure::Search::Mgmt::V2015_08_19::Models::SkuName + ProvisioningState = Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState end class SearchManagementClass - attr_reader :operations, :admin_keys, :query_keys, :services, :configurable, :base_url, :options, :model_classes + attr_reader :operations, :query_keys, :services, :admin_keys, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -45,9 +45,9 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @operations = @client_0.operations - @admin_keys = @client_0.admin_keys @query_keys = @client_0.query_keys @services = @client_0.services + @admin_keys = @client_0.admin_keys @model_classes = ModelClasses.new end @@ -66,60 +66,60 @@ def method_missing(method, *args) end class ModelClasses + def check_name_availability_input + Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput + end def identity Azure::Search::Mgmt::V2015_08_19::Models::Identity end def check_name_availability_output Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityOutput end - def resource - Azure::Search::Mgmt::V2015_08_19::Models::Resource - end def query_key Azure::Search::Mgmt::V2015_08_19::Models::QueryKey end + def search_management_request_options + Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions + end + def search_service + Azure::Search::Mgmt::V2015_08_19::Models::SearchService + end def sku Azure::Search::Mgmt::V2015_08_19::Models::Sku end - def check_name_availability_input - Azure::Search::Mgmt::V2015_08_19::Models::CheckNameAvailabilityInput + def unavailable_name_reason + Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason end - def operation_display - Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay + def hosting_mode + Azure::Search::Mgmt::V2015_08_19::Models::HostingMode + end + def admin_key_result + Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult end def operation Azure::Search::Mgmt::V2015_08_19::Models::Operation end - def admin_key_result - Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyResult + def search_service_status + Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus end - def operation_list_result - Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult + def admin_key_kind + Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind end - def search_management_request_options - Azure::Search::Mgmt::V2015_08_19::Models::SearchManagementRequestOptions + def operation_display + Azure::Search::Mgmt::V2015_08_19::Models::OperationDisplay end - def search_service - Azure::Search::Mgmt::V2015_08_19::Models::SearchService + def operation_list_result + Azure::Search::Mgmt::V2015_08_19::Models::OperationListResult end - def unavailable_name_reason - Azure::Search::Mgmt::V2015_08_19::Models::UnavailableNameReason + def resource + Azure::Search::Mgmt::V2015_08_19::Models::Resource end def sku_name Azure::Search::Mgmt::V2015_08_19::Models::SkuName end - def hosting_mode - Azure::Search::Mgmt::V2015_08_19::Models::HostingMode - end - def search_service_status - Azure::Search::Mgmt::V2015_08_19::Models::SearchServiceStatus - end def provisioning_state Azure::Search::Mgmt::V2015_08_19::Models::ProvisioningState end - def admin_key_kind - Azure::Search::Mgmt::V2015_08_19::Models::AdminKeyKind - end end end end diff --git a/azure_sdk/lib/latest/modules/security_profile_module.rb b/azure_sdk/lib/latest/modules/security_profile_module.rb index f978bcb402..743c619eeb 100644 --- a/azure_sdk/lib/latest/modules/security_profile_module.rb +++ b/azure_sdk/lib/latest/modules/security_profile_module.rb @@ -19,7 +19,6 @@ module Models ComplianceSegment = Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceSegment SecurityContactList = Azure::Security::Mgmt::V2017_08_01_preview::Models::SecurityContactList ComplianceList = Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceList - Resource = Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource WorkspaceSettingList = Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSettingList SecurityContact = Azure::Security::Mgmt::V2017_08_01_preview::Models::SecurityContact Pricing = Azure::Security::Mgmt::V2017_08_01_preview::Models::Pricing @@ -30,6 +29,7 @@ module Models AlertsToAdmins = Azure::Security::Mgmt::V2017_08_01_preview::Models::AlertsToAdmins PricingTier = Azure::Security::Mgmt::V2017_08_01_preview::Models::PricingTier AutoProvision = Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvision + Resource = Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource end class SecurityManagementClass @@ -81,9 +81,6 @@ def security_contact_list def compliance_list Azure::Security::Mgmt::V2017_08_01_preview::Models::ComplianceList end - def resource - Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource - end def workspace_setting_list Azure::Security::Mgmt::V2017_08_01_preview::Models::WorkspaceSettingList end @@ -114,6 +111,9 @@ def pricing_tier def auto_provision Azure::Security::Mgmt::V2017_08_01_preview::Models::AutoProvision end + def resource + Azure::Security::Mgmt::V2017_08_01_preview::Models::Resource + end end end end diff --git a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb index f879eb0bf0..3e0f656d45 100644 --- a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb @@ -7,20 +7,23 @@ module Azure::Profiles::Latest module ServiceBus module Mgmt - Operations = Azure::ServiceBus::Mgmt::V2017_04_01::Operations + Topics = Azure::ServiceBus::Mgmt::V2017_04_01::Topics Namespaces = Azure::ServiceBus::Mgmt::V2017_04_01::Namespaces + Regions = Azure::ServiceBus::Mgmt::V2017_04_01::Regions + Operations = Azure::ServiceBus::Mgmt::V2017_04_01::Operations DisasterRecoveryConfigs = Azure::ServiceBus::Mgmt::V2017_04_01::DisasterRecoveryConfigs MigrationConfigs = Azure::ServiceBus::Mgmt::V2017_04_01::MigrationConfigs Queues = Azure::ServiceBus::Mgmt::V2017_04_01::Queues - Topics = Azure::ServiceBus::Mgmt::V2017_04_01::Topics - Subscriptions = Azure::ServiceBus::Mgmt::V2017_04_01::Subscriptions Rules = Azure::ServiceBus::Mgmt::V2017_04_01::Rules - Regions = Azure::ServiceBus::Mgmt::V2017_04_01::Regions PremiumMessagingRegionsOperations = Azure::ServiceBus::Mgmt::V2017_04_01::PremiumMessagingRegionsOperations EventHubs = Azure::ServiceBus::Mgmt::V2017_04_01::EventHubs + Subscriptions = Azure::ServiceBus::Mgmt::V2017_04_01::Subscriptions module Models - OperationDisplay = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + CheckNameAvailability = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability + AccessKeys = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys + RegenerateAccessKeyParameters = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters + ResourceNamespacePatch = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch SBQueueListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueueListResult Destination = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Destination SBTopicListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopicListResult @@ -29,53 +32,50 @@ module Models ArmDisasterRecoveryListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult SBSubscriptionListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscriptionListResult SBAuthorizationRuleListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRuleListResult - CheckNameAvailability = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability - AccessKeys = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys - CheckNameAvailabilityResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult MessageCountDetails = Azure::ServiceBus::Mgmt::V2017_04_01::Models::MessageCountDetails PremiumMessagingRegionsProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties - Resource = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource - Operation = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation SBNamespaceListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult - OperationListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult AuthorizationRuleProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AuthorizationRuleProperties - ErrorResponse = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse CaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription - Action = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action EventHubListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult SqlFilter = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlFilter SBSku = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSku CorrelationFilter = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter - RegenerateAccessKeyParameters = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters RuleListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult - TrackedResource = Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource - ResourceNamespacePatch = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch SBNamespace = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace SBNamespaceUpdateParameters = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceUpdateParameters SBAuthorizationRule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRule SBQueue = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueue SBTopic = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBTopic SBSubscription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription + OperationDisplay = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay Rule = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule - SqlRuleAction = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction + OperationListResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult PremiumMessagingRegions = Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegions - Eventhub = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub + SqlRuleAction = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction ArmDisasterRecovery = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery + Eventhub = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub + FilterType = Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType MigrationConfigProperties = Azure::ServiceBus::Mgmt::V2017_04_01::Models::MigrationConfigProperties + ProvisioningStateDR = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR + ErrorResponse = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse + RoleDisasterRecovery = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery + EncodingCaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription + Operation = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation + UnavailableReason = Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason + EntityStatus = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus + TrackedResource = Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource + AccessRights = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights + CheckNameAvailabilityResult = Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult + Resource = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource SkuName = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName SkuTier = Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier - AccessRights = Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights + Action = Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action KeyType = Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType - EntityStatus = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus - UnavailableReason = Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason - FilterType = Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType - EncodingCaptureDescription = Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription - ProvisioningStateDR = Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR - RoleDisasterRecovery = Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery end class ServiceBusManagementClass - attr_reader :operations, :namespaces, :disaster_recovery_configs, :migration_configs, :queues, :topics, :subscriptions, :rules, :regions, :premium_messaging_regions_operations, :event_hubs, :configurable, :base_url, :options, :model_classes + attr_reader :topics, :namespaces, :regions, :operations, :disaster_recovery_configs, :migration_configs, :queues, :rules, :premium_messaging_regions_operations, :event_hubs, :subscriptions, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -85,17 +85,17 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations + @topics = @client_0.topics @namespaces = @client_0.namespaces + @regions = @client_0.regions + @operations = @client_0.operations @disaster_recovery_configs = @client_0.disaster_recovery_configs @migration_configs = @client_0.migration_configs @queues = @client_0.queues - @topics = @client_0.topics - @subscriptions = @client_0.subscriptions @rules = @client_0.rules - @regions = @client_0.regions @premium_messaging_regions_operations = @client_0.premium_messaging_regions_operations @event_hubs = @client_0.event_hubs + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -114,8 +114,17 @@ def method_missing(method, *args) end class ModelClasses - def operation_display - Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + def check_name_availability + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability + end + def access_keys + Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys + end + def regenerate_access_key_parameters + Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters + end + def resource_namespace_patch + Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch end def sbqueue_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBQueueListResult @@ -141,45 +150,21 @@ def sbsubscription_list_result def sbauthorization_rule_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBAuthorizationRuleListResult end - def check_name_availability - Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailability - end - def access_keys - Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessKeys - end - def check_name_availability_result - Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult - end def message_count_details Azure::ServiceBus::Mgmt::V2017_04_01::Models::MessageCountDetails end def premium_messaging_regions_properties Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegionsProperties end - def resource - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource - end - def operation - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation - end def sbnamespace_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespaceListResult end - def operation_list_result - Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult - end def authorization_rule_properties Azure::ServiceBus::Mgmt::V2017_04_01::Models::AuthorizationRuleProperties end - def error_response - Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse - end def capture_description Azure::ServiceBus::Mgmt::V2017_04_01::Models::CaptureDescription end - def action - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action - end def event_hub_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::EventHubListResult end @@ -192,18 +177,9 @@ def sbsku def correlation_filter Azure::ServiceBus::Mgmt::V2017_04_01::Models::CorrelationFilter end - def regenerate_access_key_parameters - Azure::ServiceBus::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters - end def rule_list_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::RuleListResult end - def tracked_resource - Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource - end - def resource_namespace_patch - Azure::ServiceBus::Mgmt::V2017_04_01::Models::ResourceNamespacePatch - end def sbnamespace Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBNamespace end @@ -222,53 +198,77 @@ def sbtopic def sbsubscription Azure::ServiceBus::Mgmt::V2017_04_01::Models::SBSubscription end + def operation_display + Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationDisplay + end def rule Azure::ServiceBus::Mgmt::V2017_04_01::Models::Rule end - def sql_rule_action - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction + def operation_list_result + Azure::ServiceBus::Mgmt::V2017_04_01::Models::OperationListResult end def premium_messaging_regions Azure::ServiceBus::Mgmt::V2017_04_01::Models::PremiumMessagingRegions end - def eventhub - Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub + def sql_rule_action + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SqlRuleAction end def arm_disaster_recovery Azure::ServiceBus::Mgmt::V2017_04_01::Models::ArmDisasterRecovery end + def eventhub + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Eventhub + end + def filter_type + Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType + end def migration_config_properties Azure::ServiceBus::Mgmt::V2017_04_01::Models::MigrationConfigProperties end - def sku_name - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName + def provisioning_state_dr + Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR end - def sku_tier - Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier + def error_response + Azure::ServiceBus::Mgmt::V2017_04_01::Models::ErrorResponse end - def access_rights - Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights + def role_disaster_recovery + Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery end - def key_type - Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType + def encoding_capture_description + Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription end - def entity_status - Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus + def operation + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Operation end def unavailable_reason Azure::ServiceBus::Mgmt::V2017_04_01::Models::UnavailableReason end - def filter_type - Azure::ServiceBus::Mgmt::V2017_04_01::Models::FilterType + def entity_status + Azure::ServiceBus::Mgmt::V2017_04_01::Models::EntityStatus end - def encoding_capture_description - Azure::ServiceBus::Mgmt::V2017_04_01::Models::EncodingCaptureDescription + def tracked_resource + Azure::ServiceBus::Mgmt::V2017_04_01::Models::TrackedResource end - def provisioning_state_dr - Azure::ServiceBus::Mgmt::V2017_04_01::Models::ProvisioningStateDR + def access_rights + Azure::ServiceBus::Mgmt::V2017_04_01::Models::AccessRights end - def role_disaster_recovery - Azure::ServiceBus::Mgmt::V2017_04_01::Models::RoleDisasterRecovery + def check_name_availability_result + Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult + end + def resource + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Resource + end + def sku_name + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuName + end + def sku_tier + Azure::ServiceBus::Mgmt::V2017_04_01::Models::SkuTier + end + def action + Azure::ServiceBus::Mgmt::V2017_04_01::Models::Action + end + def key_type + Azure::ServiceBus::Mgmt::V2017_04_01::Models::KeyType end end end diff --git a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb index 923fd9c104..b752273179 100644 --- a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb @@ -7,24 +7,18 @@ module Azure::Profiles::Latest module ServiceFabric module Mgmt + Application = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Application ApplicationType = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::ApplicationType Version = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Version - Application = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Application Service = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Service - Clusters = Azure::ServiceFabric::Mgmt::V2018_02_01::Clusters - ClusterVersions = Azure::ServiceFabric::Mgmt::V2018_02_01::ClusterVersions Operations = Azure::ServiceFabric::Mgmt::V2018_02_01::Operations + ClusterVersions = Azure::ServiceFabric::Mgmt::V2018_02_01::ClusterVersions + Clusters = Azure::ServiceFabric::Mgmt::V2018_02_01::Clusters module Models - ServicePropertiesBase = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase - ServiceTypeHealthPolicyMapItem = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem - ApplicationMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription - ServiceCorrelationDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription - ServicePlacementPolicyDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription ApplicationParameter = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationParameter ServiceLoadMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription PartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription - ProxyResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource RollingUpgradeMonitoringPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::RollingUpgradeMonitoringPolicy ApplicationTypeResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResourceList ApplicationResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList @@ -46,41 +40,47 @@ module Models StatelessServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties StatefulServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties StatefulServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties - EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription + ProxyResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource + ServicePropertiesBase = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase + ServiceTypeHealthPolicyMapItem = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem + ApplicationMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription + ServiceCorrelationDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription + ServicePlacementPolicyDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription ServiceTypeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy - NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription - ServiceTypeHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy - ClusterHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy - AvailableOperationDisplay = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay - ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy - CertificateDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription - ClusterUpgradePolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy - ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint - ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails ServerCertificateCommonNames = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames - ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsResult - SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription - ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult ApplicationDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy - ClusterListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult - AzureActiveDirectory = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AzureActiveDirectory ClusterUpdateParameters = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters + ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult ServerCertificateCommonName = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName - OperationResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult - SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsSectionDescription - OperationListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult - ClientCertificateCommonName = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName - Resource = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Resource + ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsResult ApplicationHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy - ErrorModelError = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError DiagnosticsStorageAccountConfig = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig - ErrorModel = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel - Cluster = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster + ErrorModelError = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError + ClusterUpgradePolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy + AvailableOperationDisplay = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay + ClusterHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy + AzureActiveDirectory = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AzureActiveDirectory + ServiceTypeHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy + ClientCertificateCommonName = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName + ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint + ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy + ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails + SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription + SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsSectionDescription + EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription + Resource = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Resource + NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription + OperationResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult ProvisioningState = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState + ClusterListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult + Cluster = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster + CertificateDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription + OperationListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult + ErrorModel = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel end class ServiceFabricManagementClass - attr_reader :application_type, :version, :application, :service, :clusters, :cluster_versions, :operations, :configurable, :base_url, :options, :model_classes + attr_reader :application, :application_type, :version, :service, :operations, :cluster_versions, :clusters, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -90,9 +90,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @application = @client_0.application @application_type = @client_0.application_type @version = @client_0.version - @application = @client_0.application @service = @client_0.service @client_1 = Azure::ServiceFabric::Mgmt::V2018_02_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options) @@ -100,9 +100,9 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @clusters = @client_1.clusters - @cluster_versions = @client_1.cluster_versions @operations = @client_1.operations + @cluster_versions = @client_1.cluster_versions + @clusters = @client_1.clusters @model_classes = ModelClasses.new end @@ -123,21 +123,6 @@ def method_missing(method, *args) end class ModelClasses - def service_properties_base - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase - end - def service_type_health_policy_map_item - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem - end - def application_metric_description - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription - end - def service_correlation_description - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription - end - def service_placement_policy_description - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription - end def application_parameter Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationParameter end @@ -147,9 +132,6 @@ def service_load_metric_description def partition_scheme_description Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription end - def proxy_resource - Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource - end def rolling_upgrade_monitoring_policy Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::RollingUpgradeMonitoringPolicy end @@ -213,98 +195,116 @@ def stateful_service_properties def stateful_service_update_properties Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties end - def endpoint_range_description - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription + def proxy_resource + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource end - def service_type_delta_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy + def service_properties_base + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase end - def node_type_description - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription + def service_type_health_policy_map_item + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem end - def service_type_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy + def application_metric_description + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription end - def cluster_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy + def service_correlation_description + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription end - def available_operation_display - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay + def service_placement_policy_description + Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription end - def cluster_upgrade_delta_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy + def service_type_delta_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy end - def certificate_description - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription + def server_certificate_common_names + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames end - def cluster_upgrade_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy + def application_delta_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy end - def client_certificate_thumbprint - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint + def cluster_update_parameters + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters end - def cluster_version_details - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails + def cluster_code_versions_list_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult end - def server_certificate_common_names - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames + def server_certificate_common_name + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName end def cluster_code_versions_result Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsResult end - def settings_parameter_description - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription + def application_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy end - def cluster_code_versions_list_result - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult + def diagnostics_storage_account_config + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig end - def application_delta_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy + def error_model_error + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError end - def cluster_list_result - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult + def cluster_upgrade_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy + end + def available_operation_display + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay + end + def cluster_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy end def azure_active_directory Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AzureActiveDirectory end - def cluster_update_parameters - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters + def service_type_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy end - def server_certificate_common_name - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName + def client_certificate_common_name + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName end - def operation_result - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult + def client_certificate_thumbprint + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint + end + def cluster_upgrade_delta_health_policy + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy + end + def cluster_version_details + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails + end + def settings_parameter_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription end def settings_section_description Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsSectionDescription end - def operation_list_result - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult - end - def client_certificate_common_name - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName + def endpoint_range_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription end def resource Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Resource end - def application_health_policy - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy + def node_type_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription end - def error_model_error - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError + def operation_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult end - def diagnostics_storage_account_config - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig + def provisioning_state + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState end - def error_model - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel + def cluster_list_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult end def cluster Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster end - def provisioning_state - Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState + def certificate_description + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription + end + def operation_list_result + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult + end + def error_model + Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel end end end diff --git a/azure_sdk/lib/latest/modules/signalr_profile_module.rb b/azure_sdk/lib/latest/modules/signalr_profile_module.rb index 1537bc1ec8..6151356271 100644 --- a/azure_sdk/lib/latest/modules/signalr_profile_module.rb +++ b/azure_sdk/lib/latest/modules/signalr_profile_module.rb @@ -12,26 +12,26 @@ module Mgmt module Models ResourceSku = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku - OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay - ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification - SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList Operation = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation - OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList + SignalRResourceList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList SignalRUpdateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters NameAvailability = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability - Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource - OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties + ServiceSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification SignalRCreateOrUpdateProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties - MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification SignalRKeys = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys + OperationProperties = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties NameAvailabilityParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters - RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters TrackedResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource + MetricSpecification = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification SignalRResource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource SignalRCreateParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateParameters SignalRSkuTier = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRSkuTier - ProvisioningState = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ProvisioningState + RegenerateKeyParameters = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters + OperationDisplay = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay KeyType = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::KeyType + Resource = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource + OperationList = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList + ProvisioningState = Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ProvisioningState end class SignalrManagementClass @@ -68,20 +68,11 @@ class ModelClasses def resource_sku Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ResourceSku end - def operation_display - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay - end - def service_specification - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification - end - def signal_rresource_list - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList - end def operation Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Operation end - def operation_list - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList + def signal_rresource_list + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResourceList end def signal_rupdate_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRUpdateParameters @@ -89,30 +80,27 @@ def signal_rupdate_parameters def name_availability Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailability end - def resource - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource - end - def operation_properties - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties + def service_specification + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ServiceSpecification end def signal_rcreate_or_update_properties Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRCreateOrUpdateProperties end - def metric_specification - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification - end def signal_rkeys Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRKeys end + def operation_properties + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationProperties + end def name_availability_parameters Azure::Signalr::Mgmt::V2018_03_01_preview::Models::NameAvailabilityParameters end - def regenerate_key_parameters - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters - end def tracked_resource Azure::Signalr::Mgmt::V2018_03_01_preview::Models::TrackedResource end + def metric_specification + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::MetricSpecification + end def signal_rresource Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRResource end @@ -122,12 +110,24 @@ def signal_rcreate_parameters def signal_rsku_tier Azure::Signalr::Mgmt::V2018_03_01_preview::Models::SignalRSkuTier end - def provisioning_state - Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ProvisioningState + def regenerate_key_parameters + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::RegenerateKeyParameters + end + def operation_display + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationDisplay end def key_type Azure::Signalr::Mgmt::V2018_03_01_preview::Models::KeyType end + def resource + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::Resource + end + def operation_list + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::OperationList + end + def provisioning_state + Azure::Signalr::Mgmt::V2018_03_01_preview::Models::ProvisioningState + end end end end diff --git a/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb b/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb index 270c7da4d9..38e6076951 100644 --- a/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb +++ b/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb @@ -8,20 +8,20 @@ module Azure::Profiles::Latest module SpellCheck module Models - SpellingTokenSuggestion = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion + ActionType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType ResponseBase = Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase - SpellingFlaggedToken = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken - Error = Azure::CognitiveServices::SpellCheck::V1_0::Models::Error - SpellCheck = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck Identifiable = Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::SpellCheck::V1_0::Models::Response Answer = Azure::CognitiveServices::SpellCheck::V1_0::Models::Answer - ErrorResponse = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse - ErrorType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType ErrorCode = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode - ActionType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType + SpellingTokenSuggestion = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion + SpellingFlaggedToken = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken + SpellCheck = Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck + ErrorType = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType Mode = Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode + ErrorSubCode = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode + Response = Azure::CognitiveServices::SpellCheck::V1_0::Models::Response + Error = Azure::CognitiveServices::SpellCheck::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse end class SpellCheckDataClass @@ -53,47 +53,47 @@ def method_missing(method, *args) end class ModelClasses - def spelling_token_suggestion - Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion + def action_type + Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType end def response_base Azure::CognitiveServices::SpellCheck::V1_0::Models::ResponseBase end - def spelling_flagged_token - Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken - end - def error - Azure::CognitiveServices::SpellCheck::V1_0::Models::Error - end - def spell_check - Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck - end def identifiable Azure::CognitiveServices::SpellCheck::V1_0::Models::Identifiable end - def response - Azure::CognitiveServices::SpellCheck::V1_0::Models::Response - end def answer Azure::CognitiveServices::SpellCheck::V1_0::Models::Answer end - def error_response - Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse + def error_code + Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode + end + def spelling_token_suggestion + Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion + end + def spelling_flagged_token + Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingFlaggedToken + end + def spell_check + Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellCheck end def error_type Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorType end - def error_code - Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorCode + def mode + Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode end def error_sub_code Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorSubCode end - def action_type - Azure::CognitiveServices::SpellCheck::V1_0::Models::ActionType + def response + Azure::CognitiveServices::SpellCheck::V1_0::Models::Response end - def mode - Azure::CognitiveServices::SpellCheck::V1_0::Models::Mode + def error + Azure::CognitiveServices::SpellCheck::V1_0::Models::Error + end + def error_response + Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/sql_profile_module.rb b/azure_sdk/lib/latest/modules/sql_profile_module.rb index 8cbd7c50a7..71f8353a0d 100644 --- a/azure_sdk/lib/latest/modules/sql_profile_module.rb +++ b/azure_sdk/lib/latest/modules/sql_profile_module.rb @@ -36,64 +36,58 @@ module Mgmt DatabaseConnectionPolicies = Azure::SQL::Mgmt::V2014_04_01::DatabaseConnectionPolicies ServerUsages = Azure::SQL::Mgmt::V2014_04_01::ServerUsages DatabaseUsages = Azure::SQL::Mgmt::V2014_04_01::DatabaseUsages - DatabaseAdvisors = Azure::SQL::Mgmt::V2015_05_01_preview::DatabaseAdvisors + Servers = Azure::SQL::Mgmt::V2015_05_01_preview::Servers + VirtualNetworkRules = Azure::SQL::Mgmt::V2015_05_01_preview::VirtualNetworkRules DatabaseRecommendedActions = Azure::SQL::Mgmt::V2015_05_01_preview::DatabaseRecommendedActions - ServerAdvisors = Azure::SQL::Mgmt::V2015_05_01_preview::ServerAdvisors DatabaseAutomaticTuningOperations = Azure::SQL::Mgmt::V2015_05_01_preview::DatabaseAutomaticTuningOperations EncryptionProtectors = Azure::SQL::Mgmt::V2015_05_01_preview::EncryptionProtectors FailoverGroups = Azure::SQL::Mgmt::V2015_05_01_preview::FailoverGroups FirewallRules = Azure::SQL::Mgmt::V2015_05_01_preview::FirewallRules ManagedInstances = Azure::SQL::Mgmt::V2015_05_01_preview::ManagedInstances + ServerAdvisors = Azure::SQL::Mgmt::V2015_05_01_preview::ServerAdvisors + DatabaseAdvisors = Azure::SQL::Mgmt::V2015_05_01_preview::DatabaseAdvisors Operations = Azure::SQL::Mgmt::V2015_05_01_preview::Operations - ServerKeys = Azure::SQL::Mgmt::V2015_05_01_preview::ServerKeys - Servers = Azure::SQL::Mgmt::V2015_05_01_preview::Servers SyncAgents = Azure::SQL::Mgmt::V2015_05_01_preview::SyncAgents SyncGroups = Azure::SQL::Mgmt::V2015_05_01_preview::SyncGroups - SyncMembers = Azure::SQL::Mgmt::V2015_05_01_preview::SyncMembers + ServerKeys = Azure::SQL::Mgmt::V2015_05_01_preview::ServerKeys SubscriptionUsages = Azure::SQL::Mgmt::V2015_05_01_preview::SubscriptionUsages - VirtualNetworkRules = Azure::SQL::Mgmt::V2015_05_01_preview::VirtualNetworkRules + SyncMembers = Azure::SQL::Mgmt::V2015_05_01_preview::SyncMembers + DatabaseBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseBlobAuditingPolicies ExtendedDatabaseBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ExtendedDatabaseBlobAuditingPolicies ExtendedServerBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ExtendedServerBlobAuditingPolicies ServerBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ServerBlobAuditingPolicies - DatabaseBlobAuditingPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseBlobAuditingPolicies DatabaseVulnerabilityAssessmentRuleBaselines = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseVulnerabilityAssessmentRuleBaselines DatabaseVulnerabilityAssessments = Azure::SQL::Mgmt::V2017_03_01_preview::DatabaseVulnerabilityAssessments + BackupLongTermRetentionPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::BackupLongTermRetentionPolicies DataWarehouseUserActivitiesOperations = Azure::SQL::Mgmt::V2017_03_01_preview::DataWarehouseUserActivitiesOperations JobAgents = Azure::SQL::Mgmt::V2017_03_01_preview::JobAgents JobCredentials = Azure::SQL::Mgmt::V2017_03_01_preview::JobCredentials JobExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobExecutions - Jobs = Azure::SQL::Mgmt::V2017_03_01_preview::Jobs JobStepExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobStepExecutions - JobSteps = Azure::SQL::Mgmt::V2017_03_01_preview::JobSteps - JobTargetExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobTargetExecutions JobTargetGroups = Azure::SQL::Mgmt::V2017_03_01_preview::JobTargetGroups JobVersions = Azure::SQL::Mgmt::V2017_03_01_preview::JobVersions LongTermRetentionBackups = Azure::SQL::Mgmt::V2017_03_01_preview::LongTermRetentionBackups - BackupLongTermRetentionPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::BackupLongTermRetentionPolicies ManagedDatabases = Azure::SQL::Mgmt::V2017_03_01_preview::ManagedDatabases - RestorePoints = Azure::SQL::Mgmt::V2017_03_01_preview::RestorePoints - SensitivityLabels = Azure::SQL::Mgmt::V2017_03_01_preview::SensitivityLabels + JobSteps = Azure::SQL::Mgmt::V2017_03_01_preview::JobSteps + JobTargetExecutions = Azure::SQL::Mgmt::V2017_03_01_preview::JobTargetExecutions ServerAutomaticTuningOperations = Azure::SQL::Mgmt::V2017_03_01_preview::ServerAutomaticTuningOperations - ServerDnsAliases = Azure::SQL::Mgmt::V2017_03_01_preview::ServerDnsAliases + SensitivityLabels = Azure::SQL::Mgmt::V2017_03_01_preview::SensitivityLabels ServerSecurityAlertPolicies = Azure::SQL::Mgmt::V2017_03_01_preview::ServerSecurityAlertPolicies - DatabaseOperations = Azure::SQL::Mgmt::V2017_10_01_preview::DatabaseOperations + ServerDnsAliases = Azure::SQL::Mgmt::V2017_03_01_preview::ServerDnsAliases + RestorePoints = Azure::SQL::Mgmt::V2017_03_01_preview::RestorePoints + Jobs = Azure::SQL::Mgmt::V2017_03_01_preview::Jobs ElasticPoolOperations = Azure::SQL::Mgmt::V2017_10_01_preview::ElasticPoolOperations DatabaseVulnerabilityAssessmentScans = Azure::SQL::Mgmt::V2017_10_01_preview::DatabaseVulnerabilityAssessmentScans - Capabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Capabilities - Databases = Azure::SQL::Mgmt::V2017_10_01_preview::Databases - ElasticPools = Azure::SQL::Mgmt::V2017_10_01_preview::ElasticPools InstanceFailoverGroups = Azure::SQL::Mgmt::V2017_10_01_preview::InstanceFailoverGroups BackupShortTermRetentionPolicies = Azure::SQL::Mgmt::V2017_10_01_preview::BackupShortTermRetentionPolicies + ElasticPools = Azure::SQL::Mgmt::V2017_10_01_preview::ElasticPools TdeCertificates = Azure::SQL::Mgmt::V2017_10_01_preview::TdeCertificates ManagedInstanceTdeCertificates = Azure::SQL::Mgmt::V2017_10_01_preview::ManagedInstanceTdeCertificates + Capabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Capabilities + DatabaseOperations = Azure::SQL::Mgmt::V2017_10_01_preview::DatabaseOperations + Databases = Azure::SQL::Mgmt::V2017_10_01_preview::Databases module Models - MetricValue = Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue - ServiceObjectiveListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveListResult - DataMaskingRuleListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleListResult - QueryText = Azure::SQL::Mgmt::V2014_04_01::Models::QueryText - DatabaseUsageListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsageListResult - TransparentDataEncryptionListResult = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionListResult DatabaseUsage = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsage ExtensionListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ExtensionListResult ServerUsageListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServerUsageListResult @@ -118,93 +112,96 @@ module Models QueryTextListResult = Azure::SQL::Mgmt::V2014_04_01::Models::QueryTextListResult BackupLongTermRetentionVaultListResult = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVaultListResult MetricName = Azure::SQL::Mgmt::V2014_04_01::Models::MetricName - RestorableDroppedDatabaseListResult = Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabaseListResult - Metric = Azure::SQL::Mgmt::V2014_04_01::Models::Metric ElasticPoolPerDatabaseMinDtuCapability = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolPerDatabaseMinDtuCapability MetricListResult = Azure::SQL::Mgmt::V2014_04_01::Models::MetricListResult - MetricAvailability = Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability - ServerTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicyListResult - MetricDefinition = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition + RestorableDroppedDatabaseListResult = Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabaseListResult OperationImpact = Azure::SQL::Mgmt::V2014_04_01::Models::OperationImpact MetricDefinitionListResult = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinitionListResult + ServerTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicyListResult + MetricDefinition = Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition BackupLongTermRetentionPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult - CheckNameAvailabilityRequest = Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityRequest - QueryMetric = Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric + MetricAvailability = Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability ServiceTierAdvisorListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisorListResult - QueryInterval = Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval - RecoverableDatabaseListResult = Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult QueryStatistic = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic - DatabaseTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicyListResult - TopQueries = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueries + QueryInterval = Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval + QueryMetric = Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric ElasticPoolDtuCapability = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDtuCapability + DatabaseTableAuditingPolicyListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicyListResult + RecoverableDatabaseListResult = Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult + QueryStatisticListResult = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult TopQueriesListResult = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueriesListResult + TopQueries = Azure::SQL::Mgmt::V2014_04_01::Models::TopQueries AdvisorListResult = Azure::SQL::Mgmt::V2014_04_01::Models::AdvisorListResult - QueryStatisticListResult = Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult + RestorableDroppedDatabase = Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabase BackupLongTermRetentionVault = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVault RecoverableDatabase = Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabase - RestorableDroppedDatabase = Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabase + TransparentDataEncryption = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption ServerConnectionPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionPolicy ServiceTierAdvisor = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisor - TransparentDataEncryption = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption RecommendedIndex = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndex - DatabaseSecurityAlertPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy - DataMaskingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy DataMaskingRule = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRule + DatabaseSecurityAlertPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy DisasterRecoveryConfiguration = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfiguration + DataMaskingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy GeoBackupPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicy ImportExportResponse = Azure::SQL::Mgmt::V2014_04_01::Models::ImportExportResponse - ImportRequest = Azure::SQL::Mgmt::V2014_04_01::Models::ImportRequest RecommendedElasticPool = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedElasticPool + ImportRequest = Azure::SQL::Mgmt::V2014_04_01::Models::ImportRequest + ServerCommunicationLink = Azure::SQL::Mgmt::V2014_04_01::Models::ServerCommunicationLink ReplicationLink = Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationLink ServerAzureADAdministrator = Azure::SQL::Mgmt::V2014_04_01::Models::ServerAzureADAdministrator - ServerCommunicationLink = Azure::SQL::Mgmt::V2014_04_01::Models::ServerCommunicationLink - ServiceObjective = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjective - ElasticPoolActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolActivity - ElasticPoolDatabaseActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity + MetricValue = Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue TransparentDataEncryptionActivity = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity + ServiceObjective = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjective + Metric = Azure::SQL::Mgmt::V2014_04_01::Models::Metric DatabaseConnectionPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseConnectionPolicy DatabaseTableAuditingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicy - ServerTableAuditingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy + ElasticPoolActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolActivity + ElasticPoolDatabaseActivity = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity BackupLongTermRetentionPolicyState = Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyState - MaxSizeUnits = Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits + ServerTableAuditingPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy CheckNameAvailabilityReason = Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityReason ServerConnectionType = Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionType DatabaseEdition = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseEdition - ServiceObjectiveName = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveName + MaxSizeUnits = Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits TransparentDataEncryptionStatus = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionStatus RecommendedIndexAction = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexAction RecommendedIndexState = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexState RecommendedIndexType = Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexType - ReadScale = Azure::SQL::Mgmt::V2014_04_01::Models::ReadScale SecurityAlertPolicyEmailAccountAdmins = Azure::SQL::Mgmt::V2014_04_01::Models::SecurityAlertPolicyEmailAccountAdmins SecurityAlertPolicyUseServerDefault = Azure::SQL::Mgmt::V2014_04_01::Models::SecurityAlertPolicyUseServerDefault - DataMaskingState = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingState - DataMaskingRuleState = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleState + ReadScale = Azure::SQL::Mgmt::V2014_04_01::Models::ReadScale + ServiceObjectiveName = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveName DataMaskingFunction = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingFunction DisasterRecoveryConfigurationStatus = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationStatus DisasterRecoveryConfigurationAutoFailover = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationAutoFailover - DisasterRecoveryConfigurationFailoverPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationFailoverPolicy - DisasterRecoveryConfigurationRole = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationRole + DataMaskingState = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingState + CheckNameAvailabilityRequest = Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityRequest ElasticPoolEdition = Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolEdition GeoBackupPolicyState = Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicyState + DisasterRecoveryConfigurationFailoverPolicy = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationFailoverPolicy + DisasterRecoveryConfigurationRole = Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationRole + DataMaskingRuleState = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleState + UnitDefinitionType = Azure::SQL::Mgmt::V2014_04_01::Models::UnitDefinitionType + UnitType = Azure::SQL::Mgmt::V2014_04_01::Models::UnitType StorageKeyType = Azure::SQL::Mgmt::V2014_04_01::Models::StorageKeyType AuthenticationType = Azure::SQL::Mgmt::V2014_04_01::Models::AuthenticationType - UnitType = Azure::SQL::Mgmt::V2014_04_01::Models::UnitType PrimaryAggregationType = Azure::SQL::Mgmt::V2014_04_01::Models::PrimaryAggregationType - UnitDefinitionType = Azure::SQL::Mgmt::V2014_04_01::Models::UnitDefinitionType + ServerVersion = Azure::SQL::Mgmt::V2014_04_01::Models::ServerVersion QueryAggregationFunction = Azure::SQL::Mgmt::V2014_04_01::Models::QueryAggregationFunction QueryExecutionType = Azure::SQL::Mgmt::V2014_04_01::Models::QueryExecutionType QueryObservedMetricType = Azure::SQL::Mgmt::V2014_04_01::Models::QueryObservedMetricType QueryMetricUnit = Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetricUnit - ReplicationRole = Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationRole - ReplicationState = Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationState - ServerVersion = Azure::SQL::Mgmt::V2014_04_01::Models::ServerVersion ServerState = Azure::SQL::Mgmt::V2014_04_01::Models::ServerState TransparentDataEncryptionActivityStatus = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivityStatus - OperationDisplay = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationDisplay - Operation = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Operation + ReplicationState = Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationState + ReplicationRole = Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationRole + ServiceObjectiveListResult = Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveListResult + DataMaskingRuleListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleListResult + QueryText = Azure::SQL::Mgmt::V2014_04_01::Models::QueryText + DatabaseUsageListResult = Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsageListResult + TransparentDataEncryptionListResult = Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionListResult RecommendedActionImplementationInfo = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImplementationInfo - OperationListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationListResult RecommendedActionImpactRecord = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImpactRecord ManagedInstanceUpdate = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ManagedInstanceUpdate FirewallRuleList = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRuleList @@ -224,114 +221,89 @@ module Models FailoverGroupListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupListResult RecommendedActionMetricInfo = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionMetricInfo SyncFullSchemaPropertiesListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncFullSchemaPropertiesListResult - FirewallRuleListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRuleListResult ServerKeyListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKeyListResult - VirtualNetworkRuleListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleListResult SyncGroupLogListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogListResult - ServerListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerListResult PartnerInfo = Azure::SQL::Mgmt::V2015_05_01_preview::Models::PartnerInfo - ServerUpdate = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerUpdate ResourceWithWritableName = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ResourceWithWritableName SubscriptionUsageListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SubscriptionUsageListResult SyncGroupListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupListResult SyncAgentListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentListResult + OperationDisplay = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationDisplay FailoverGroupReadWriteEndpoint = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupReadWriteEndpoint - SyncAgentKeyProperties = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentKeyProperties + OperationListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationListResult SyncFullSchemaProperties = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncFullSchemaProperties - SyncMemberListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberListResult + SyncAgentKeyProperties = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentKeyProperties FailoverGroupUpdate = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupUpdate - SyncAgentLinkedDatabaseListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentLinkedDatabaseListResult AutomaticTuningOptions = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningOptions SyncDatabaseIdProperties = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDatabaseIdProperties + SyncAgentLinkedDatabaseListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentLinkedDatabaseListResult + SyncMemberListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberListResult RecommendedAction = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedAction Advisor = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor DatabaseAutomaticTuning = Azure::SQL::Mgmt::V2015_05_01_preview::Models::DatabaseAutomaticTuning EncryptionProtector = Azure::SQL::Mgmt::V2015_05_01_preview::Models::EncryptionProtector - FailoverGroup = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup + Operation = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Operation ProxyResourceWithWritableName = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ProxyResourceWithWritableName - FirewallRule = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRule ManagedInstance = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ManagedInstance - ServerKey = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKey - Server = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Server + FailoverGroup = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup SyncAgent = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgent SyncAgentLinkedDatabase = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentLinkedDatabase - SyncGroup = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroup - SyncMember = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMember + ServerUpdate = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerUpdate + ServerKey = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKey SubscriptionUsage = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SubscriptionUsage - VirtualNetworkRule = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule + AutoExecuteStatusInheritedFrom = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatusInheritedFrom + Server = Azure::SQL::Mgmt::V2015_05_01_preview::Models::Server + SyncMember = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMember + ImplementationMethod = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ImplementationMethod AdvisorStatus = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus AutoExecuteStatus = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatus - AutoExecuteStatusInheritedFrom = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatusInheritedFrom + SyncGroup = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroup + IsRetryable = Azure::SQL::Mgmt::V2015_05_01_preview::Models::IsRetryable RecommendedActionCurrentState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionCurrentState RecommendedActionInitiatedBy = Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionInitiatedBy - ImplementationMethod = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ImplementationMethod - IsRetryable = Azure::SQL::Mgmt::V2015_05_01_preview::Models::IsRetryable - AutomaticTuningMode = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningMode AutomaticTuningDisabledReason = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningDisabledReason - ServerKeyType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKeyType + AutomaticTuningMode = Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningMode FailoverGroupReplicationRole = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupReplicationRole IdentityType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::IdentityType - OperationOrigin = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationOrigin - SyncAgentState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState - SyncMemberDbType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType + ServerKeyType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKeyType SyncGroupLogType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogType SyncConflictResolutionPolicy = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncConflictResolutionPolicy SyncGroupState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupState + SyncAgentState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState + SyncMemberDbType = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType + VirtualNetworkRuleState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleState SyncDirection = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDirection SyncMemberState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberState - VirtualNetworkRuleState = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleState - JobListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult - JobStepAction = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction - ManagedDatabaseUpdate = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate - ManagedDatabaseListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseListResult - ServerDnsAliasAcquisition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasAcquisition - CompleteDatabaseRestoreDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CompleteDatabaseRestoreDefinition - AutomaticTuningServerOptions = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerOptions - JobAgentListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentListResult - SensitivityLabelListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelListResult - JobAgentUpdate = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentUpdate - CreateDatabaseRestorePointDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition - LongTermRetentionBackupListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackupListResult - JobCredentialListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredentialListResult - RestorePointListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult - JobExecutionTarget = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionTarget - JobVersionListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersionListResult - JobExecutionListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionListResult - JobSchedule = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule - JobTargetGroupListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult - DatabaseVulnerabilityAssessmentRuleBaselineItem = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaselineItem - JobStepListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepListResult - JobTarget = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget - ServerDnsAliasListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasListResult - JobStepOutput = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput - ImportExportDatabaseDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition + FirewallRuleListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRuleListResult + FirewallRule = Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRule + OperationOrigin = Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationOrigin + VirtualNetworkRuleListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleListResult + VirtualNetworkRule = Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule + ServerListResult = Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerListResult JobStepExecutionOptions = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepExecutionOptions ExtendedDatabaseBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedDatabaseBlobAuditingPolicy ExtendedServerBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ExtendedServerBlobAuditingPolicy ServerBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerBlobAuditingPolicy - DatabaseBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy ImportExportOperationResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportOperationResult DatabaseVulnerabilityAssessmentRuleBaseline = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaseline DataWarehouseUserActivities = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DataWarehouseUserActivities + RestorePointListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult JobAgent = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgent JobCredential = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredential JobExecution = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecution - Job = Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job JobStep = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStep JobTargetGroup = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroup JobVersion = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersion LongTermRetentionBackup = Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackup - BackupLongTermRetentionPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy ManagedDatabase = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabase - RestorePoint = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint SensitivityLabel = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabel - ServerAutomaticTuning = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning + JobListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult ServerDnsAlias = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAlias + ServerAutomaticTuning = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning + JobSchedule = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule ServerSecurityAlertPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy - BlobAuditingPolicyState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::BlobAuditingPolicyState JobAgentState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentState JobExecutionLifecycle = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionLifecycle - ProvisioningState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState JobTargetType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetType JobScheduleType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobScheduleType JobStepActionType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepActionType @@ -339,87 +311,115 @@ module Models JobStepOutputType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutputType JobTargetGroupMembershipType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupMembershipType ManagedDatabaseStatus = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseStatus + AutomaticTuningServerMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode + AutomaticTuningServerReason = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason ManagedDatabaseCreateMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseCreateMode + VulnerabilityAssessmentPolicyBaselineName = Azure::SQL::Mgmt::V2017_03_01_preview::Models::VulnerabilityAssessmentPolicyBaselineName + SensitivityLabelSource = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelSource + LongTermRetentionDatabaseState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionDatabaseState RestorePointType = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointType - AutomaticTuningServerMode = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode + BackupLongTermRetentionPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy + DatabaseBlobAuditingPolicy = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy + Job = Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job + RestorePoint = Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint + BlobAuditingPolicyState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::BlobAuditingPolicyState AutomaticTuningOptionModeDesired = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeDesired AutomaticTuningOptionModeActual = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeActual - AutomaticTuningServerReason = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason + ProvisioningState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState SecurityAlertPolicyState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SecurityAlertPolicyState - LongTermRetentionDatabaseState = Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionDatabaseState - VulnerabilityAssessmentPolicyBaselineName = Azure::SQL::Mgmt::V2017_03_01_preview::Models::VulnerabilityAssessmentPolicyBaselineName - SensitivityLabelSource = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelSource + JobStepAction = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction + ManagedDatabaseUpdate = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate + ManagedDatabaseListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseListResult + ServerDnsAliasAcquisition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasAcquisition + CompleteDatabaseRestoreDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CompleteDatabaseRestoreDefinition + AutomaticTuningServerOptions = Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerOptions + JobAgentListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentListResult + SensitivityLabelListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelListResult + JobAgentUpdate = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentUpdate + CreateDatabaseRestorePointDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition + LongTermRetentionBackupListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackupListResult + JobCredentialListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredentialListResult + JobExecutionTarget = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionTarget + JobVersionListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersionListResult + JobExecutionListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionListResult + JobTargetGroupListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult + DatabaseVulnerabilityAssessmentRuleBaselineItem = Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaselineItem + JobStepListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepListResult + JobTarget = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget + ServerDnsAliasListResult = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasListResult + JobStepOutput = Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput + ImportExportDatabaseDefinition = Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition + DatabaseOperation = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation + MaxSizeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeCapability + DatabaseVulnerabilityAssessment = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessment + EditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::EditionCapability + ElasticPoolListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolListResult ElasticPoolEditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolEditionCapability + LocationCapabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LocationCapabilities + ManagementOperationState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagementOperationState + DatabaseStatus = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseStatus + CatalogCollationType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CatalogCollationType + ServerVersionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServerVersionCapability + DatabaseListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseListResult + ElasticPoolPerDatabaseMinPerformanceLevelCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseMinPerformanceLevelCapability ServiceObjectiveCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability - DatabaseOperationListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult - EditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::EditionCapability - Resource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource - ElasticPoolPerDatabaseMinPerformanceLevelCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseMinPerformanceLevelCapability - BackupShortTermRetentionPolicyListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicyListResult ElasticPoolPerDatabaseMaxPerformanceLevelCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseMaxPerformanceLevelCapability - VulnerabilityAssessmentRecurringScansProperties = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentRecurringScansProperties ElasticPoolPerformanceLevelCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerformanceLevelCapability VulnerabilityAssessmentScanError = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanError InstanceFailoverGroupReadOnlyEndpoint = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupReadOnlyEndpoint VulnerabilityAssessmentScanRecordListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanRecordListResult - ServerVersionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServerVersionCapability - MaxSizeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeCapability + BackupShortTermRetentionPolicyListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicyListResult ManagedInstanceVcoresCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceVcoresCapability MaxSizeRangeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeRangeCapability - ManagedInstanceFamilyCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceFamilyCapability - Sku = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Sku ManagedInstanceEditionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceEditionCapability ManagedInstanceVersionCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceVersionCapability + ManagedInstanceFamilyCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceFamilyCapability ElasticPoolOperationListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolOperationListResult - LocationCapabilities = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LocationCapabilities ManagedInstancePairInfo = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstancePairInfo InstanceFailoverGroupReadWriteEndpoint = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupReadWriteEndpoint LogSizeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LogSizeCapability - DatabaseListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseListResult - LicenseTypeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LicenseTypeCapability - DatabaseUpdate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseUpdate InstanceFailoverGroupListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupListResult - ResourceMoveDefinition = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition PerformanceLevelCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelCapability - ElasticPoolPerDatabaseSettings = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseSettings + LicenseTypeCapability = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LicenseTypeCapability PartnerRegionInfo = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PartnerRegionInfo - ElasticPoolUpdate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolUpdate - ElasticPoolListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolListResult - ProxyResource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ProxyResource - DatabaseOperation = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation - TrackedResource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::TrackedResource ElasticPoolOperation = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolOperation - DatabaseVulnerabilityAssessment = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessment VulnerabilityAssessmentScanRecord = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanRecord DatabaseVulnerabilityAssessmentScansExport = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessmentScansExport Database = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Database + DatabaseUpdate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseUpdate + BackupShortTermRetentionPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicy ElasticPool = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPool + ElasticPoolUpdate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolUpdate + ElasticPoolPerDatabaseSettings = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseSettings InstanceFailoverGroup = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroup - BackupShortTermRetentionPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicy + VulnerabilityAssessmentScanState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanState TdeCertificate = Azure::SQL::Mgmt::V2017_10_01_preview::Models::TdeCertificate - ManagementOperationState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagementOperationState VulnerabilityAssessmentScanTriggerType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanTriggerType - VulnerabilityAssessmentScanState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanState + DatabaseLicenseType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseLicenseType MaxSizeUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeUnit + Sku = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Sku + TrackedResource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::TrackedResource + DatabaseReadScale = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseReadScale + ProxyResource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ProxyResource LogSizeUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::LogSizeUnit - CapabilityStatus = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus - PerformanceLevelUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelUnit + CapabilityGroup = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityGroup CreateMode = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CreateMode - SampleName = Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName - DatabaseStatus = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseStatus - CatalogCollationType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CatalogCollationType - DatabaseLicenseType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseLicenseType - DatabaseReadScale = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseReadScale - ElasticPoolState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState ElasticPoolLicenseType = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolLicenseType + InstanceFailoverGroupReplicationRole = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupReplicationRole ReadWriteEndpointFailoverPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ReadWriteEndpointFailoverPolicy ReadOnlyEndpointFailoverPolicy = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ReadOnlyEndpointFailoverPolicy - InstanceFailoverGroupReplicationRole = Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupReplicationRole - CapabilityGroup = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityGroup + CapabilityStatus = Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus + Resource = Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource + PerformanceLevelUnit = Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelUnit + SampleName = Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName + ElasticPoolState = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState + ResourceMoveDefinition = Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition + DatabaseOperationListResult = Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + VulnerabilityAssessmentRecurringScansProperties = Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentRecurringScansProperties end class SQLManagementClass - attr_reader :backup_long_term_retention_vaults, :recoverable_databases, :restorable_dropped_databases, :server_connection_policies, :database_threat_detection_policies, :data_masking_policies, :data_masking_rules, :transparent_data_encryption_configurations, :extensions, :disaster_recovery_configurations, :geo_backup_policies, :queries, :query_statistics, :query_texts, :recommended_elastic_pools, :replication_links, :server_azure_adadministrators, :server_communication_links, :service_objectives, :elastic_pool_activities, :elastic_pool_database_activities, :service_tier_advisors, :transparent_data_encryptions, :transparent_data_encryption_activities, :server_table_auditing_policies, :database_table_auditing_policies, :database_connection_policies, :server_usages, :database_usages, :database_advisors, :database_recommended_actions, :server_advisors, :database_automatic_tuning_operations, :encryption_protectors, :failover_groups, :firewall_rules, :managed_instances, :operations, :server_keys, :servers, :sync_agents, :sync_groups, :sync_members, :subscription_usages, :virtual_network_rules, :extended_database_blob_auditing_policies, :extended_server_blob_auditing_policies, :server_blob_auditing_policies, :database_blob_auditing_policies, :database_vulnerability_assessment_rule_baselines, :database_vulnerability_assessments, :data_warehouse_user_activities_operations, :job_agents, :job_credentials, :job_executions, :jobs, :job_step_executions, :job_steps, :job_target_executions, :job_target_groups, :job_versions, :long_term_retention_backups, :backup_long_term_retention_policies, :managed_databases, :restore_points, :sensitivity_labels, :server_automatic_tuning_operations, :server_dns_aliases, :server_security_alert_policies, :database_operations, :elastic_pool_operations, :database_vulnerability_assessment_scans, :capabilities, :databases, :elastic_pools, :instance_failover_groups, :backup_short_term_retention_policies, :tde_certificates, :managed_instance_tde_certificates, :configurable, :base_url, :options, :model_classes + attr_reader :backup_long_term_retention_vaults, :recoverable_databases, :restorable_dropped_databases, :server_connection_policies, :database_threat_detection_policies, :data_masking_policies, :data_masking_rules, :transparent_data_encryption_configurations, :extensions, :disaster_recovery_configurations, :geo_backup_policies, :queries, :query_statistics, :query_texts, :recommended_elastic_pools, :replication_links, :server_azure_adadministrators, :server_communication_links, :service_objectives, :elastic_pool_activities, :elastic_pool_database_activities, :service_tier_advisors, :transparent_data_encryptions, :transparent_data_encryption_activities, :server_table_auditing_policies, :database_table_auditing_policies, :database_connection_policies, :server_usages, :database_usages, :servers, :virtual_network_rules, :database_recommended_actions, :database_automatic_tuning_operations, :encryption_protectors, :failover_groups, :firewall_rules, :managed_instances, :server_advisors, :database_advisors, :operations, :sync_agents, :sync_groups, :server_keys, :subscription_usages, :sync_members, :database_blob_auditing_policies, :extended_database_blob_auditing_policies, :extended_server_blob_auditing_policies, :server_blob_auditing_policies, :database_vulnerability_assessment_rule_baselines, :database_vulnerability_assessments, :backup_long_term_retention_policies, :data_warehouse_user_activities_operations, :job_agents, :job_credentials, :job_executions, :job_step_executions, :job_target_groups, :job_versions, :long_term_retention_backups, :managed_databases, :job_steps, :job_target_executions, :server_automatic_tuning_operations, :sensitivity_labels, :server_security_alert_policies, :server_dns_aliases, :restore_points, :jobs, :elastic_pool_operations, :database_vulnerability_assessment_scans, :instance_failover_groups, :backup_short_term_retention_policies, :elastic_pools, :tde_certificates, :managed_instance_tde_certificates, :capabilities, :database_operations, :databases, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -464,68 +464,68 @@ def initialize(configurable, base_url=nil, options=nil) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) - @database_advisors = @client_1.database_advisors + @servers = @client_1.servers + @virtual_network_rules = @client_1.virtual_network_rules @database_recommended_actions = @client_1.database_recommended_actions - @server_advisors = @client_1.server_advisors @database_automatic_tuning_operations = @client_1.database_automatic_tuning_operations @encryption_protectors = @client_1.encryption_protectors @failover_groups = @client_1.failover_groups @firewall_rules = @client_1.firewall_rules @managed_instances = @client_1.managed_instances + @server_advisors = @client_1.server_advisors + @database_advisors = @client_1.database_advisors @operations = @client_1.operations - @server_keys = @client_1.server_keys - @servers = @client_1.servers @sync_agents = @client_1.sync_agents @sync_groups = @client_1.sync_groups - @sync_members = @client_1.sync_members + @server_keys = @client_1.server_keys @subscription_usages = @client_1.subscription_usages - @virtual_network_rules = @client_1.virtual_network_rules + @sync_members = @client_1.sync_members @client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) if(@client_2.respond_to?(:subscription_id)) @client_2.subscription_id = configurable.subscription_id end add_telemetry(@client_2) + @database_blob_auditing_policies = @client_2.database_blob_auditing_policies @extended_database_blob_auditing_policies = @client_2.extended_database_blob_auditing_policies @extended_server_blob_auditing_policies = @client_2.extended_server_blob_auditing_policies @server_blob_auditing_policies = @client_2.server_blob_auditing_policies - @database_blob_auditing_policies = @client_2.database_blob_auditing_policies @database_vulnerability_assessment_rule_baselines = @client_2.database_vulnerability_assessment_rule_baselines @database_vulnerability_assessments = @client_2.database_vulnerability_assessments + @backup_long_term_retention_policies = @client_2.backup_long_term_retention_policies @data_warehouse_user_activities_operations = @client_2.data_warehouse_user_activities_operations @job_agents = @client_2.job_agents @job_credentials = @client_2.job_credentials @job_executions = @client_2.job_executions - @jobs = @client_2.jobs @job_step_executions = @client_2.job_step_executions - @job_steps = @client_2.job_steps - @job_target_executions = @client_2.job_target_executions @job_target_groups = @client_2.job_target_groups @job_versions = @client_2.job_versions @long_term_retention_backups = @client_2.long_term_retention_backups - @backup_long_term_retention_policies = @client_2.backup_long_term_retention_policies @managed_databases = @client_2.managed_databases - @restore_points = @client_2.restore_points - @sensitivity_labels = @client_2.sensitivity_labels + @job_steps = @client_2.job_steps + @job_target_executions = @client_2.job_target_executions @server_automatic_tuning_operations = @client_2.server_automatic_tuning_operations - @server_dns_aliases = @client_2.server_dns_aliases + @sensitivity_labels = @client_2.sensitivity_labels @server_security_alert_policies = @client_2.server_security_alert_policies + @server_dns_aliases = @client_2.server_dns_aliases + @restore_points = @client_2.restore_points + @jobs = @client_2.jobs @client_3 = Azure::SQL::Mgmt::V2017_10_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) if(@client_3.respond_to?(:subscription_id)) @client_3.subscription_id = configurable.subscription_id end add_telemetry(@client_3) - @database_operations = @client_3.database_operations @elastic_pool_operations = @client_3.elastic_pool_operations @database_vulnerability_assessment_scans = @client_3.database_vulnerability_assessment_scans - @capabilities = @client_3.capabilities - @databases = @client_3.databases - @elastic_pools = @client_3.elastic_pools @instance_failover_groups = @client_3.instance_failover_groups @backup_short_term_retention_policies = @client_3.backup_short_term_retention_policies + @elastic_pools = @client_3.elastic_pools @tde_certificates = @client_3.tde_certificates @managed_instance_tde_certificates = @client_3.managed_instance_tde_certificates + @capabilities = @client_3.capabilities + @database_operations = @client_3.database_operations + @databases = @client_3.databases @model_classes = ModelClasses.new end @@ -550,24 +550,6 @@ def method_missing(method, *args) end class ModelClasses - def metric_value - Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue - end - def service_objective_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveListResult - end - def data_masking_rule_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleListResult - end - def query_text - Azure::SQL::Mgmt::V2014_04_01::Models::QueryText - end - def database_usage_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsageListResult - end - def transparent_data_encryption_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionListResult - end def database_usage Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsage end @@ -640,26 +622,14 @@ def backup_long_term_retention_vault_list_result def metric_name Azure::SQL::Mgmt::V2014_04_01::Models::MetricName end - def restorable_dropped_database_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabaseListResult - end - def metric - Azure::SQL::Mgmt::V2014_04_01::Models::Metric - end def elastic_pool_per_database_min_dtu_capability Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolPerDatabaseMinDtuCapability end def metric_list_result Azure::SQL::Mgmt::V2014_04_01::Models::MetricListResult end - def metric_availability - Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability - end - def server_table_auditing_policy_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicyListResult - end - def metric_definition - Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition + def restorable_dropped_database_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabaseListResult end def operation_impact Azure::SQL::Mgmt::V2014_04_01::Models::OperationImpact @@ -667,44 +637,53 @@ def operation_impact def metric_definition_list_result Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinitionListResult end + def server_table_auditing_policy_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicyListResult + end + def metric_definition + Azure::SQL::Mgmt::V2014_04_01::Models::MetricDefinition + end def backup_long_term_retention_policy_list_result Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyListResult end - def check_name_availability_request - Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityRequest - end - def query_metric - Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric + def metric_availability + Azure::SQL::Mgmt::V2014_04_01::Models::MetricAvailability end def service_tier_advisor_list_result Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisorListResult end + def query_statistic + Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic + end def query_interval Azure::SQL::Mgmt::V2014_04_01::Models::QueryInterval end - def recoverable_database_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult + def query_metric + Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetric end - def query_statistic - Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatistic + def elastic_pool_dtu_capability + Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDtuCapability end def database_table_auditing_policy_list_result Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicyListResult end - def top_queries - Azure::SQL::Mgmt::V2014_04_01::Models::TopQueries + def recoverable_database_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabaseListResult end - def elastic_pool_dtu_capability - Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDtuCapability + def query_statistic_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult end def top_queries_list_result Azure::SQL::Mgmt::V2014_04_01::Models::TopQueriesListResult end + def top_queries + Azure::SQL::Mgmt::V2014_04_01::Models::TopQueries + end def advisor_list_result Azure::SQL::Mgmt::V2014_04_01::Models::AdvisorListResult end - def query_statistic_list_result - Azure::SQL::Mgmt::V2014_04_01::Models::QueryStatisticListResult + def restorable_dropped_database + Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabase end def backup_long_term_retention_vault Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionVault @@ -712,8 +691,8 @@ def backup_long_term_retention_vault def recoverable_database Azure::SQL::Mgmt::V2014_04_01::Models::RecoverableDatabase end - def restorable_dropped_database - Azure::SQL::Mgmt::V2014_04_01::Models::RestorableDroppedDatabase + def transparent_data_encryption + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption end def server_connection_policy Azure::SQL::Mgmt::V2014_04_01::Models::ServerConnectionPolicy @@ -721,35 +700,35 @@ def server_connection_policy def service_tier_advisor Azure::SQL::Mgmt::V2014_04_01::Models::ServiceTierAdvisor end - def transparent_data_encryption - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryption - end def recommended_index Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndex end - def database_security_alert_policy - Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy - end - def data_masking_policy - Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy - end def data_masking_rule Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRule end + def database_security_alert_policy + Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseSecurityAlertPolicy + end def disaster_recovery_configuration Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfiguration end + def data_masking_policy + Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingPolicy + end def geo_backup_policy Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicy end def import_export_response Azure::SQL::Mgmt::V2014_04_01::Models::ImportExportResponse end + def recommended_elastic_pool + Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedElasticPool + end def import_request Azure::SQL::Mgmt::V2014_04_01::Models::ImportRequest end - def recommended_elastic_pool - Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedElasticPool + def server_communication_link + Azure::SQL::Mgmt::V2014_04_01::Models::ServerCommunicationLink end def replication_link Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationLink @@ -757,20 +736,17 @@ def replication_link def server_azure_adadministrator Azure::SQL::Mgmt::V2014_04_01::Models::ServerAzureADAdministrator end - def server_communication_link - Azure::SQL::Mgmt::V2014_04_01::Models::ServerCommunicationLink + def metric_value + Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue + end + def transparent_data_encryption_activity + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity end def service_objective Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjective end - def elastic_pool_activity - Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolActivity - end - def elastic_pool_database_activity - Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity - end - def transparent_data_encryption_activity - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivity + def metric + Azure::SQL::Mgmt::V2014_04_01::Models::Metric end def database_connection_policy Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseConnectionPolicy @@ -778,14 +754,17 @@ def database_connection_policy def database_table_auditing_policy Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseTableAuditingPolicy end - def server_table_auditing_policy - Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy + def elastic_pool_activity + Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolActivity + end + def elastic_pool_database_activity + Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolDatabaseActivity end def backup_long_term_retention_policy_state Azure::SQL::Mgmt::V2014_04_01::Models::BackupLongTermRetentionPolicyState end - def max_size_units - Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits + def server_table_auditing_policy + Azure::SQL::Mgmt::V2014_04_01::Models::ServerTableAuditingPolicy end def check_name_availability_reason Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityReason @@ -796,8 +775,8 @@ def server_connection_type def database_edition Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseEdition end - def service_objective_name - Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveName + def max_size_units + Azure::SQL::Mgmt::V2014_04_01::Models::MaxSizeUnits end def transparent_data_encryption_status Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionStatus @@ -811,20 +790,17 @@ def recommended_index_state def recommended_index_type Azure::SQL::Mgmt::V2014_04_01::Models::RecommendedIndexType end - def read_scale - Azure::SQL::Mgmt::V2014_04_01::Models::ReadScale - end def security_alert_policy_email_account_admins Azure::SQL::Mgmt::V2014_04_01::Models::SecurityAlertPolicyEmailAccountAdmins end def security_alert_policy_use_server_default Azure::SQL::Mgmt::V2014_04_01::Models::SecurityAlertPolicyUseServerDefault end - def data_masking_state - Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingState + def read_scale + Azure::SQL::Mgmt::V2014_04_01::Models::ReadScale end - def data_masking_rule_state - Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleState + def service_objective_name + Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveName end def data_masking_function Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingFunction @@ -835,11 +811,11 @@ def disaster_recovery_configuration_status def disaster_recovery_configuration_auto_failover Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationAutoFailover end - def disaster_recovery_configuration_failover_policy - Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationFailoverPolicy + def data_masking_state + Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingState end - def disaster_recovery_configuration_role - Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationRole + def check_name_availability_request + Azure::SQL::Mgmt::V2014_04_01::Models::CheckNameAvailabilityRequest end def elastic_pool_edition Azure::SQL::Mgmt::V2014_04_01::Models::ElasticPoolEdition @@ -847,20 +823,32 @@ def elastic_pool_edition def geo_backup_policy_state Azure::SQL::Mgmt::V2014_04_01::Models::GeoBackupPolicyState end - def storage_key_type - Azure::SQL::Mgmt::V2014_04_01::Models::StorageKeyType + def disaster_recovery_configuration_failover_policy + Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationFailoverPolicy end - def authentication_type - Azure::SQL::Mgmt::V2014_04_01::Models::AuthenticationType + def disaster_recovery_configuration_role + Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfigurationRole + end + def data_masking_rule_state + Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleState + end + def unit_definition_type + Azure::SQL::Mgmt::V2014_04_01::Models::UnitDefinitionType end def unit_type Azure::SQL::Mgmt::V2014_04_01::Models::UnitType end + def storage_key_type + Azure::SQL::Mgmt::V2014_04_01::Models::StorageKeyType + end + def authentication_type + Azure::SQL::Mgmt::V2014_04_01::Models::AuthenticationType + end def primary_aggregation_type Azure::SQL::Mgmt::V2014_04_01::Models::PrimaryAggregationType end - def unit_definition_type - Azure::SQL::Mgmt::V2014_04_01::Models::UnitDefinitionType + def server_version + Azure::SQL::Mgmt::V2014_04_01::Models::ServerVersion end def query_aggregation_function Azure::SQL::Mgmt::V2014_04_01::Models::QueryAggregationFunction @@ -874,33 +862,36 @@ def query_observed_metric_type def query_metric_unit Azure::SQL::Mgmt::V2014_04_01::Models::QueryMetricUnit end - def replication_role - Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationRole + def server_state + Azure::SQL::Mgmt::V2014_04_01::Models::ServerState + end + def transparent_data_encryption_activity_status + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivityStatus end def replication_state Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationState end - def server_version - Azure::SQL::Mgmt::V2014_04_01::Models::ServerVersion + def replication_role + Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationRole end - def server_state - Azure::SQL::Mgmt::V2014_04_01::Models::ServerState + def service_objective_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::ServiceObjectiveListResult end - def transparent_data_encryption_activity_status - Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionActivityStatus + def data_masking_rule_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::DataMaskingRuleListResult end - def operation_display - Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationDisplay + def query_text + Azure::SQL::Mgmt::V2014_04_01::Models::QueryText end - def operation - Azure::SQL::Mgmt::V2015_05_01_preview::Models::Operation + def database_usage_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsageListResult + end + def transparent_data_encryption_list_result + Azure::SQL::Mgmt::V2014_04_01::Models::TransparentDataEncryptionListResult end def recommended_action_implementation_info Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImplementationInfo end - def operation_list_result - Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationListResult - end def recommended_action_impact_record Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionImpactRecord end @@ -958,27 +949,15 @@ def recommended_action_metric_info def sync_full_schema_properties_list_result Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncFullSchemaPropertiesListResult end - def firewall_rule_list_result - Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRuleListResult - end def server_key_list_result Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKeyListResult end - def virtual_network_rule_list_result - Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleListResult - end def sync_group_log_list_result Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogListResult end - def server_list_result - Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerListResult - end def partner_info Azure::SQL::Mgmt::V2015_05_01_preview::Models::PartnerInfo end - def server_update - Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerUpdate - end def resource_with_writable_name Azure::SQL::Mgmt::V2015_05_01_preview::Models::ResourceWithWritableName end @@ -991,30 +970,36 @@ def sync_group_list_result def sync_agent_list_result Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentListResult end + def operation_display + Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationDisplay + end def failover_group_read_write_endpoint Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupReadWriteEndpoint end - def sync_agent_key_properties - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentKeyProperties + def operation_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationListResult end def sync_full_schema_properties Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncFullSchemaProperties end - def sync_member_list_result - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberListResult + def sync_agent_key_properties + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentKeyProperties end def failover_group_update Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupUpdate end - def sync_agent_linked_database_list_result - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentLinkedDatabaseListResult - end def automatic_tuning_options Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningOptions end def sync_database_id_properties Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDatabaseIdProperties end + def sync_agent_linked_database_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentLinkedDatabaseListResult + end + def sync_member_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberListResult + end def recommended_action Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedAction end @@ -1027,23 +1012,17 @@ def database_automatic_tuning def encryption_protector Azure::SQL::Mgmt::V2015_05_01_preview::Models::EncryptionProtector end - def failover_group - Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup + def operation + Azure::SQL::Mgmt::V2015_05_01_preview::Models::Operation end def proxy_resource_with_writable_name Azure::SQL::Mgmt::V2015_05_01_preview::Models::ProxyResourceWithWritableName end - def firewall_rule - Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRule - end def managed_instance Azure::SQL::Mgmt::V2015_05_01_preview::Models::ManagedInstance end - def server_key - Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKey - end - def server - Azure::SQL::Mgmt::V2015_05_01_preview::Models::Server + def failover_group + Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup end def sync_agent Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgent @@ -1051,17 +1030,26 @@ def sync_agent def sync_agent_linked_database Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentLinkedDatabase end - def sync_group - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroup + def server_update + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerUpdate end - def sync_member - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMember + def server_key + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKey end def subscription_usage Azure::SQL::Mgmt::V2015_05_01_preview::Models::SubscriptionUsage end - def virtual_network_rule - Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule + def auto_execute_status_inherited_from + Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatusInheritedFrom + end + def server + Azure::SQL::Mgmt::V2015_05_01_preview::Models::Server + end + def sync_member + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMember + end + def implementation_method + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ImplementationMethod end def advisor_status Azure::SQL::Mgmt::V2015_05_01_preview::Models::AdvisorStatus @@ -1069,8 +1057,11 @@ def advisor_status def auto_execute_status Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatus end - def auto_execute_status_inherited_from - Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutoExecuteStatusInheritedFrom + def sync_group + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroup + end + def is_retryable + Azure::SQL::Mgmt::V2015_05_01_preview::Models::IsRetryable end def recommended_action_current_state Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionCurrentState @@ -1078,20 +1069,11 @@ def recommended_action_current_state def recommended_action_initiated_by Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionInitiatedBy end - def implementation_method - Azure::SQL::Mgmt::V2015_05_01_preview::Models::ImplementationMethod - end - def is_retryable - Azure::SQL::Mgmt::V2015_05_01_preview::Models::IsRetryable - end - def automatic_tuning_mode - Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningMode - end def automatic_tuning_disabled_reason Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningDisabledReason end - def server_key_type - Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKeyType + def automatic_tuning_mode + Azure::SQL::Mgmt::V2015_05_01_preview::Models::AutomaticTuningMode end def failover_group_replication_role Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroupReplicationRole @@ -1099,14 +1081,8 @@ def failover_group_replication_role def identity_type Azure::SQL::Mgmt::V2015_05_01_preview::Models::IdentityType end - def operation_origin - Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationOrigin - end - def sync_agent_state - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState - end - def sync_member_db_type - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType + def server_key_type + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerKeyType end def sync_group_log_type Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupLogType @@ -1117,89 +1093,38 @@ def sync_conflict_resolution_policy def sync_group_state Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncGroupState end - def sync_direction - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDirection + def sync_agent_state + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncAgentState end - def sync_member_state - Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberState + def sync_member_db_type + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberDbType end def virtual_network_rule_state Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleState end - def job_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult - end - def job_step_action - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction - end - def managed_database_update - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate - end - def managed_database_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseListResult - end - def server_dns_alias_acquisition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasAcquisition - end - def complete_database_restore_definition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::CompleteDatabaseRestoreDefinition - end - def automatic_tuning_server_options - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerOptions - end - def job_agent_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentListResult - end - def sensitivity_label_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelListResult - end - def job_agent_update - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentUpdate - end - def create_database_restore_point_definition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition - end - def long_term_retention_backup_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackupListResult - end - def job_credential_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredentialListResult - end - def restore_point_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult - end - def job_execution_target - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionTarget - end - def job_version_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersionListResult - end - def job_execution_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionListResult - end - def job_schedule - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule + def sync_direction + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncDirection end - def job_target_group_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult + def sync_member_state + Azure::SQL::Mgmt::V2015_05_01_preview::Models::SyncMemberState end - def database_vulnerability_assessment_rule_baseline_item - Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaselineItem + def firewall_rule_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRuleListResult end - def job_step_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepListResult + def firewall_rule + Azure::SQL::Mgmt::V2015_05_01_preview::Models::FirewallRule end - def job_target - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget + def operation_origin + Azure::SQL::Mgmt::V2015_05_01_preview::Models::OperationOrigin end - def server_dns_alias_list_result - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasListResult + def virtual_network_rule_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRuleListResult end - def job_step_output - Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput + def virtual_network_rule + Azure::SQL::Mgmt::V2015_05_01_preview::Models::VirtualNetworkRule end - def import_export_database_definition - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition + def server_list_result + Azure::SQL::Mgmt::V2015_05_01_preview::Models::ServerListResult end def job_step_execution_options Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepExecutionOptions @@ -1213,9 +1138,6 @@ def extended_server_blob_auditing_policy def server_blob_auditing_policy Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerBlobAuditingPolicy end - def database_blob_auditing_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy - end def import_export_operation_result Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportOperationResult end @@ -1225,6 +1147,9 @@ def database_vulnerability_assessment_rule_baseline def data_warehouse_user_activities Azure::SQL::Mgmt::V2017_03_01_preview::Models::DataWarehouseUserActivities end + def restore_point_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointListResult + end def job_agent Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgent end @@ -1234,9 +1159,6 @@ def job_credential def job_execution Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecution end - def job - Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job - end def job_step Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStep end @@ -1249,39 +1171,33 @@ def job_version def long_term_retention_backup Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackup end - def backup_long_term_retention_policy - Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy - end def managed_database Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabase end - def restore_point - Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint - end def sensitivity_label Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabel end - def server_automatic_tuning - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning + def job_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobListResult end def server_dns_alias Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAlias end + def server_automatic_tuning + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerAutomaticTuning + end + def job_schedule + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobSchedule + end def server_security_alert_policy Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerSecurityAlertPolicy end - def blob_auditing_policy_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::BlobAuditingPolicyState - end def job_agent_state Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentState end def job_execution_lifecycle Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionLifecycle end - def provisioning_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState - end def job_target_type Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetType end @@ -1303,14 +1219,41 @@ def job_target_group_membership_type def managed_database_status Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseStatus end + def automatic_tuning_server_mode + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode + end + def automatic_tuning_server_reason + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason + end def managed_database_create_mode Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseCreateMode end + def vulnerability_assessment_policy_baseline_name + Azure::SQL::Mgmt::V2017_03_01_preview::Models::VulnerabilityAssessmentPolicyBaselineName + end + def sensitivity_label_source + Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelSource + end + def long_term_retention_database_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionDatabaseState + end def restore_point_type Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePointType end - def automatic_tuning_server_mode - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerMode + def backup_long_term_retention_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::BackupLongTermRetentionPolicy + end + def database_blob_auditing_policy + Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseBlobAuditingPolicy + end + def job + Azure::SQL::Mgmt::V2017_03_01_preview::Models::Job + end + def restore_point + Azure::SQL::Mgmt::V2017_03_01_preview::Models::RestorePoint + end + def blob_auditing_policy_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::BlobAuditingPolicyState end def automatic_tuning_option_mode_desired Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeDesired @@ -1318,48 +1261,123 @@ def automatic_tuning_option_mode_desired def automatic_tuning_option_mode_actual Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningOptionModeActual end - def automatic_tuning_server_reason - Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerReason + def provisioning_state + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ProvisioningState end def security_alert_policy_state Azure::SQL::Mgmt::V2017_03_01_preview::Models::SecurityAlertPolicyState end - def long_term_retention_database_state - Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionDatabaseState + def job_step_action + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepAction end - def vulnerability_assessment_policy_baseline_name - Azure::SQL::Mgmt::V2017_03_01_preview::Models::VulnerabilityAssessmentPolicyBaselineName + def managed_database_update + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseUpdate end - def sensitivity_label_source - Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelSource + def managed_database_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ManagedDatabaseListResult end - def elastic_pool_edition_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolEditionCapability + def server_dns_alias_acquisition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasAcquisition end - def service_objective_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability + def complete_database_restore_definition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::CompleteDatabaseRestoreDefinition end - def database_operation_list_result - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + def automatic_tuning_server_options + Azure::SQL::Mgmt::V2017_03_01_preview::Models::AutomaticTuningServerOptions + end + def job_agent_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentListResult + end + def sensitivity_label_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::SensitivityLabelListResult + end + def job_agent_update + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobAgentUpdate + end + def create_database_restore_point_definition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::CreateDatabaseRestorePointDefinition + end + def long_term_retention_backup_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::LongTermRetentionBackupListResult + end + def job_credential_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobCredentialListResult + end + def job_execution_target + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionTarget + end + def job_version_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobVersionListResult + end + def job_execution_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobExecutionListResult + end + def job_target_group_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTargetGroupListResult + end + def database_vulnerability_assessment_rule_baseline_item + Azure::SQL::Mgmt::V2017_03_01_preview::Models::DatabaseVulnerabilityAssessmentRuleBaselineItem + end + def job_step_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepListResult + end + def job_target + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobTarget + end + def server_dns_alias_list_result + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ServerDnsAliasListResult + end + def job_step_output + Azure::SQL::Mgmt::V2017_03_01_preview::Models::JobStepOutput + end + def import_export_database_definition + Azure::SQL::Mgmt::V2017_03_01_preview::Models::ImportExportDatabaseDefinition + end + def database_operation + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation + end + def max_size_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeCapability + end + def database_vulnerability_assessment + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessment end def edition_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::EditionCapability end - def resource - Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource + def elastic_pool_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolListResult + end + def elastic_pool_edition_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolEditionCapability + end + def location_capabilities + Azure::SQL::Mgmt::V2017_10_01_preview::Models::LocationCapabilities + end + def management_operation_state + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagementOperationState + end + def database_status + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseStatus + end + def catalog_collation_type + Azure::SQL::Mgmt::V2017_10_01_preview::Models::CatalogCollationType + end + def server_version_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServerVersionCapability + end + def database_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseListResult end def elastic_pool_per_database_min_performance_level_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseMinPerformanceLevelCapability end - def backup_short_term_retention_policy_list_result - Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicyListResult + def service_objective_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServiceObjectiveCapability end def elastic_pool_per_database_max_performance_level_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseMaxPerformanceLevelCapability end - def vulnerability_assessment_recurring_scans_properties - Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentRecurringScansProperties - end def elastic_pool_performance_level_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerformanceLevelCapability end @@ -1372,11 +1390,8 @@ def instance_failover_group_read_only_endpoint def vulnerability_assessment_scan_record_list_result Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanRecordListResult end - def server_version_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ServerVersionCapability - end - def max_size_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeCapability + def backup_short_term_retention_policy_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicyListResult end def managed_instance_vcores_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceVcoresCapability @@ -1384,24 +1399,18 @@ def managed_instance_vcores_capability def max_size_range_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeRangeCapability end - def managed_instance_family_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceFamilyCapability - end - def sku - Azure::SQL::Mgmt::V2017_10_01_preview::Models::Sku - end def managed_instance_edition_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceEditionCapability end def managed_instance_version_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceVersionCapability end + def managed_instance_family_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstanceFamilyCapability + end def elastic_pool_operation_list_result Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolOperationListResult end - def location_capabilities - Azure::SQL::Mgmt::V2017_10_01_preview::Models::LocationCapabilities - end def managed_instance_pair_info Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagedInstancePairInfo end @@ -1411,51 +1420,21 @@ def instance_failover_group_read_write_endpoint def log_size_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::LogSizeCapability end - def database_list_result - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseListResult - end - def license_type_capability - Azure::SQL::Mgmt::V2017_10_01_preview::Models::LicenseTypeCapability - end - def database_update - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseUpdate - end def instance_failover_group_list_result Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupListResult end - def resource_move_definition - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition - end def performance_level_capability Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelCapability end - def elastic_pool_per_database_settings - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseSettings + def license_type_capability + Azure::SQL::Mgmt::V2017_10_01_preview::Models::LicenseTypeCapability end def partner_region_info Azure::SQL::Mgmt::V2017_10_01_preview::Models::PartnerRegionInfo end - def elastic_pool_update - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolUpdate - end - def elastic_pool_list_result - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolListResult - end - def proxy_resource - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ProxyResource - end - def database_operation - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperation - end - def tracked_resource - Azure::SQL::Mgmt::V2017_10_01_preview::Models::TrackedResource - end def elastic_pool_operation Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolOperation end - def database_vulnerability_assessment - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseVulnerabilityAssessment - end def vulnerability_assessment_scan_record Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanRecord end @@ -1465,74 +1444,95 @@ def database_vulnerability_assessment_scans_export def database Azure::SQL::Mgmt::V2017_10_01_preview::Models::Database end + def database_update + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseUpdate + end + def backup_short_term_retention_policy + Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicy + end def elastic_pool Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPool end + def elastic_pool_update + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolUpdate + end + def elastic_pool_per_database_settings + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolPerDatabaseSettings + end def instance_failover_group Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroup end - def backup_short_term_retention_policy - Azure::SQL::Mgmt::V2017_10_01_preview::Models::BackupShortTermRetentionPolicy + def vulnerability_assessment_scan_state + Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanState end def tde_certificate Azure::SQL::Mgmt::V2017_10_01_preview::Models::TdeCertificate end - def management_operation_state - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ManagementOperationState - end def vulnerability_assessment_scan_trigger_type Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanTriggerType end - def vulnerability_assessment_scan_state - Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentScanState + def database_license_type + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseLicenseType end def max_size_unit Azure::SQL::Mgmt::V2017_10_01_preview::Models::MaxSizeUnit end - def log_size_unit - Azure::SQL::Mgmt::V2017_10_01_preview::Models::LogSizeUnit - end - def capability_status - Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus - end - def performance_level_unit - Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelUnit - end - def create_mode - Azure::SQL::Mgmt::V2017_10_01_preview::Models::CreateMode + def sku + Azure::SQL::Mgmt::V2017_10_01_preview::Models::Sku end - def sample_name - Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName + def tracked_resource + Azure::SQL::Mgmt::V2017_10_01_preview::Models::TrackedResource end - def database_status - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseStatus + def database_read_scale + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseReadScale end - def catalog_collation_type - Azure::SQL::Mgmt::V2017_10_01_preview::Models::CatalogCollationType + def proxy_resource + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ProxyResource end - def database_license_type - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseLicenseType + def log_size_unit + Azure::SQL::Mgmt::V2017_10_01_preview::Models::LogSizeUnit end - def database_read_scale - Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseReadScale + def capability_group + Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityGroup end - def elastic_pool_state - Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState + def create_mode + Azure::SQL::Mgmt::V2017_10_01_preview::Models::CreateMode end def elastic_pool_license_type Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolLicenseType end + def instance_failover_group_replication_role + Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupReplicationRole + end def read_write_endpoint_failover_policy Azure::SQL::Mgmt::V2017_10_01_preview::Models::ReadWriteEndpointFailoverPolicy end def read_only_endpoint_failover_policy Azure::SQL::Mgmt::V2017_10_01_preview::Models::ReadOnlyEndpointFailoverPolicy end - def instance_failover_group_replication_role - Azure::SQL::Mgmt::V2017_10_01_preview::Models::InstanceFailoverGroupReplicationRole + def capability_status + Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityStatus end - def capability_group - Azure::SQL::Mgmt::V2017_10_01_preview::Models::CapabilityGroup + def resource + Azure::SQL::Mgmt::V2017_10_01_preview::Models::Resource + end + def performance_level_unit + Azure::SQL::Mgmt::V2017_10_01_preview::Models::PerformanceLevelUnit + end + def sample_name + Azure::SQL::Mgmt::V2017_10_01_preview::Models::SampleName + end + def elastic_pool_state + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ElasticPoolState + end + def resource_move_definition + Azure::SQL::Mgmt::V2017_10_01_preview::Models::ResourceMoveDefinition + end + def database_operation_list_result + Azure::SQL::Mgmt::V2017_10_01_preview::Models::DatabaseOperationListResult + end + def vulnerability_assessment_recurring_scans_properties + Azure::SQL::Mgmt::V2017_10_01_preview::Models::VulnerabilityAssessmentRecurringScansProperties end end end diff --git a/azure_sdk/lib/latest/modules/storage_profile_module.rb b/azure_sdk/lib/latest/modules/storage_profile_module.rb index fbc28071f2..dd0df73add 100644 --- a/azure_sdk/lib/latest/modules/storage_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storage_profile_module.rb @@ -7,94 +7,94 @@ module Azure::Profiles::Latest module Storage module Mgmt - Operations = Azure::Storage::Mgmt::V2018_03_01_preview::Operations - Skus = Azure::Storage::Mgmt::V2018_03_01_preview::Skus - StorageAccounts = Azure::Storage::Mgmt::V2018_03_01_preview::StorageAccounts Usages = Azure::Storage::Mgmt::V2018_03_01_preview::Usages BlobContainers = Azure::Storage::Mgmt::V2018_03_01_preview::BlobContainers + Operations = Azure::Storage::Mgmt::V2018_03_01_preview::Operations + StorageAccounts = Azure::Storage::Mgmt::V2018_03_01_preview::StorageAccounts + Skus = Azure::Storage::Mgmt::V2018_03_01_preview::Skus module Models - StorageAccountListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListResult - StorageAccountListKeysResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListKeysResult - Dimension = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Dimension - StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountRegenerateKeyParameters - ServiceSpecification = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSpecification - StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountUpdateParameters - OperationListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult - UsageName = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageName + LeaseState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseState + State = Azure::Storage::Mgmt::V2018_03_01_preview::Models::State + Reason = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Reason + Permissions = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Permissions SKUCapability = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SKUCapability - Usage = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Usage - Sku = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Sku - UsageListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult - CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult AccountSasParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountSasParameters - EncryptionService = Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionService ListAccountSasResponse = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListAccountSasResponse KeyVaultProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyVaultProperties + OperationDisplay = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationDisplay ServiceSasParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSasParameters - VirtualNetworkRule = Azure::Storage::Mgmt::V2018_03_01_preview::Models::VirtualNetworkRule ListServiceSasResponse = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListServiceSasResponse - NetworkRuleSet = Azure::Storage::Mgmt::V2018_03_01_preview::Models::NetworkRuleSet - EncryptionServices = Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionServices - Encryption = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Encryption - Endpoints = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Endpoints - IPRule = Azure::Storage::Mgmt::V2018_03_01_preview::Models::IPRule - StorageAccountKey = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountKey - Identity = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Identity - MetricSpecification = Azure::Storage::Mgmt::V2018_03_01_preview::Models::MetricSpecification - StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCheckNameAvailabilityParameters - ManagementPoliciesRulesSetParameter = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter + OperationListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult StorageSkuListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageSkuListResult - ListContainerItems = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItems - StorageAccountCreateParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCreateParameters + ManagementPoliciesRulesSetParameter = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter LegalHold = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHold - OperationDisplay = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationDisplay - LegalHoldProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHoldProperties Restriction = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Restriction - Resource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Resource - TagProperty = Azure::Storage::Mgmt::V2018_03_01_preview::Models::TagProperty - Operation = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Operation + IPRule = Azure::Storage::Mgmt::V2018_03_01_preview::Models::IPRule UpdateHistoryProperty = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UpdateHistoryProperty - CustomDomain = Azure::Storage::Mgmt::V2018_03_01_preview::Models::CustomDomain ImmutabilityPolicyProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyProperties - StorageAccount = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccount + TagProperty = Azure::Storage::Mgmt::V2018_03_01_preview::Models::TagProperty + LegalHoldProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHoldProperties + NetworkRuleSet = Azure::Storage::Mgmt::V2018_03_01_preview::Models::NetworkRuleSet + ListContainerItems = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItems + Operation = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Operation + Identity = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Identity StorageAccountManagementPolicies = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies - ProxyResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProxyResource - TrackedResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::TrackedResource AzureEntityResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AzureEntityResource - BlobContainer = Azure::Storage::Mgmt::V2018_03_01_preview::Models::BlobContainer + StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCheckNameAvailabilityParameters + ServiceSpecification = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSpecification + Sku = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Sku + StorageAccountListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListResult + EncryptionService = Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionService + StorageAccountListKeysResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListKeysResult + Dimension = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Dimension + StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountRegenerateKeyParameters + Endpoints = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Endpoints + StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountUpdateParameters + MetricSpecification = Azure::Storage::Mgmt::V2018_03_01_preview::Models::MetricSpecification + UsageName = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageName + Encryption = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Encryption + Usage = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Usage + EncryptionServices = Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionServices + UsageListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult + CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult + Resource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Resource + StorageAccountCreateParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCreateParameters + StorageAccount = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccount + VirtualNetworkRule = Azure::Storage::Mgmt::V2018_03_01_preview::Models::VirtualNetworkRule + SkuTier = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuTier + StorageAccountKey = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountKey ImmutabilityPolicy = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicy + TrackedResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::TrackedResource + CustomDomain = Azure::Storage::Mgmt::V2018_03_01_preview::Models::CustomDomain + ProxyResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProxyResource + Bypass = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Bypass + Kind = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Kind + SkuName = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuName + BlobContainer = Azure::Storage::Mgmt::V2018_03_01_preview::Models::BlobContainer + Action = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Action ListContainerItem = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItem ReasonCode = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ReasonCode - SkuName = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuName - SkuTier = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuTier - Kind = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Kind - Reason = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Reason KeySource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeySource - Action = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Action - State = Azure::Storage::Mgmt::V2018_03_01_preview::Models::State - Bypass = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Bypass + KeyPermission = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyPermission DefaultAction = Azure::Storage::Mgmt::V2018_03_01_preview::Models::DefaultAction - AccessTier = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccessTier + SignedResourceTypes = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResourceTypes ProvisioningState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProvisioningState AccountStatus = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountStatus - KeyPermission = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyPermission - UsageUnit = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageUnit - Services = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Services - SignedResourceTypes = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResourceTypes - Permissions = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Permissions - HttpProtocol = Azure::Storage::Mgmt::V2018_03_01_preview::Models::HttpProtocol - SignedResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResource PublicAccess = Azure::Storage::Mgmt::V2018_03_01_preview::Models::PublicAccess - LeaseStatus = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseStatus - LeaseState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseState + UsageUnit = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageUnit + AccessTier = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccessTier LeaseDuration = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseDuration ImmutabilityPolicyState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyState ImmutabilityPolicyUpdateType = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyUpdateType + HttpProtocol = Azure::Storage::Mgmt::V2018_03_01_preview::Models::HttpProtocol + SignedResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResource + LeaseStatus = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseStatus + Services = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Services end class StorageManagementClass - attr_reader :operations, :skus, :storage_accounts, :usages, :blob_containers, :configurable, :base_url, :options, :model_classes + attr_reader :usages, :blob_containers, :operations, :storage_accounts, :skus, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -104,11 +104,11 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations - @skus = @client_0.skus - @storage_accounts = @client_0.storage_accounts @usages = @client_0.usages @blob_containers = @client_0.blob_containers + @operations = @client_0.operations + @storage_accounts = @client_0.storage_accounts + @skus = @client_0.skus @model_classes = ModelClasses.new end @@ -127,191 +127,200 @@ def method_missing(method, *args) end class ModelClasses - def storage_account_list_result - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListResult - end - def storage_account_list_keys_result - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListKeysResult - end - def dimension - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Dimension - end - def storage_account_regenerate_key_parameters - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountRegenerateKeyParameters - end - def service_specification - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSpecification + def lease_state + Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseState end - def storage_account_update_parameters - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountUpdateParameters + def state + Azure::Storage::Mgmt::V2018_03_01_preview::Models::State end - def operation_list_result - Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult + def reason + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Reason end - def usage_name - Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageName + def permissions + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Permissions end def skucapability Azure::Storage::Mgmt::V2018_03_01_preview::Models::SKUCapability end - def usage - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Usage - end - def sku - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Sku - end - def usage_list_result - Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult - end - def check_name_availability_result - Azure::Storage::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult - end def account_sas_parameters Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountSasParameters end - def encryption_service - Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionService - end def list_account_sas_response Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListAccountSasResponse end def key_vault_properties Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyVaultProperties end + def operation_display + Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationDisplay + end def service_sas_parameters Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSasParameters end - def virtual_network_rule - Azure::Storage::Mgmt::V2018_03_01_preview::Models::VirtualNetworkRule - end def list_service_sas_response Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListServiceSasResponse end - def network_rule_set - Azure::Storage::Mgmt::V2018_03_01_preview::Models::NetworkRuleSet + def operation_list_result + Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult end - def encryption_services - Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionServices + def storage_sku_list_result + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageSkuListResult end - def encryption - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Encryption + def management_policies_rules_set_parameter + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter end - def endpoints - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Endpoints + def legal_hold + Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHold + end + def restriction + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Restriction end def iprule Azure::Storage::Mgmt::V2018_03_01_preview::Models::IPRule end - def storage_account_key - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountKey + def update_history_property + Azure::Storage::Mgmt::V2018_03_01_preview::Models::UpdateHistoryProperty + end + def immutability_policy_properties + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyProperties + end + def tag_property + Azure::Storage::Mgmt::V2018_03_01_preview::Models::TagProperty + end + def legal_hold_properties + Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHoldProperties + end + def network_rule_set + Azure::Storage::Mgmt::V2018_03_01_preview::Models::NetworkRuleSet + end + def list_container_items + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItems + end + def operation + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Operation end def identity Azure::Storage::Mgmt::V2018_03_01_preview::Models::Identity end - def metric_specification - Azure::Storage::Mgmt::V2018_03_01_preview::Models::MetricSpecification + def storage_account_management_policies + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies + end + def azure_entity_resource + Azure::Storage::Mgmt::V2018_03_01_preview::Models::AzureEntityResource end def storage_account_check_name_availability_parameters Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCheckNameAvailabilityParameters end - def management_policies_rules_set_parameter - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter + def service_specification + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSpecification end - def storage_sku_list_result - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageSkuListResult + def sku + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Sku end - def list_container_items - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItems + def storage_account_list_result + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListResult end - def storage_account_create_parameters - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCreateParameters + def encryption_service + Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionService end - def legal_hold - Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHold + def storage_account_list_keys_result + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListKeysResult end - def operation_display - Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationDisplay + def dimension + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Dimension end - def legal_hold_properties - Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHoldProperties + def storage_account_regenerate_key_parameters + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountRegenerateKeyParameters end - def restriction - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Restriction + def endpoints + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Endpoints end - def resource - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Resource + def storage_account_update_parameters + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountUpdateParameters end - def tag_property - Azure::Storage::Mgmt::V2018_03_01_preview::Models::TagProperty + def metric_specification + Azure::Storage::Mgmt::V2018_03_01_preview::Models::MetricSpecification end - def operation - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Operation + def usage_name + Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageName end - def update_history_property - Azure::Storage::Mgmt::V2018_03_01_preview::Models::UpdateHistoryProperty + def encryption + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Encryption end - def custom_domain - Azure::Storage::Mgmt::V2018_03_01_preview::Models::CustomDomain + def usage + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Usage end - def immutability_policy_properties - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyProperties + def encryption_services + Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionServices end - def storage_account - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccount + def usage_list_result + Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult end - def storage_account_management_policies - Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies + def check_name_availability_result + Azure::Storage::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult end - def proxy_resource - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProxyResource + def resource + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Resource end - def tracked_resource - Azure::Storage::Mgmt::V2018_03_01_preview::Models::TrackedResource + def storage_account_create_parameters + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCreateParameters end - def azure_entity_resource - Azure::Storage::Mgmt::V2018_03_01_preview::Models::AzureEntityResource + def storage_account + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccount end - def blob_container - Azure::Storage::Mgmt::V2018_03_01_preview::Models::BlobContainer + def virtual_network_rule + Azure::Storage::Mgmt::V2018_03_01_preview::Models::VirtualNetworkRule + end + def sku_tier + Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuTier + end + def storage_account_key + Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountKey end def immutability_policy Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicy end - def list_container_item - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItem + def tracked_resource + Azure::Storage::Mgmt::V2018_03_01_preview::Models::TrackedResource end - def reason_code - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ReasonCode + def custom_domain + Azure::Storage::Mgmt::V2018_03_01_preview::Models::CustomDomain end - def sku_name - Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuName + def proxy_resource + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProxyResource end - def sku_tier - Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuTier + def bypass + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Bypass end def kind Azure::Storage::Mgmt::V2018_03_01_preview::Models::Kind end - def reason - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Reason + def sku_name + Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuName end - def key_source - Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeySource + def blob_container + Azure::Storage::Mgmt::V2018_03_01_preview::Models::BlobContainer end def action Azure::Storage::Mgmt::V2018_03_01_preview::Models::Action end - def state - Azure::Storage::Mgmt::V2018_03_01_preview::Models::State + def list_container_item + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItem end - def bypass - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Bypass + def reason_code + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ReasonCode + end + def key_source + Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeySource + end + def key_permission + Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyPermission end def default_action Azure::Storage::Mgmt::V2018_03_01_preview::Models::DefaultAction end - def access_tier - Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccessTier + def signed_resource_types + Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResourceTypes end def provisioning_state Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProvisioningState @@ -319,20 +328,23 @@ def provisioning_state def account_status Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountStatus end - def key_permission - Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyPermission + def public_access + Azure::Storage::Mgmt::V2018_03_01_preview::Models::PublicAccess end def usage_unit Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageUnit end - def services - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Services + def access_tier + Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccessTier end - def signed_resource_types - Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResourceTypes + def lease_duration + Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseDuration end - def permissions - Azure::Storage::Mgmt::V2018_03_01_preview::Models::Permissions + def immutability_policy_state + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyState + end + def immutability_policy_update_type + Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyUpdateType end def http_protocol Azure::Storage::Mgmt::V2018_03_01_preview::Models::HttpProtocol @@ -340,23 +352,11 @@ def http_protocol def signed_resource Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResource end - def public_access - Azure::Storage::Mgmt::V2018_03_01_preview::Models::PublicAccess - end def lease_status Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseStatus end - def lease_state - Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseState - end - def lease_duration - Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseDuration - end - def immutability_policy_state - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyState - end - def immutability_policy_update_type - Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyUpdateType + def services + Azure::Storage::Mgmt::V2018_03_01_preview::Models::Services end end end diff --git a/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb b/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb index 4eea5339b1..1ab3a1f9a3 100644 --- a/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb @@ -7,7 +7,6 @@ module Azure::Profiles::Latest module StorSimple8000Series module Mgmt - Operations = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Operations Managers = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Managers AccessControlRecords = Azure::StorSimple8000Series::Mgmt::V2017_06_01::AccessControlRecords Alerts = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Alerts @@ -15,40 +14,23 @@ module Mgmt CloudAppliances = Azure::StorSimple8000Series::Mgmt::V2017_06_01::CloudAppliances Devices = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Devices DeviceSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::DeviceSettings - BackupPolicies = Azure::StorSimple8000Series::Mgmt::V2017_06_01::BackupPolicies BackupSchedules = Azure::StorSimple8000Series::Mgmt::V2017_06_01::BackupSchedules - Backups = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Backups HardwareComponentGroups = Azure::StorSimple8000Series::Mgmt::V2017_06_01::HardwareComponentGroups - Jobs = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Jobs VolumeContainers = Azure::StorSimple8000Series::Mgmt::V2017_06_01::VolumeContainers Volumes = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Volumes StorageAccountCredentials = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorageAccountCredentials + Jobs = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Jobs + Operations = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Operations + BackupPolicies = Azure::StorSimple8000Series::Mgmt::V2017_06_01::BackupPolicies + Backups = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Backups module Models - TargetEligibilityResult = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult - FailoverTarget = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTarget - AccessControlRecordList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecordList - FailoverTargetsList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTargetsList - AlertSource = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSource - Feature = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Feature - RemoteManagementSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettings - FailoverRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverRequest - AlertList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertList - VolumeFailoverMetadata = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeFailoverMetadata - AsymmetricEncryptedSecret = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AsymmetricEncryptedSecret - VolumeContainerFailoverMetadata = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerFailoverMetadata - AvailableProviderOperation = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperation - FailoverSetEligibilityResult = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetEligibilityResult - BackupElement = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupElement - FailoverSet = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSet - BackupFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupFilter FailoverSetsList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetsList VolumeContainerList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerList TargetEligibilityErrorMessage = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityErrorMessage ScheduleRecurrence = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleRecurrence SymmetricEncryptedSecret = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SymmetricEncryptedSecret NicIPv6 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv6 - Time = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time AcsConfiguration = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AcsConfiguration StorageAccountCredentialList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredentialList AlertErrorDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertErrorDetails @@ -64,10 +46,8 @@ module Models NetworkSettingsPatch = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkSettingsPatch NetworkInterfaceData0Settings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkInterfaceData0Settings HardwareComponentGroupList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentGroupList - Resource = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Resource JobErrorItem = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorItem DeviceDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceDetails - JobErrorDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorDetails RemoteManagementSettingsPatch = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettingsPatch JobStage = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStage DevicePatch = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DevicePatch @@ -76,9 +56,9 @@ module Models JobFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobFilter JobList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobList AvailableProviderOperationList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperationList - Key = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Key BackupList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupList ListFailoverTargetsRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ListFailoverTargetsRequest + Key = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Key BackupScheduleList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupScheduleList ManagerIntrinsicSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerIntrinsicSettings BandwidthSettingList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSettingList @@ -96,98 +76,118 @@ module Models AvailableProviderOperationDisplay = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperationDisplay MetricData = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricData BackupPolicyList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyList - MetricName = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricName ChapSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ChapSettings - MetricDimension = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension SecondaryDNSSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecondaryDNSSettings - MetricDefinition = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinition - DeviceList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceList + JobErrorDetails = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorDetails MetricDefinitionList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinitionList - VolumeList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList + DeviceList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceList + MetricDefinition = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinition + MetricName = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricName MetricNameFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricNameFilter - VmImage = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage - MetricFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricFilter AlertFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertFilter - Metrics = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Metrics - DataStatistics = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DataStatistics + VolumeList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList MetricList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricList + VmImage = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage + MetricFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricFilter BandwidthSchedule = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSchedule - NicIPv4 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv4 + DataStatistics = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DataStatistics AccessControlRecord = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecord - Alert = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Alert AlertSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSettings - Backup = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Backup + NicIPv4 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv4 BackupPolicy = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicy BackupSchedule = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupSchedule - BandwidthSetting = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSetting + Backup = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Backup CloudApplianceConfiguration = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfiguration ConfigureDeviceRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ConfigureDeviceRequest - ControllerPowerStateChangeRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateChangeRequest + BandwidthSetting = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSetting Device = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Device - EncryptionSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionSettings HardwareComponentGroup = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentGroup - Job = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Job - Manager = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Manager + ControllerPowerStateChangeRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateChangeRequest ManagerExtendedInfo = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerExtendedInfo - NetworkSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkSettings - SecuritySettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettings + Metrics = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Metrics + Manager = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Manager StorageAccountCredential = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential - TimeSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TimeSettings - Updates = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Updates - Volume = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Volume + Job = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Job + SecuritySettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettings VolumeContainer = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainer - AlertScope = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertScope - AlertSourceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSourceType - AlertSeverity = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSeverity + TimeSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TimeSettings + NetworkSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkSettings AlertStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus + AlertScope = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertScope + Resource = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Resource + Updates = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Updates AlertEmailNotificationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertEmailNotificationStatus - EncryptionAlgorithm = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm - BackupType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupType BackupJobCreationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupJobCreationType - VolumeType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeType - ScheduledBackupStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduledBackupStatus + AlertSourceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSourceType + BackupType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupType BackupPolicyCreationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyCreationType RecurrenceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RecurrenceType - DayOfWeek = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek + VolumeType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeType + ScheduledBackupStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduledBackupStatus + EncryptionAlgorithm = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm + Volume = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Volume ScheduleStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleStatus - Kind = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Kind ControllerPowerStateAction = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateAction ControllerId = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerId - ControllerStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerStatus + Kind = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Kind DeviceConfigurationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceConfigurationStatus - DeviceStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus + DayOfWeek = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek DeviceType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceType VirtualMachineApiType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VirtualMachineApiType - AuthorizationEligibility = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationEligibility + ControllerStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerStatus AuthorizationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationStatus - InEligibilityCategory = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::InEligibilityCategory + DeviceStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus EncryptionStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionStatus KeyRolloverStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::KeyRolloverStatus - TargetEligibilityStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityStatus + AuthorizationEligibility = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationEligibility TargetEligibilityResultCode = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResultCode - FeatureSupportStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus + InEligibilityCategory = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::InEligibilityCategory HardwareComponentStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentStatus - JobStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStatus - JobType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobType ManagerType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerType - MetricUnit = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricUnit + TargetEligibilityStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityStatus MetricAggregationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAggregationType - NetInterfaceId = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceId + FeatureSupportStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus NetInterfaceStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceStatus ISCSIAndCloudStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ISCSIAndCloudStatus - NetworkMode = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkMode - AuthenticationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthenticationType + MetricUnit = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricUnit RemoteManagementModeConfiguration = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementModeConfiguration - SslStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SslStatus + NetInterfaceId = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceId VolumeStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeStatus - OperationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OperationStatus - BackupStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupStatus MonitoringStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MonitoringStatus + JobStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStatus + SslStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SslStatus + MetricDimension = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension OwnerShipStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus + NetworkMode = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkMode + Alert = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Alert + AuthenticationType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthenticationType + OperationStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OperationStatus + BackupStatus = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupStatus + AlertSeverity = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSeverity + Time = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time + JobType = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobType + EncryptionSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionSettings + TargetEligibilityResult = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult + FailoverTarget = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTarget + AccessControlRecordList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecordList + FailoverTargetsList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTargetsList + AlertSource = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSource + Feature = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Feature + RemoteManagementSettings = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettings + FailoverRequest = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverRequest + AlertList = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertList + VolumeFailoverMetadata = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeFailoverMetadata + AsymmetricEncryptedSecret = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AsymmetricEncryptedSecret + VolumeContainerFailoverMetadata = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerFailoverMetadata + AvailableProviderOperation = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperation + FailoverSetEligibilityResult = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetEligibilityResult + BackupElement = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupElement + FailoverSet = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSet + BackupFilter = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupFilter end class StorSimple8000SeriesManagementClass - attr_reader :operations, :managers, :access_control_records, :alerts, :bandwidth_settings, :cloud_appliances, :devices, :device_settings, :backup_policies, :backup_schedules, :backups, :hardware_component_groups, :jobs, :volume_containers, :volumes, :storage_account_credentials, :configurable, :base_url, :options, :model_classes + attr_reader :managers, :access_control_records, :alerts, :bandwidth_settings, :cloud_appliances, :devices, :device_settings, :backup_schedules, :hardware_component_groups, :volume_containers, :volumes, :storage_account_credentials, :jobs, :operations, :backup_policies, :backups, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -197,7 +197,6 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @operations = @client_0.operations @managers = @client_0.managers @access_control_records = @client_0.access_control_records @alerts = @client_0.alerts @@ -205,14 +204,15 @@ def initialize(configurable, base_url=nil, options=nil) @cloud_appliances = @client_0.cloud_appliances @devices = @client_0.devices @device_settings = @client_0.device_settings - @backup_policies = @client_0.backup_policies @backup_schedules = @client_0.backup_schedules - @backups = @client_0.backups @hardware_component_groups = @client_0.hardware_component_groups - @jobs = @client_0.jobs @volume_containers = @client_0.volume_containers @volumes = @client_0.volumes @storage_account_credentials = @client_0.storage_account_credentials + @jobs = @client_0.jobs + @operations = @client_0.operations + @backup_policies = @client_0.backup_policies + @backups = @client_0.backups @model_classes = ModelClasses.new end @@ -231,57 +231,6 @@ def method_missing(method, *args) end class ModelClasses - def target_eligibility_result - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult - end - def failover_target - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTarget - end - def access_control_record_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecordList - end - def failover_targets_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTargetsList - end - def alert_source - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSource - end - def feature - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Feature - end - def remote_management_settings - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettings - end - def failover_request - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverRequest - end - def alert_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertList - end - def volume_failover_metadata - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeFailoverMetadata - end - def asymmetric_encrypted_secret - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AsymmetricEncryptedSecret - end - def volume_container_failover_metadata - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerFailoverMetadata - end - def available_provider_operation - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperation - end - def failover_set_eligibility_result - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetEligibilityResult - end - def backup_element - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupElement - end - def failover_set - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSet - end - def backup_filter - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupFilter - end def failover_sets_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetsList end @@ -300,9 +249,6 @@ def symmetric_encrypted_secret def nic_ipv6 Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv6 end - def time - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time - end def acs_configuration Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AcsConfiguration end @@ -348,18 +294,12 @@ def network_interface_data0_settings def hardware_component_group_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentGroupList end - def resource - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Resource - end def job_error_item Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorItem end def device_details Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceDetails end - def job_error_details - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorDetails - end def remote_management_settings_patch Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettingsPatch end @@ -384,15 +324,15 @@ def job_list def available_provider_operation_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperationList end - def key - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Key - end def backup_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupList end def list_failover_targets_request Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ListFailoverTargetsRequest end + def key + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Key + end def backup_schedule_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupScheduleList end @@ -444,68 +384,59 @@ def metric_data def backup_policy_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyList end - def metric_name - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricName - end def chap_settings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ChapSettings end - def metric_dimension - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension - end def secondary_dnssettings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecondaryDNSSettings end - def metric_definition - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinition + def job_error_details + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobErrorDetails + end + def metric_definition_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinitionList end def device_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceList end - def metric_definition_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinitionList + def metric_definition + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDefinition end - def volume_list - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList + def metric_name + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricName end def metric_name_filter Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricNameFilter end - def vm_image - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage - end - def metric_filter - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricFilter - end def alert_filter Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertFilter end - def metrics - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Metrics - end - def data_statistics - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DataStatistics + def volume_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeList end def metric_list Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricList end + def vm_image + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VmImage + end + def metric_filter + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricFilter + end def bandwidth_schedule Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSchedule end - def nic_ipv4 - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv4 + def data_statistics + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DataStatistics end def access_control_record Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecord end - def alert - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Alert - end def alert_settings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSettings end - def backup - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Backup + def nic_ipv4 + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NicIPv4 end def backup_policy Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicy @@ -513,8 +444,8 @@ def backup_policy def backup_schedule Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupSchedule end - def bandwidth_setting - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSetting + def backup + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Backup end def cloud_appliance_configuration Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::CloudApplianceConfiguration @@ -522,71 +453,74 @@ def cloud_appliance_configuration def configure_device_request Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ConfigureDeviceRequest end - def controller_power_state_change_request - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateChangeRequest + def bandwidth_setting + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BandwidthSetting end def device Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Device end - def encryption_settings - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionSettings - end def hardware_component_group Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentGroup end - def job - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Job + def controller_power_state_change_request + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateChangeRequest + end + def manager_extended_info + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerExtendedInfo + end + def metrics + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Metrics end def manager Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Manager end - def manager_extended_info - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerExtendedInfo + def storage_account_credential + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential end - def network_settings - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkSettings + def job + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Job end def security_settings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SecuritySettings end - def storage_account_credential - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::StorageAccountCredential + def volume_container + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainer end def time_settings Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TimeSettings end - def updates - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Updates - end - def volume - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Volume + def network_settings + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkSettings end - def volume_container - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainer + def alert_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus end def alert_scope Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertScope end - def alert_source_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSourceType - end - def alert_severity - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSeverity + def resource + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Resource end - def alert_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertStatus + def updates + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Updates end def alert_email_notification_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertEmailNotificationStatus end - def encryption_algorithm - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm + def backup_job_creation_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupJobCreationType + end + def alert_source_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSourceType end def backup_type Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupType end - def backup_job_creation_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupJobCreationType + def backup_policy_creation_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyCreationType + end + def recurrence_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RecurrenceType end def volume_type Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeType @@ -594,35 +528,29 @@ def volume_type def scheduled_backup_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduledBackupStatus end - def backup_policy_creation_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupPolicyCreationType - end - def recurrence_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RecurrenceType + def encryption_algorithm + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionAlgorithm end - def day_of_week - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek + def volume + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Volume end def schedule_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ScheduleStatus end - def kind - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Kind - end def controller_power_state_action Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerPowerStateAction end def controller_id Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerId end - def controller_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerStatus + def kind + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Kind end def device_configuration_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceConfigurationStatus end - def device_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus + def day_of_week + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DayOfWeek end def device_type Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceType @@ -630,14 +558,14 @@ def device_type def virtual_machine_api_type Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VirtualMachineApiType end - def authorization_eligibility - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationEligibility + def controller_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ControllerStatus end def authorization_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationStatus end - def in_eligibility_category - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::InEligibilityCategory + def device_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DeviceStatus end def encryption_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionStatus @@ -645,35 +573,29 @@ def encryption_status def key_rollover_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::KeyRolloverStatus end - def target_eligibility_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityStatus + def authorization_eligibility + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthorizationEligibility end def target_eligibility_result_code Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResultCode end - def feature_support_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus + def in_eligibility_category + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::InEligibilityCategory end def hardware_component_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::HardwareComponentStatus end - def job_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStatus - end - def job_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobType - end def manager_type Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ManagerType end - def metric_unit - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricUnit + def target_eligibility_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityStatus end def metric_aggregation_type Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricAggregationType end - def net_interface_id - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceId + def feature_support_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FeatureSupportStatus end def net_interface_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceStatus @@ -681,32 +603,110 @@ def net_interface_status def iscsiand_cloud_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ISCSIAndCloudStatus end - def network_mode - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkMode - end - def authentication_type - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthenticationType + def metric_unit + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricUnit end def remote_management_mode_configuration Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementModeConfiguration end - def ssl_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SslStatus + def net_interface_id + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetInterfaceId end def volume_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeStatus end + def monitoring_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MonitoringStatus + end + def job_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobStatus + end + def ssl_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::SslStatus + end + def metric_dimension + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MetricDimension + end + def owner_ship_status + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus + end + def network_mode + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::NetworkMode + end + def alert + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Alert + end + def authentication_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AuthenticationType + end def operation_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OperationStatus end def backup_status Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupStatus end - def monitoring_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::MonitoringStatus + def alert_severity + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSeverity end - def owner_ship_status - Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::OwnerShipStatus + def time + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Time + end + def job_type + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::JobType + end + def encryption_settings + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::EncryptionSettings + end + def target_eligibility_result + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult + end + def failover_target + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTarget + end + def access_control_record_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AccessControlRecordList + end + def failover_targets_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverTargetsList + end + def alert_source + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertSource + end + def feature + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::Feature + end + def remote_management_settings + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::RemoteManagementSettings + end + def failover_request + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverRequest + end + def alert_list + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AlertList + end + def volume_failover_metadata + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeFailoverMetadata + end + def asymmetric_encrypted_secret + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AsymmetricEncryptedSecret + end + def volume_container_failover_metadata + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::VolumeContainerFailoverMetadata + end + def available_provider_operation + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::AvailableProviderOperation + end + def failover_set_eligibility_result + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSetEligibilityResult + end + def backup_element + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupElement + end + def failover_set + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverSet + end + def backup_filter + Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::BackupFilter end end end diff --git a/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb index f6c5f72855..dce0ef6a9d 100644 --- a/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb @@ -7,25 +7,21 @@ module Azure::Profiles::Latest module StreamAnalytics module Mgmt + Transformations = Azure::StreamAnalytics::Mgmt::V2016_03_01::Transformations + Functions = Azure::StreamAnalytics::Mgmt::V2016_03_01::Functions Operations = Azure::StreamAnalytics::Mgmt::V2016_03_01::Operations + Subscriptions = Azure::StreamAnalytics::Mgmt::V2016_03_01::Subscriptions StreamingJobs = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamingJobs Inputs = Azure::StreamAnalytics::Mgmt::V2016_03_01::Inputs Outputs = Azure::StreamAnalytics::Mgmt::V2016_03_01::Outputs - Transformations = Azure::StreamAnalytics::Mgmt::V2016_03_01::Transformations - Functions = Azure::StreamAnalytics::Mgmt::V2016_03_01::Functions - Subscriptions = Azure::StreamAnalytics::Mgmt::V2016_03_01::Subscriptions module Models AzureMachineLearningWebServiceInputColumn = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputColumn - OperationDisplay = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay AzureMachineLearningWebServiceInputs = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputs - OperationListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationListResult ReferenceInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputDataSource - Serialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Serialization FunctionBinding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionBinding Diagnostics = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Diagnostics FunctionOutput = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionOutput - Sku = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku DiagnosticCondition = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DiagnosticCondition OutputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputDataSource InputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::InputProperties @@ -36,9 +32,6 @@ module Models StartStreamingJobParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StartStreamingJobParameters BlobDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobDataSourceProperties FunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionRetrieveDefaultDefinitionParameters - SubResource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubResource - Operation = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation - StorageAccount = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StorageAccount AzureSqlDatabaseDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseDataSourceProperties StreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputDataSource StreamingJobListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJobListResult @@ -46,9 +39,7 @@ module Models AzureMachineLearningWebServiceOutputColumn = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceOutputColumn OAuthBasedDataSourceProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OAuthBasedDataSourceProperties ResourceTestStatus = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ResourceTestStatus - ErrorResponse = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse SubscriptionQuotasListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubscriptionQuotasListResult - Resource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource FunctionListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionListResult Input = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Input Transformation = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Transformation @@ -75,23 +66,32 @@ module Models ReferenceInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputProperties IoTHubStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource EventHubStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubStreamInputDataSource + OperationDisplay = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay BlobStreamInputDataSource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobStreamInputDataSource - StreamInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties + OperationListResult = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationListResult AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters - JavaScriptFunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionRetrieveDefaultDefinitionParameters + StreamInputProperties = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties SubscriptionQuota = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubscriptionQuota - SkuName = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName - OutputStartMode = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputStartMode + JavaScriptFunctionRetrieveDefaultDefinitionParameters = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionRetrieveDefaultDefinitionParameters EventsOutOfOrderPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy - OutputErrorPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy + OutputStartMode = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputStartMode + Serialization = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Serialization + ErrorResponse = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse CompatibilityLevel = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CompatibilityLevel JsonOutputSerializationFormat = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat + OutputErrorPolicy = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy + Operation = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation Encoding = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding UdfType = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::UdfType + Sku = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku + SubResource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubResource + StorageAccount = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StorageAccount + SkuName = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName + Resource = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource end class StreamAnalyticsManagementClass - attr_reader :operations, :streaming_jobs, :inputs, :outputs, :transformations, :functions, :subscriptions, :configurable, :base_url, :options, :model_classes + attr_reader :transformations, :functions, :operations, :subscriptions, :streaming_jobs, :inputs, :outputs, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -101,13 +101,13 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @transformations = @client_0.transformations + @functions = @client_0.functions @operations = @client_0.operations + @subscriptions = @client_0.subscriptions @streaming_jobs = @client_0.streaming_jobs @inputs = @client_0.inputs @outputs = @client_0.outputs - @transformations = @client_0.transformations - @functions = @client_0.functions - @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -129,21 +129,12 @@ class ModelClasses def azure_machine_learning_web_service_input_column Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputColumn end - def operation_display - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay - end def azure_machine_learning_web_service_inputs Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputs end - def operation_list_result - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationListResult - end def reference_input_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ReferenceInputDataSource end - def serialization - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Serialization - end def function_binding Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionBinding end @@ -153,9 +144,6 @@ def diagnostics def function_output Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionOutput end - def sku - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku - end def diagnostic_condition Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::DiagnosticCondition end @@ -186,15 +174,6 @@ def blob_data_source_properties def function_retrieve_default_definition_parameters Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionRetrieveDefaultDefinitionParameters end - def sub_resource - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubResource - end - def operation - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation - end - def storage_account - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StorageAccount - end def azure_sql_database_data_source_properties Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureSqlDatabaseDataSourceProperties end @@ -216,15 +195,9 @@ def oauth_based_data_source_properties def resource_test_status Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ResourceTestStatus end - def error_response - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse - end def subscription_quotas_list_result Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubscriptionQuotasListResult end - def resource - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource - end def function_list_result Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::FunctionListResult end @@ -303,32 +276,38 @@ def io_thub_stream_input_data_source def event_hub_stream_input_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventHubStreamInputDataSource end + def operation_display + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationDisplay + end def blob_stream_input_data_source Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::BlobStreamInputDataSource end - def stream_input_properties - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties + def operation_list_result + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OperationListResult end def azure_machine_learning_web_service_function_retrieve_default_definition_parameters Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters end - def java_script_function_retrieve_default_definition_parameters - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionRetrieveDefaultDefinitionParameters + def stream_input_properties + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamInputProperties end def subscription_quota Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubscriptionQuota end - def sku_name - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName + def java_script_function_retrieve_default_definition_parameters + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JavaScriptFunctionRetrieveDefaultDefinitionParameters + end + def events_out_of_order_policy + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy end def output_start_mode Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputStartMode end - def events_out_of_order_policy - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::EventsOutOfOrderPolicy + def serialization + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Serialization end - def output_error_policy - Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy + def error_response + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::ErrorResponse end def compatibility_level Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::CompatibilityLevel @@ -336,12 +315,33 @@ def compatibility_level def json_output_serialization_format Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::JsonOutputSerializationFormat end + def output_error_policy + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::OutputErrorPolicy + end + def operation + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Operation + end def encoding Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Encoding end def udf_type Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::UdfType end + def sku + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Sku + end + def sub_resource + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SubResource + end + def storage_account + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StorageAccount + end + def sku_name + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::SkuName + end + def resource + Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Resource + end end end end diff --git a/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb b/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb index 19c99b6d0d..ddee2ce257 100644 --- a/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb +++ b/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb @@ -11,11 +11,11 @@ module Mgmt Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants module Models + Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription - Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState @@ -53,6 +53,9 @@ def method_missing(method, *args) end class ModelClasses + def location + Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location + end def subscription Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription end @@ -65,9 +68,6 @@ def location_list_result def tenant_id_description Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription end - def location - Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location - end def tenant_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult end diff --git a/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb index 649f71fe5b..810d2011d6 100644 --- a/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb @@ -8,24 +8,24 @@ module Azure::Profiles::Latest module TextAnalytics module Models - DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage - MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput - LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem KeyPhraseBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResultItem LanguageBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResult KeyPhraseBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResult SentimentBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem - ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse SentimentBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResult BatchInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::BatchInput MatchRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MatchRecord ErrorRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorRecord EntityRecord = Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntityRecord - Input = Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input + LanguageBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem EntitiesBatchResultItem = Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResultItem InternalError = Azure::CognitiveServices::TextAnalytics::V2_0::Models::InternalError EntitiesBatchResult = Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResult MultiLanguageBatchInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageBatchInput + DetectedLanguage = Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage + Input = Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input + MultiLanguageInput = Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput + ErrorResponse = Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse end class TextAnalyticsDataClass @@ -57,15 +57,6 @@ def method_missing(method, *args) end class ModelClasses - def detected_language - Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage - end - def multi_language_input - Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput - end - def language_batch_result_item - Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem - end def key_phrase_batch_result_item Azure::CognitiveServices::TextAnalytics::V2_0::Models::KeyPhraseBatchResultItem end @@ -78,9 +69,6 @@ def key_phrase_batch_result def sentiment_batch_result_item Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem end - def error_response - Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse - end def sentiment_batch_result Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResult end @@ -96,8 +84,8 @@ def error_record def entity_record Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntityRecord end - def input - Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input + def language_batch_result_item + Azure::CognitiveServices::TextAnalytics::V2_0::Models::LanguageBatchResultItem end def entities_batch_result_item Azure::CognitiveServices::TextAnalytics::V2_0::Models::EntitiesBatchResultItem @@ -111,6 +99,18 @@ def entities_batch_result def multi_language_batch_input Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageBatchInput end + def detected_language + Azure::CognitiveServices::TextAnalytics::V2_0::Models::DetectedLanguage + end + def input + Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input + end + def multi_language_input + Azure::CognitiveServices::TextAnalytics::V2_0::Models::MultiLanguageInput + end + def error_response + Azure::CognitiveServices::TextAnalytics::V2_0::Models::ErrorResponse + end end end end diff --git a/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb b/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb index af284da9bd..911d888765 100644 --- a/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb +++ b/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb @@ -8,17 +8,27 @@ module Azure::Profiles::Latest module TrafficManager module Mgmt Endpoints = Azure::TrafficManager::Mgmt::V2018_04_01::Endpoints - Profiles = Azure::TrafficManager::Mgmt::V2018_04_01::Profiles GeographicHierarchies = Azure::TrafficManager::Mgmt::V2018_04_01::GeographicHierarchies HeatMap = Azure::TrafficManager::Mgmt::V2018_04_01::HeatMap + Profiles = Azure::TrafficManager::Mgmt::V2018_04_01::Profiles TrafficManagerUserMetricsKeys = Azure::TrafficManager::Mgmt::V2018_04_01::TrafficManagerUserMetricsKeys module Models + EndpointMonitorStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointMonitorStatus + ProfileStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileStatus + MonitorProtocol = Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorProtocol + TrafficViewEnrollmentStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficViewEnrollmentStatus + TrafficRoutingMethod = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficRoutingMethod + TrackedResource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrackedResource + ProxyResource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProxyResource + ProfileListResult = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileListResult + Resource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Resource MonitorConfigCustomHeadersItem = Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorConfigCustomHeadersItem MonitorConfigExpectedStatusCodeRangesItem = Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorConfigExpectedStatusCodeRangesItem EndpointPropertiesSubnetsItem = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointPropertiesSubnetsItem MonitorConfig = Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorConfig HeatMapEndpoint = Azure::TrafficManager::Mgmt::V2018_04_01::Models::HeatMapEndpoint + Profile = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Profile EndpointPropertiesCustomHeadersItem = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointPropertiesCustomHeadersItem QueryExperience = Azure::TrafficManager::Mgmt::V2018_04_01::Models::QueryExperience DeleteOperationResult = Azure::TrafficManager::Mgmt::V2018_04_01::Models::DeleteOperationResult @@ -26,27 +36,17 @@ module Models Region = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Region DnsConfig = Azure::TrafficManager::Mgmt::V2018_04_01::Models::DnsConfig CheckTrafficManagerRelativeDnsNameAvailabilityParameters = Azure::TrafficManager::Mgmt::V2018_04_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters - ProfileListResult = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileListResult - Resource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Resource - TrafficManagerNameAvailability = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerNameAvailability HeatMapModel = Azure::TrafficManager::Mgmt::V2018_04_01::Models::HeatMapModel UserMetricsModel = Azure::TrafficManager::Mgmt::V2018_04_01::Models::UserMetricsModel + TrafficManagerNameAvailability = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerNameAvailability Endpoint = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Endpoint - TrackedResource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrackedResource - Profile = Azure::TrafficManager::Mgmt::V2018_04_01::Models::Profile - ProxyResource = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProxyResource - TrafficManagerGeographicHierarchy = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerGeographicHierarchy EndpointStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointStatus - EndpointMonitorStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointMonitorStatus + TrafficManagerGeographicHierarchy = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerGeographicHierarchy ProfileMonitorStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileMonitorStatus - MonitorProtocol = Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorProtocol - ProfileStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileStatus - TrafficRoutingMethod = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficRoutingMethod - TrafficViewEnrollmentStatus = Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficViewEnrollmentStatus end class TrafficManagerManagementClass - attr_reader :endpoints, :profiles, :geographic_hierarchies, :heat_map, :traffic_manager_user_metrics_keys, :configurable, :base_url, :options, :model_classes + attr_reader :endpoints, :geographic_hierarchies, :heat_map, :profiles, :traffic_manager_user_metrics_keys, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -57,9 +57,9 @@ def initialize(configurable, base_url=nil, options=nil) end add_telemetry(@client_0) @endpoints = @client_0.endpoints - @profiles = @client_0.profiles @geographic_hierarchies = @client_0.geographic_hierarchies @heat_map = @client_0.heat_map + @profiles = @client_0.profiles @traffic_manager_user_metrics_keys = @client_0.traffic_manager_user_metrics_keys @model_classes = ModelClasses.new @@ -79,6 +79,33 @@ def method_missing(method, *args) end class ModelClasses + def endpoint_monitor_status + Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointMonitorStatus + end + def profile_status + Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileStatus + end + def monitor_protocol + Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorProtocol + end + def traffic_view_enrollment_status + Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficViewEnrollmentStatus + end + def traffic_routing_method + Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficRoutingMethod + end + def tracked_resource + Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrackedResource + end + def proxy_resource + Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProxyResource + end + def profile_list_result + Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileListResult + end + def resource + Azure::TrafficManager::Mgmt::V2018_04_01::Models::Resource + end def monitor_config_custom_headers_item Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorConfigCustomHeadersItem end @@ -94,6 +121,9 @@ def monitor_config def heat_map_endpoint Azure::TrafficManager::Mgmt::V2018_04_01::Models::HeatMapEndpoint end + def profile + Azure::TrafficManager::Mgmt::V2018_04_01::Models::Profile + end def endpoint_properties_custom_headers_item Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointPropertiesCustomHeadersItem end @@ -115,57 +145,27 @@ def dns_config def check_traffic_manager_relative_dns_name_availability_parameters Azure::TrafficManager::Mgmt::V2018_04_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters end - def profile_list_result - Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileListResult - end - def resource - Azure::TrafficManager::Mgmt::V2018_04_01::Models::Resource - end - def traffic_manager_name_availability - Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerNameAvailability - end def heat_map_model Azure::TrafficManager::Mgmt::V2018_04_01::Models::HeatMapModel end def user_metrics_model Azure::TrafficManager::Mgmt::V2018_04_01::Models::UserMetricsModel end + def traffic_manager_name_availability + Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerNameAvailability + end def endpoint Azure::TrafficManager::Mgmt::V2018_04_01::Models::Endpoint end - def tracked_resource - Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrackedResource - end - def profile - Azure::TrafficManager::Mgmt::V2018_04_01::Models::Profile - end - def proxy_resource - Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProxyResource - end - def traffic_manager_geographic_hierarchy - Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerGeographicHierarchy - end def endpoint_status Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointStatus end - def endpoint_monitor_status - Azure::TrafficManager::Mgmt::V2018_04_01::Models::EndpointMonitorStatus + def traffic_manager_geographic_hierarchy + Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficManagerGeographicHierarchy end def profile_monitor_status Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileMonitorStatus end - def monitor_protocol - Azure::TrafficManager::Mgmt::V2018_04_01::Models::MonitorProtocol - end - def profile_status - Azure::TrafficManager::Mgmt::V2018_04_01::Models::ProfileStatus - end - def traffic_routing_method - Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficRoutingMethod - end - def traffic_view_enrollment_status - Azure::TrafficManager::Mgmt::V2018_04_01::Models::TrafficViewEnrollmentStatus - end end end end diff --git a/azure_sdk/lib/latest/modules/videosearch_profile_module.rb b/azure_sdk/lib/latest/modules/videosearch_profile_module.rb index 20f1613c62..b91b2f96f3 100644 --- a/azure_sdk/lib/latest/modules/videosearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/videosearch_profile_module.rb @@ -9,38 +9,38 @@ module VideoSearch VideosOperations = Azure::CognitiveServices::VideoSearch::V1_0::VideosOperations module Models - TrendingVideosCategory = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory - TrendingVideosSubcategory = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory - Error = Azure::CognitiveServices::VideoSearch::V1_0::Models::Error - PivotSuggestions = Azure::CognitiveServices::VideoSearch::V1_0::Models::PivotSuggestions + VideoLength = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoLength + VideoQueryScenario = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoQueryScenario + VideoResolution = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoResolution + VideoPricing = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoPricing + ResponseBase = Azure::CognitiveServices::VideoSearch::V1_0::Models::ResponseBase QueryContext = Azure::CognitiveServices::VideoSearch::V1_0::Models::QueryContext Query = Azure::CognitiveServices::VideoSearch::V1_0::Models::Query - VideosModule = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideosModule - TrendingVideosTile = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosTile - ResponseBase = Azure::CognitiveServices::VideoSearch::V1_0::Models::ResponseBase - ImageObject = Azure::CognitiveServices::VideoSearch::V1_0::Models::ImageObject VideoObject = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoObject - Videos = Azure::CognitiveServices::VideoSearch::V1_0::Models::Videos - Response = Azure::CognitiveServices::VideoSearch::V1_0::Models::Response - Answer = Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer + VideoInsightModule = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoInsightModule + PivotSuggestions = Azure::CognitiveServices::VideoSearch::V1_0::Models::PivotSuggestions SearchResultsAnswer = Azure::CognitiveServices::VideoSearch::V1_0::Models::SearchResultsAnswer + Identifiable = Azure::CognitiveServices::VideoSearch::V1_0::Models::Identifiable + Answer = Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer Thing = Azure::CognitiveServices::VideoSearch::V1_0::Models::Thing CreativeWork = Azure::CognitiveServices::VideoSearch::V1_0::Models::CreativeWork - MediaObject = Azure::CognitiveServices::VideoSearch::V1_0::Models::MediaObject - Identifiable = Azure::CognitiveServices::VideoSearch::V1_0::Models::Identifiable - ErrorResponse = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse - TrendingVideos = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideos - VideoDetails = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoDetails - VideoQueryScenario = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoQueryScenario ErrorCode = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorCode ErrorSubCode = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorSubCode - Freshness = Azure::CognitiveServices::VideoSearch::V1_0::Models::Freshness - VideoLength = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoLength - VideoPricing = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoPricing - VideoResolution = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoResolution SafeSearch = Azure::CognitiveServices::VideoSearch::V1_0::Models::SafeSearch TextFormat = Azure::CognitiveServices::VideoSearch::V1_0::Models::TextFormat - VideoInsightModule = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoInsightModule + Response = Azure::CognitiveServices::VideoSearch::V1_0::Models::Response + Freshness = Azure::CognitiveServices::VideoSearch::V1_0::Models::Freshness + ImageObject = Azure::CognitiveServices::VideoSearch::V1_0::Models::ImageObject + MediaObject = Azure::CognitiveServices::VideoSearch::V1_0::Models::MediaObject + TrendingVideosCategory = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory + TrendingVideosSubcategory = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory + VideosModule = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideosModule + TrendingVideosTile = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosTile + Videos = Azure::CognitiveServices::VideoSearch::V1_0::Models::Videos + TrendingVideos = Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideos + VideoDetails = Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoDetails + Error = Azure::CognitiveServices::VideoSearch::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse end class VideoSearchDataClass @@ -73,17 +73,20 @@ def method_missing(method, *args) end class ModelClasses - def trending_videos_category - Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory + def video_length + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoLength end - def trending_videos_subcategory - Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory + def video_query_scenario + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoQueryScenario end - def error - Azure::CognitiveServices::VideoSearch::V1_0::Models::Error + def video_resolution + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoResolution end - def pivot_suggestions - Azure::CognitiveServices::VideoSearch::V1_0::Models::PivotSuggestions + def video_pricing + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoPricing + end + def response_base + Azure::CognitiveServices::VideoSearch::V1_0::Models::ResponseBase end def query_context Azure::CognitiveServices::VideoSearch::V1_0::Models::QueryContext @@ -91,56 +94,29 @@ def query_context def query Azure::CognitiveServices::VideoSearch::V1_0::Models::Query end - def videos_module - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideosModule - end - def trending_videos_tile - Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosTile - end - def response_base - Azure::CognitiveServices::VideoSearch::V1_0::Models::ResponseBase - end - def image_object - Azure::CognitiveServices::VideoSearch::V1_0::Models::ImageObject - end def video_object Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoObject end - def videos - Azure::CognitiveServices::VideoSearch::V1_0::Models::Videos - end - def response - Azure::CognitiveServices::VideoSearch::V1_0::Models::Response + def video_insight_module + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoInsightModule end - def answer - Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer + def pivot_suggestions + Azure::CognitiveServices::VideoSearch::V1_0::Models::PivotSuggestions end def search_results_answer Azure::CognitiveServices::VideoSearch::V1_0::Models::SearchResultsAnswer end - def thing - Azure::CognitiveServices::VideoSearch::V1_0::Models::Thing - end - def creative_work - Azure::CognitiveServices::VideoSearch::V1_0::Models::CreativeWork - end - def media_object - Azure::CognitiveServices::VideoSearch::V1_0::Models::MediaObject - end def identifiable Azure::CognitiveServices::VideoSearch::V1_0::Models::Identifiable end - def error_response - Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse - end - def trending_videos - Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideos + def answer + Azure::CognitiveServices::VideoSearch::V1_0::Models::Answer end - def video_details - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoDetails + def thing + Azure::CognitiveServices::VideoSearch::V1_0::Models::Thing end - def video_query_scenario - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoQueryScenario + def creative_work + Azure::CognitiveServices::VideoSearch::V1_0::Models::CreativeWork end def error_code Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorCode @@ -148,26 +124,50 @@ def error_code def error_sub_code Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorSubCode end + def safe_search + Azure::CognitiveServices::VideoSearch::V1_0::Models::SafeSearch + end + def text_format + Azure::CognitiveServices::VideoSearch::V1_0::Models::TextFormat + end + def response + Azure::CognitiveServices::VideoSearch::V1_0::Models::Response + end def freshness Azure::CognitiveServices::VideoSearch::V1_0::Models::Freshness end - def video_length - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoLength + def image_object + Azure::CognitiveServices::VideoSearch::V1_0::Models::ImageObject end - def video_pricing - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoPricing + def media_object + Azure::CognitiveServices::VideoSearch::V1_0::Models::MediaObject end - def video_resolution - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoResolution + def trending_videos_category + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory end - def safe_search - Azure::CognitiveServices::VideoSearch::V1_0::Models::SafeSearch + def trending_videos_subcategory + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosSubcategory end - def text_format - Azure::CognitiveServices::VideoSearch::V1_0::Models::TextFormat + def videos_module + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideosModule end - def video_insight_module - Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoInsightModule + def trending_videos_tile + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosTile + end + def videos + Azure::CognitiveServices::VideoSearch::V1_0::Models::Videos + end + def trending_videos + Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideos + end + def video_details + Azure::CognitiveServices::VideoSearch::V1_0::Models::VideoDetails + end + def error + Azure::CognitiveServices::VideoSearch::V1_0::Models::Error + end + def error_response + Azure::CognitiveServices::VideoSearch::V1_0::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/latest/modules/web_profile_module.rb b/azure_sdk/lib/latest/modules/web_profile_module.rb index da8406ad6d..de34233f96 100644 --- a/azure_sdk/lib/latest/modules/web_profile_module.rb +++ b/azure_sdk/lib/latest/modules/web_profile_module.rb @@ -7,15 +7,15 @@ module Azure::Profiles::Latest module Web module Mgmt + Domains = Azure::Web::Mgmt::V2018_02_01::Domains + Diagnostics = Azure::Web::Mgmt::V2018_02_01::Diagnostics + Provider = Azure::Web::Mgmt::V2018_02_01::Provider AppServiceCertificateOrders = Azure::Web::Mgmt::V2018_02_01::AppServiceCertificateOrders CertificateRegistrationProvider = Azure::Web::Mgmt::V2018_02_01::CertificateRegistrationProvider - Domains = Azure::Web::Mgmt::V2018_02_01::Domains + Certificates = Azure::Web::Mgmt::V2018_02_01::Certificates TopLevelDomains = Azure::Web::Mgmt::V2018_02_01::TopLevelDomains DomainRegistrationProvider = Azure::Web::Mgmt::V2018_02_01::DomainRegistrationProvider - Certificates = Azure::Web::Mgmt::V2018_02_01::Certificates DeletedWebApps = Azure::Web::Mgmt::V2018_02_01::DeletedWebApps - Diagnostics = Azure::Web::Mgmt::V2018_02_01::Diagnostics - Provider = Azure::Web::Mgmt::V2018_02_01::Provider Recommendations = Azure::Web::Mgmt::V2018_02_01::Recommendations WebApps = Azure::Web::Mgmt::V2018_02_01::WebApps AppServiceEnvironments = Azure::Web::Mgmt::V2018_02_01::AppServiceEnvironments @@ -24,7 +24,6 @@ module Mgmt module Models DiagnosticDetectorCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorCollection AppServiceCertificate = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate - Operation = Azure::Web::Mgmt::V2018_02_01::Models::Operation AppServiceCertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection ResourceMetricName = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricName DeploymentCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentCollection @@ -42,14 +41,12 @@ module Models ProcessThreadInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfoCollection AppServicePlanCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanCollection SiteCloneabilityCriterion = Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneabilityCriterion - LocalizableString = Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString SiteCloneability = Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneability CsmUsageQuota = Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuota MSDeployLogEntry = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntry CsmUsageQuotaCollection = Azure::Web::Mgmt::V2018_02_01::Models::CsmUsageQuotaCollection HttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::HttpLogsConfig DeletedSite = Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite - ManagedServiceIdentity = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity ErrorEntity = Azure::Web::Mgmt::V2018_02_01::Models::ErrorEntity CloningInfo = Azure::Web::Mgmt::V2018_02_01::Models::CloningInfo IdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::IdentifierCollection @@ -64,138 +61,133 @@ module Models AutoHealTriggers = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealTriggers ResourceMetric = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetric SiteLimits = Azure::Web::Mgmt::V2018_02_01::Models::SiteLimits + Operation = Azure::Web::Mgmt::V2018_02_01::Models::Operation ResourceMetricCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricCollection Experiments = Azure::Web::Mgmt::V2018_02_01::Models::Experiments - ResourceMetricDefinitionCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinitionCollection VirtualApplication = Azure::Web::Mgmt::V2018_02_01::Models::VirtualApplication WebAppCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebAppCollection + ResourceMetricDefinitionCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinitionCollection SiteMachineKey = Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey - DeletedWebAppCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection NameValuePair = Azure::Web::Mgmt::V2018_02_01::Models::NameValuePair Solution = Azure::Web::Mgmt::V2018_02_01::Models::Solution + DeletedWebAppCollection = Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection HostNameSslState = Azure::Web::Mgmt::V2018_02_01::Models::HostNameSslState - DetectorAbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod Capability = Azure::Web::Mgmt::V2018_02_01::Models::Capability AbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::AbnormalTimePeriod + DetectorAbnormalTimePeriod = Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod SkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::SkuDescription - TriggeredJobHistoryCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection - Resource = Azure::Web::Mgmt::V2018_02_01::Models::Resource DiagnosticMetricSample = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample DefaultErrorResponseError = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseError + TriggeredJobHistoryCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection DiagnosticMetricSet = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet - NameIdentifier = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier - DataSource = Azure::Web::Mgmt::V2018_02_01::Models::DataSource - MetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability ResponseMetaData = Azure::Web::Mgmt::V2018_02_01::Models::ResponseMetaData - MetricSpecification = Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification AnalysisData = Azure::Web::Mgmt::V2018_02_01::Models::AnalysisData CsmOperationDescriptionProperties = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescriptionProperties TriggeredWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobCollection CsmOperationDescription = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescription - DataTableResponseColumn = Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn + NameIdentifier = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier Address = Azure::Web::Mgmt::V2018_02_01::Models::Address - DataTableResponseObject = Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject + MetricSpecification = Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification + DataTableResponseColumn = Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn HostName = Azure::Web::Mgmt::V2018_02_01::Models::HostName - DetectorInfo = Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo SlotDifferenceCollection = Azure::Web::Mgmt::V2018_02_01::Models::SlotDifferenceCollection Rendering = Azure::Web::Mgmt::V2018_02_01::Models::Rendering - DomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection + DataSource = Azure::Web::Mgmt::V2018_02_01::Models::DataSource + DataTableResponseObject = Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject DiagnosticData = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticData - FunctionEnvelopeCollection = Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection - CsmSlotEntity = Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity + DetectorInfo = Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo SnapshotCollection = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotCollection - DetectorResponseCollection = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection - NameIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection + FunctionEnvelopeCollection = Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection + DomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection CsmPublishingProfileOptions = Azure::Web::Mgmt::V2018_02_01::Models::CsmPublishingProfileOptions - TldLegalAgreementCollection = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection - DiagnosticAnalysisCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection + DetectorResponseCollection = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection + CsmSlotEntity = Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity TopLevelDomainAgreementOption = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainAgreementOption - ContinuousWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection - EnabledConfig = Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig + TldLegalAgreementCollection = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection + NameIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection DiagnosticCategoryCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection - AppServiceCertificateOrderCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection - PrivateAccessVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork + ContinuousWebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection + DiagnosticAnalysisCollection = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection WebAppInstanceCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebAppInstanceCollection - PerfMonSet = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet - ProcessModuleInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection + AppServiceCertificateOrderCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection + EnabledConfig = Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig StackMinorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion - ResourceMetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability - StackMajorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion + PerfMonSet = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet + PrivateAccessVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork SiteConfigurationSnapshotInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfoCollection - ApplicationStack = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack - SlotSwapStatus = Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus + ResourceMetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability + ProcessModuleInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection ApplicationStackCollection = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStackCollection - ApiDefinitionInfo = Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo - ResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection + ApplicationStack = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack + StackMajorVersion = Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion SlowRequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::SlowRequestsBasedTrigger - RecommendationCollection = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection - AutoHealRules = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules + ApiDefinitionInfo = Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo + SlotSwapStatus = Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus HybridConnectionCollection = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionCollection - VirtualDirectory = Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory - WorkerPoolCollection = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection + RecommendationCollection = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection + ResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection ConnStringInfo = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo - BillingMeterCollection = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection - HostNameBindingCollection = Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection + VirtualDirectory = Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory + AutoHealRules = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules CsmMoveResourceEnvelope = Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope - SiteExtensionInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection - UsageCollection = Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection + BillingMeterCollection = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection + WorkerPoolCollection = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection DefaultErrorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponse - HostingEnvironmentDeploymentInfo = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo - Dimension = Azure::Web::Mgmt::V2018_02_01::Models::Dimension - DeploymentLocations = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations + SiteExtensionInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection + HostNameBindingCollection = Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection CsmOperationDisplay = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDisplay - GeoRegionCollection = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection + HostingEnvironmentDeploymentInfo = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo + UsageCollection = Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection Contact = Azure::Web::Mgmt::V2018_02_01::Models::Contact - GlobalCsmSkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription + GeoRegionCollection = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection + DeploymentLocations = Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations DomainAvailablilityCheckResult = Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult StampCapacityCollection = Azure::Web::Mgmt::V2018_02_01::Models::StampCapacityCollection - DomainOwnershipIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection + GlobalCsmSkuDescription = Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription PremierAddOnOfferCollection = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection TldLegalAgreement = Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreement - ResourceNameAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability + DomainOwnershipIdentifierCollection = Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection TopLevelDomainCollection = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainCollection + Dimension = Azure::Web::Mgmt::V2018_02_01::Models::Dimension + ResourceNameAvailability = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability + SkuInfos = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos ResourceNameAvailabilityRequest = Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest PerfMonCounterCollection = Azure::Web::Mgmt::V2018_02_01::Models::PerfMonCounterCollection - SkuInfos = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos + SourceControlCollection = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection PublicCertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateCollection SkuInfoCollection = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfoCollection - ProxyOnlyResource = Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource - SourceControlCollection = Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection + RampUpRule = Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule AutoHealCustomAction = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealCustomAction ValidateRequest = Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest - RampUpRule = Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule + ValidateResponse = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse ValidateResponseError = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponseError SiteConfig = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfig - ValidateResponse = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse + MetricAvailabilily = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily DefaultErrorResponseErrorDetailsItem = Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseErrorDetailsItem + HostingEnvironmentDiagnostics = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics + AzureTableStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig + DomainPurchaseConsent = Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent + RequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger SkuInfo = Azure::Web::Mgmt::V2018_02_01::Models::SkuInfo + FileSystemApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemApplicationLogsConfig + SkuCapacity = Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity ServiceSpecification = Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification - MetricAvailabilily = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily - DomainPurchaseConsent = Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent - HostingEnvironmentDiagnostics = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics DomainRecommendationSearchParameters = Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters - FileSystemApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemApplicationLogsConfig - CertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection - AzureTableStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig + DatabaseBackupSetting = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting + ApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig SiteConfigResourceCollection = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection AzureBlobStorageApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig - RequestsBasedTrigger = Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger - ApplicationLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig - SkuCapacity = Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity - AzureBlobStorageHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig CsmOperationCollection = Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationCollection - DatabaseBackupSetting = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting - FileSystemHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig - AppServiceEnvironmentCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection HostingEnvironmentProfile = Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentProfile BackupItemCollection = Azure::Web::Mgmt::V2018_02_01::Models::BackupItemCollection - LogSpecification = Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification - BackupSchedule = Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule - SiteSealRequest = Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest + AppServiceEnvironmentCollection = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection AddressResponse = Azure::Web::Mgmt::V2018_02_01::Models::AddressResponse DomainControlCenterSsoRequest = Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest - ConnStringValueTypePair = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair + FileSystemHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig HandlerMapping = Azure::Web::Mgmt::V2018_02_01::Models::HandlerMapping + AzureBlobStorageHttpLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig + ConnStringValueTypePair = Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair + SiteSealRequest = Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest WebJobCollection = Azure::Web::Mgmt::V2018_02_01::Models::WebJobCollection AppServiceCertificateResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource AppServiceCertificateOrder = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder @@ -204,113 +196,110 @@ module Models CertificateEmail = Azure::Web::Mgmt::V2018_02_01::Models::CertificateEmail CertificateOrderAction = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderAction ReissueCertificateOrderRequest = Azure::Web::Mgmt::V2018_02_01::Models::ReissueCertificateOrderRequest - RenewCertificateOrderRequest = Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest + BackupSchedule = Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule VnetRoute = Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute VnetInfo = Azure::Web::Mgmt::V2018_02_01::Models::VnetInfo VnetGateway = Azure::Web::Mgmt::V2018_02_01::Models::VnetGateway + RenewCertificateOrderRequest = Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest + LogSpecification = Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification + HybridConnectionKey = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionKey User = Azure::Web::Mgmt::V2018_02_01::Models::User - Snapshot = Azure::Web::Mgmt::V2018_02_01::Models::Snapshot ResourceMetricDefinition = Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition PushSettings = Azure::Web::Mgmt::V2018_02_01::Models::PushSettings - Identifier = Azure::Web::Mgmt::V2018_02_01::Models::Identifier - HybridConnectionKey = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionKey - HybridConnection = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnection + DomainPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::DomainPatchResource Site = Azure::Web::Mgmt::V2018_02_01::Models::Site AppServicePlan = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlan - Domain = Azure::Web::Mgmt::V2018_02_01::Models::Domain DomainOwnershipIdentifier = Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifier - DomainPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::DomainPatchResource + AnalysisDefinition = Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition TopLevelDomain = Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomain - Certificate = Azure::Web::Mgmt::V2018_02_01::Models::Certificate CertificatePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::CertificatePatchResource DetectorDefinition = Azure::Web::Mgmt::V2018_02_01::Models::DetectorDefinition - AnalysisDefinition = Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition + DiagnosticDetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse DetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse - DiagnosticAnalysis = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis + LocalizableString = Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString DiagnosticCategory = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory - DiagnosticDetectorResponse = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse + GeoRegion = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion Recommendation = Azure::Web::Mgmt::V2018_02_01::Models::Recommendation RecommendationRule = Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule - BillingMeter = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter - GeoRegion = Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion + DiagnosticAnalysis = Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis + Certificate = Azure::Web::Mgmt::V2018_02_01::Models::Certificate PremierAddOnOffer = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer SourceControl = Azure::Web::Mgmt::V2018_02_01::Models::SourceControl VnetParameters = Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters - VnetValidationTestFailure = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure + BillingMeter = Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter VnetValidationFailureDetails = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationFailureDetails BackupItem = Azure::Web::Mgmt::V2018_02_01::Models::BackupItem - BackupRequest = Azure::Web::Mgmt::V2018_02_01::Models::BackupRequest ConnectionStringDictionary = Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringDictionary ContinuousWebJob = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJob - CustomHostnameAnalysisResult = Azure::Web::Mgmt::V2018_02_01::Models::CustomHostnameAnalysisResult + VnetValidationTestFailure = Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure DeletedAppRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest - Deployment = Azure::Web::Mgmt::V2018_02_01::Models::Deployment FunctionEnvelope = Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelope FunctionSecrets = Azure::Web::Mgmt::V2018_02_01::Models::FunctionSecrets HostNameBinding = Azure::Web::Mgmt::V2018_02_01::Models::HostNameBinding - MSDeploy = Azure::Web::Mgmt::V2018_02_01::Models::MSDeploy + CustomHostnameAnalysisResult = Azure::Web::Mgmt::V2018_02_01::Models::CustomHostnameAnalysisResult MSDeployLog = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLog MSDeployStatus = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployStatus MigrateMySqlRequest = Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlRequest MigrateMySqlStatus = Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlStatus - RelayServiceConnectionEntity = Azure::Web::Mgmt::V2018_02_01::Models::RelayServiceConnectionEntity + MSDeploy = Azure::Web::Mgmt::V2018_02_01::Models::MSDeploy NetworkFeatures = Azure::Web::Mgmt::V2018_02_01::Models::NetworkFeatures PremierAddOn = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOn PremierAddOnPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnPatchResource PrivateAccess = Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess - ProcessThreadInfo = Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo + RelayServiceConnectionEntity = Azure::Web::Mgmt::V2018_02_01::Models::RelayServiceConnectionEntity ProcessModuleInfo = Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfo ProcessInfo = Azure::Web::Mgmt::V2018_02_01::Models::ProcessInfo PublicCertificate = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificate - RestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::RestoreRequest SiteAuthSettings = Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings - SiteConfigResource = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource - SiteConfigurationSnapshotInfo = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo + ProcessThreadInfo = Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo + MetricAvailability = Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability SiteExtensionInfo = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfo SiteInstance = Azure::Web::Mgmt::V2018_02_01::Models::SiteInstance SiteLogsConfig = Azure::Web::Mgmt::V2018_02_01::Models::SiteLogsConfig - SitePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::SitePatchResource - SitePhpErrorLogFlag = Azure::Web::Mgmt::V2018_02_01::Models::SitePhpErrorLogFlag + SiteConfigResource = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource + SiteConfigurationSnapshotInfo = Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo SiteSourceControl = Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl SlotConfigNamesResource = Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource + CertificateCollection = Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection + SitePatchResource = Azure::Web::Mgmt::V2018_02_01::Models::SitePatchResource + SitePhpErrorLogFlag = Azure::Web::Mgmt::V2018_02_01::Models::SitePhpErrorLogFlag + StorageMigrationResponse = Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationResponse + StringDictionary = Azure::Web::Mgmt::V2018_02_01::Models::StringDictionary SlotDifference = Azure::Web::Mgmt::V2018_02_01::Models::SlotDifference SnapshotRestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::SnapshotRestoreRequest StorageMigrationOptions = Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationOptions - StorageMigrationResponse = Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationResponse - StringDictionary = Azure::Web::Mgmt::V2018_02_01::Models::StringDictionary + TriggeredWebJob = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob + WebJob = Azure::Web::Mgmt::V2018_02_01::Models::WebJob SwiftVirtualNetwork = Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork TriggeredJobRun = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobRun TriggeredJobHistory = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistory - TriggeredWebJob = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob - WebJob = Azure::Web::Mgmt::V2018_02_01::Models::WebJob - AppServiceEnvironmentResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentResource - AppServiceEnvironmentPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentPatchResource - MetricDefinition = Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition - Usage = Azure::Web::Mgmt::V2018_02_01::Models::Usage - WorkerPoolResource = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolResource AppServicePlanPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanPatchResource HybridConnectionLimits = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionLimits + HybridConnection = Azure::Web::Mgmt::V2018_02_01::Models::HybridConnection + AppServiceEnvironmentPatchResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentPatchResource + WorkerPoolResource = Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolResource + MetricDefinition = Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition + RouteType = Azure::Web::Mgmt::V2018_02_01::Models::RouteType KeyVaultSecretStatus = Azure::Web::Mgmt::V2018_02_01::Models::KeyVaultSecretStatus - CertificateProductType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType - ProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState + AppServiceEnvironmentResource = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentResource CertificateOrderStatus = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderStatus CertificateOrderActionType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType - RouteType = Azure::Web::Mgmt::V2018_02_01::Models::RouteType + ScmType = Azure::Web::Mgmt::V2018_02_01::Models::ScmType ManagedServiceIdentityType = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentityType IpFilterTag = Azure::Web::Mgmt::V2018_02_01::Models::IpFilterTag - AutoHealActionType = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + CertificateProductType = Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType ConnectionStringType = Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType - ScmType = Azure::Web::Mgmt::V2018_02_01::Models::ScmType + SslState = Azure::Web::Mgmt::V2018_02_01::Models::SslState ManagedPipelineMode = Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode SiteLoadBalancing = Azure::Web::Mgmt::V2018_02_01::Models::SiteLoadBalancing SupportedTlsVersions = Azure::Web::Mgmt::V2018_02_01::Models::SupportedTlsVersions - FtpsState = Azure::Web::Mgmt::V2018_02_01::Models::FtpsState - SslState = Azure::Web::Mgmt::V2018_02_01::Models::SslState + AutoHealActionType = Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + DomainStatus = Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus HostType = Azure::Web::Mgmt::V2018_02_01::Models::HostType UsageState = Azure::Web::Mgmt::V2018_02_01::Models::UsageState SiteAvailabilityState = Azure::Web::Mgmt::V2018_02_01::Models::SiteAvailabilityState StatusOptions = Azure::Web::Mgmt::V2018_02_01::Models::StatusOptions - DomainStatus = Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus + FtpsState = Azure::Web::Mgmt::V2018_02_01::Models::FtpsState AzureResourceType = Azure::Web::Mgmt::V2018_02_01::Models::AzureResourceType CustomHostNameDnsRecordType = Azure::Web::Mgmt::V2018_02_01::Models::CustomHostNameDnsRecordType HostNameType = Azure::Web::Mgmt::V2018_02_01::Models::HostNameType @@ -320,42 +309,53 @@ module Models InternalLoadBalancingMode = Azure::Web::Mgmt::V2018_02_01::Models::InternalLoadBalancingMode ComputeModeOptions = Azure::Web::Mgmt::V2018_02_01::Models::ComputeModeOptions WorkerSizeOptions = Azure::Web::Mgmt::V2018_02_01::Models::WorkerSizeOptions - AccessControlEntryAction = Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction - OperationStatus = Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus - IssueType = Azure::Web::Mgmt::V2018_02_01::Models::IssueType + Domain = Azure::Web::Mgmt::V2018_02_01::Models::Domain SolutionType = Azure::Web::Mgmt::V2018_02_01::Models::SolutionType - RenderingType = Azure::Web::Mgmt::V2018_02_01::Models::RenderingType + OperationStatus = Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus ResourceScopeType = Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType NotificationLevel = Azure::Web::Mgmt::V2018_02_01::Models::NotificationLevel Channels = Azure::Web::Mgmt::V2018_02_01::Models::Channels - AppServicePlanRestrictions = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions + AccessControlEntryAction = Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction InAvailabilityReasonType = Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType - CheckNameResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes + RenderingType = Azure::Web::Mgmt::V2018_02_01::Models::RenderingType ValidateResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes LogLevel = Azure::Web::Mgmt::V2018_02_01::Models::LogLevel - BackupItemStatus = Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus - DatabaseType = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType + IssueType = Azure::Web::Mgmt::V2018_02_01::Models::IssueType + AppServicePlanRestrictions = Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions FrequencyUnit = Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit - ContinuousWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus + CheckNameResourceTypes = Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes WebJobType = Azure::Web::Mgmt::V2018_02_01::Models::WebJobType PublishingProfileFormat = Azure::Web::Mgmt::V2018_02_01::Models::PublishingProfileFormat - DnsVerificationTestResult = Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult - MSDeployLogEntryType = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType + BackupItemStatus = Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus + DatabaseType = Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType MSDeployProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState - MySqlMigrationType = Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType + ProxyOnlyResource = Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource PublicCertificateLocation = Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation BackupRestoreOperationType = Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType - UnauthenticatedClientAction = Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction + DnsVerificationTestResult = Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult + MSDeployLogEntryType = Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType + Usage = Azure::Web::Mgmt::V2018_02_01::Models::Usage + MySqlMigrationType = Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType + ContinuousWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus + Resource = Azure::Web::Mgmt::V2018_02_01::Models::Resource BuiltInAuthenticationProvider = Azure::Web::Mgmt::V2018_02_01::Models::BuiltInAuthenticationProvider CloneAbilityResult = Azure::Web::Mgmt::V2018_02_01::Models::CloneAbilityResult SiteExtensionType = Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionType TriggeredWebJobStatus = Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJobStatus SkuName = Azure::Web::Mgmt::V2018_02_01::Models::SkuName - end - - class WebManagementClass - attr_reader :app_service_certificate_orders, :certificate_registration_provider, :domains, :top_level_domains, :domain_registration_provider, :certificates, :deleted_web_apps, :diagnostics, :provider, :recommendations, :web_apps, :app_service_environments, :app_service_plans, :configurable, :base_url, :options, :model_classes - + ProvisioningState = Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState + BackupRequest = Azure::Web::Mgmt::V2018_02_01::Models::BackupRequest + UnauthenticatedClientAction = Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction + RestoreRequest = Azure::Web::Mgmt::V2018_02_01::Models::RestoreRequest + ManagedServiceIdentity = Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity + Deployment = Azure::Web::Mgmt::V2018_02_01::Models::Deployment + Snapshot = Azure::Web::Mgmt::V2018_02_01::Models::Snapshot + Identifier = Azure::Web::Mgmt::V2018_02_01::Models::Identifier + end + + class WebManagementClass + attr_reader :domains, :diagnostics, :provider, :app_service_certificate_orders, :certificate_registration_provider, :certificates, :top_level_domains, :domain_registration_provider, :deleted_web_apps, :recommendations, :web_apps, :app_service_environments, :app_service_plans, :configurable, :base_url, :options, :model_classes + def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -364,15 +364,15 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @domains = @client_0.domains + @diagnostics = @client_0.diagnostics + @provider = @client_0.provider @app_service_certificate_orders = @client_0.app_service_certificate_orders @certificate_registration_provider = @client_0.certificate_registration_provider - @domains = @client_0.domains + @certificates = @client_0.certificates @top_level_domains = @client_0.top_level_domains @domain_registration_provider = @client_0.domain_registration_provider - @certificates = @client_0.certificates @deleted_web_apps = @client_0.deleted_web_apps - @diagnostics = @client_0.diagnostics - @provider = @client_0.provider @recommendations = @client_0.recommendations @web_apps = @client_0.web_apps @app_service_environments = @client_0.app_service_environments @@ -401,9 +401,6 @@ def diagnostic_detector_collection def app_service_certificate Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificate end - def operation - Azure::Web::Mgmt::V2018_02_01::Models::Operation - end def app_service_certificate_collection Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection end @@ -455,9 +452,6 @@ def app_service_plan_collection def site_cloneability_criterion Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneabilityCriterion end - def localizable_string - Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString - end def site_cloneability Azure::Web::Mgmt::V2018_02_01::Models::SiteCloneability end @@ -476,9 +470,6 @@ def http_logs_config def deleted_site Azure::Web::Mgmt::V2018_02_01::Models::DeletedSite end - def managed_service_identity - Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity - end def error_entity Azure::Web::Mgmt::V2018_02_01::Models::ErrorEntity end @@ -521,78 +512,66 @@ def resource_metric def site_limits Azure::Web::Mgmt::V2018_02_01::Models::SiteLimits end + def operation + Azure::Web::Mgmt::V2018_02_01::Models::Operation + end def resource_metric_collection Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricCollection end def experiments Azure::Web::Mgmt::V2018_02_01::Models::Experiments end - def resource_metric_definition_collection - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinitionCollection - end def virtual_application Azure::Web::Mgmt::V2018_02_01::Models::VirtualApplication end def web_app_collection Azure::Web::Mgmt::V2018_02_01::Models::WebAppCollection end + def resource_metric_definition_collection + Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinitionCollection + end def site_machine_key Azure::Web::Mgmt::V2018_02_01::Models::SiteMachineKey end - def deleted_web_app_collection - Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection - end def name_value_pair Azure::Web::Mgmt::V2018_02_01::Models::NameValuePair end def solution Azure::Web::Mgmt::V2018_02_01::Models::Solution end + def deleted_web_app_collection + Azure::Web::Mgmt::V2018_02_01::Models::DeletedWebAppCollection + end def host_name_ssl_state Azure::Web::Mgmt::V2018_02_01::Models::HostNameSslState end - def detector_abnormal_time_period - Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod - end def capability Azure::Web::Mgmt::V2018_02_01::Models::Capability end def abnormal_time_period Azure::Web::Mgmt::V2018_02_01::Models::AbnormalTimePeriod end + def detector_abnormal_time_period + Azure::Web::Mgmt::V2018_02_01::Models::DetectorAbnormalTimePeriod + end def sku_description Azure::Web::Mgmt::V2018_02_01::Models::SkuDescription end - def triggered_job_history_collection - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection - end - def resource - Azure::Web::Mgmt::V2018_02_01::Models::Resource - end def diagnostic_metric_sample Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSample end def default_error_response_error Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseError end + def triggered_job_history_collection + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistoryCollection + end def diagnostic_metric_set Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticMetricSet end - def name_identifier - Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier - end - def data_source - Azure::Web::Mgmt::V2018_02_01::Models::DataSource - end - def metric_availability - Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability - end def response_meta_data Azure::Web::Mgmt::V2018_02_01::Models::ResponseMetaData end - def metric_specification - Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification - end def analysis_data Azure::Web::Mgmt::V2018_02_01::Models::AnalysisData end @@ -605,170 +584,173 @@ def triggered_web_job_collection def csm_operation_description Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDescription end - def data_table_response_column - Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn + def name_identifier + Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier end def address Azure::Web::Mgmt::V2018_02_01::Models::Address end - def data_table_response_object - Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject + def metric_specification + Azure::Web::Mgmt::V2018_02_01::Models::MetricSpecification + end + def data_table_response_column + Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseColumn end def host_name Azure::Web::Mgmt::V2018_02_01::Models::HostName end - def detector_info - Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo - end def slot_difference_collection Azure::Web::Mgmt::V2018_02_01::Models::SlotDifferenceCollection end def rendering Azure::Web::Mgmt::V2018_02_01::Models::Rendering end - def domain_collection - Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection + def data_source + Azure::Web::Mgmt::V2018_02_01::Models::DataSource + end + def data_table_response_object + Azure::Web::Mgmt::V2018_02_01::Models::DataTableResponseObject end def diagnostic_data Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticData end - def function_envelope_collection - Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection - end - def csm_slot_entity - Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity + def detector_info + Azure::Web::Mgmt::V2018_02_01::Models::DetectorInfo end def snapshot_collection Azure::Web::Mgmt::V2018_02_01::Models::SnapshotCollection end - def detector_response_collection - Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection + def function_envelope_collection + Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelopeCollection end - def name_identifier_collection - Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection + def domain_collection + Azure::Web::Mgmt::V2018_02_01::Models::DomainCollection end def csm_publishing_profile_options Azure::Web::Mgmt::V2018_02_01::Models::CsmPublishingProfileOptions end - def tld_legal_agreement_collection - Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection + def detector_response_collection + Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponseCollection end - def diagnostic_analysis_collection - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection + def csm_slot_entity + Azure::Web::Mgmt::V2018_02_01::Models::CsmSlotEntity end def top_level_domain_agreement_option Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainAgreementOption end - def continuous_web_job_collection - Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection + def tld_legal_agreement_collection + Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreementCollection end - def enabled_config - Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig + def name_identifier_collection + Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifierCollection end def diagnostic_category_collection Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategoryCollection end - def app_service_certificate_order_collection - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection + def continuous_web_job_collection + Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobCollection end - def private_access_virtual_network - Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork + def diagnostic_analysis_collection + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysisCollection end def web_app_instance_collection Azure::Web::Mgmt::V2018_02_01::Models::WebAppInstanceCollection end - def perf_mon_set - Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet + def app_service_certificate_order_collection + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection end - def process_module_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection + def enabled_config + Azure::Web::Mgmt::V2018_02_01::Models::EnabledConfig end def stack_minor_version Azure::Web::Mgmt::V2018_02_01::Models::StackMinorVersion end - def resource_metric_availability - Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability + def perf_mon_set + Azure::Web::Mgmt::V2018_02_01::Models::PerfMonSet end - def stack_major_version - Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion + def private_access_virtual_network + Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccessVirtualNetwork end def site_configuration_snapshot_info_collection Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfoCollection end - def application_stack - Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack + def resource_metric_availability + Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricAvailability end - def slot_swap_status - Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus + def process_module_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfoCollection end def application_stack_collection Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStackCollection end - def api_definition_info - Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo + def application_stack + Azure::Web::Mgmt::V2018_02_01::Models::ApplicationStack end - def resource_collection - Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection + def stack_major_version + Azure::Web::Mgmt::V2018_02_01::Models::StackMajorVersion end def slow_requests_based_trigger Azure::Web::Mgmt::V2018_02_01::Models::SlowRequestsBasedTrigger end - def recommendation_collection - Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection + def api_definition_info + Azure::Web::Mgmt::V2018_02_01::Models::ApiDefinitionInfo end - def auto_heal_rules - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules + def slot_swap_status + Azure::Web::Mgmt::V2018_02_01::Models::SlotSwapStatus end def hybrid_connection_collection Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionCollection end - def virtual_directory - Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory + def recommendation_collection + Azure::Web::Mgmt::V2018_02_01::Models::RecommendationCollection end - def worker_pool_collection - Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection + def resource_collection + Azure::Web::Mgmt::V2018_02_01::Models::ResourceCollection end def conn_string_info Azure::Web::Mgmt::V2018_02_01::Models::ConnStringInfo end - def billing_meter_collection - Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection + def virtual_directory + Azure::Web::Mgmt::V2018_02_01::Models::VirtualDirectory end - def host_name_binding_collection - Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection + def auto_heal_rules + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealRules end def csm_move_resource_envelope Azure::Web::Mgmt::V2018_02_01::Models::CsmMoveResourceEnvelope end - def site_extension_info_collection - Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection + def billing_meter_collection + Azure::Web::Mgmt::V2018_02_01::Models::BillingMeterCollection end - def usage_collection - Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection + def worker_pool_collection + Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolCollection end def default_error_response Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponse end - def hosting_environment_deployment_info - Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo - end - def dimension - Azure::Web::Mgmt::V2018_02_01::Models::Dimension + def site_extension_info_collection + Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfoCollection end - def deployment_locations - Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations + def host_name_binding_collection + Azure::Web::Mgmt::V2018_02_01::Models::HostNameBindingCollection end def csm_operation_display Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationDisplay end - def geo_region_collection - Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection + def hosting_environment_deployment_info + Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDeploymentInfo + end + def usage_collection + Azure::Web::Mgmt::V2018_02_01::Models::UsageCollection end def contact Azure::Web::Mgmt::V2018_02_01::Models::Contact end - def global_csm_sku_description - Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription + def geo_region_collection + Azure::Web::Mgmt::V2018_02_01::Models::GeoRegionCollection + end + def deployment_locations + Azure::Web::Mgmt::V2018_02_01::Models::DeploymentLocations end def domain_availablility_check_result Azure::Web::Mgmt::V2018_02_01::Models::DomainAvailablilityCheckResult @@ -776,8 +758,8 @@ def domain_availablility_check_result def stamp_capacity_collection Azure::Web::Mgmt::V2018_02_01::Models::StampCapacityCollection end - def domain_ownership_identifier_collection - Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection + def global_csm_sku_description + Azure::Web::Mgmt::V2018_02_01::Models::GlobalCsmSkuDescription end def premier_add_on_offer_collection Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOfferCollection @@ -785,20 +767,29 @@ def premier_add_on_offer_collection def tld_legal_agreement Azure::Web::Mgmt::V2018_02_01::Models::TldLegalAgreement end - def resource_name_availability - Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability + def domain_ownership_identifier_collection + Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifierCollection end def top_level_domain_collection Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomainCollection end + def dimension + Azure::Web::Mgmt::V2018_02_01::Models::Dimension + end + def resource_name_availability + Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability + end + def sku_infos + Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos + end def resource_name_availability_request Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailabilityRequest end def perf_mon_counter_collection Azure::Web::Mgmt::V2018_02_01::Models::PerfMonCounterCollection end - def sku_infos - Azure::Web::Mgmt::V2018_02_01::Models::SkuInfos + def source_control_collection + Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection end def public_certificate_collection Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateCollection @@ -806,11 +797,8 @@ def public_certificate_collection def sku_info_collection Azure::Web::Mgmt::V2018_02_01::Models::SkuInfoCollection end - def proxy_only_resource - Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource - end - def source_control_collection - Azure::Web::Mgmt::V2018_02_01::Models::SourceControlCollection + def ramp_up_rule + Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule end def auto_heal_custom_action Azure::Web::Mgmt::V2018_02_01::Models::AutoHealCustomAction @@ -818,8 +806,8 @@ def auto_heal_custom_action def validate_request Azure::Web::Mgmt::V2018_02_01::Models::ValidateRequest end - def ramp_up_rule - Azure::Web::Mgmt::V2018_02_01::Models::RampUpRule + def validate_response + Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse end def validate_response_error Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponseError @@ -827,83 +815,62 @@ def validate_response_error def site_config Azure::Web::Mgmt::V2018_02_01::Models::SiteConfig end - def validate_response - Azure::Web::Mgmt::V2018_02_01::Models::ValidateResponse + def metric_availabilily + Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily end def default_error_response_error_details_item Azure::Web::Mgmt::V2018_02_01::Models::DefaultErrorResponseErrorDetailsItem end - def sku_info - Azure::Web::Mgmt::V2018_02_01::Models::SkuInfo - end - def service_specification - Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification + def hosting_environment_diagnostics + Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics end - def metric_availabilily - Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailabilily + def azure_table_storage_application_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig end def domain_purchase_consent Azure::Web::Mgmt::V2018_02_01::Models::DomainPurchaseConsent end - def hosting_environment_diagnostics - Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentDiagnostics + def requests_based_trigger + Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger end - def domain_recommendation_search_parameters - Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters + def sku_info + Azure::Web::Mgmt::V2018_02_01::Models::SkuInfo end def file_system_application_logs_config Azure::Web::Mgmt::V2018_02_01::Models::FileSystemApplicationLogsConfig end - def certificate_collection - Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection - end - def azure_table_storage_application_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::AzureTableStorageApplicationLogsConfig + def sku_capacity + Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity end - def site_config_resource_collection - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection + def service_specification + Azure::Web::Mgmt::V2018_02_01::Models::ServiceSpecification end - def azure_blob_storage_application_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig + def domain_recommendation_search_parameters + Azure::Web::Mgmt::V2018_02_01::Models::DomainRecommendationSearchParameters end - def requests_based_trigger - Azure::Web::Mgmt::V2018_02_01::Models::RequestsBasedTrigger + def database_backup_setting + Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting end def application_logs_config Azure::Web::Mgmt::V2018_02_01::Models::ApplicationLogsConfig end - def sku_capacity - Azure::Web::Mgmt::V2018_02_01::Models::SkuCapacity + def site_config_resource_collection + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResourceCollection end - def azure_blob_storage_http_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig + def azure_blob_storage_application_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageApplicationLogsConfig end def csm_operation_collection Azure::Web::Mgmt::V2018_02_01::Models::CsmOperationCollection end - def database_backup_setting - Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting - end - def file_system_http_logs_config - Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig - end - def app_service_environment_collection - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection - end def hosting_environment_profile Azure::Web::Mgmt::V2018_02_01::Models::HostingEnvironmentProfile end def backup_item_collection Azure::Web::Mgmt::V2018_02_01::Models::BackupItemCollection end - def log_specification - Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification - end - def backup_schedule - Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule - end - def site_seal_request - Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest + def app_service_environment_collection + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentCollection end def address_response Azure::Web::Mgmt::V2018_02_01::Models::AddressResponse @@ -911,12 +878,21 @@ def address_response def domain_control_center_sso_request Azure::Web::Mgmt::V2018_02_01::Models::DomainControlCenterSsoRequest end - def conn_string_value_type_pair - Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair + def file_system_http_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::FileSystemHttpLogsConfig end def handler_mapping Azure::Web::Mgmt::V2018_02_01::Models::HandlerMapping end + def azure_blob_storage_http_logs_config + Azure::Web::Mgmt::V2018_02_01::Models::AzureBlobStorageHttpLogsConfig + end + def conn_string_value_type_pair + Azure::Web::Mgmt::V2018_02_01::Models::ConnStringValueTypePair + end + def site_seal_request + Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest + end def web_job_collection Azure::Web::Mgmt::V2018_02_01::Models::WebJobCollection end @@ -941,8 +917,8 @@ def certificate_order_action def reissue_certificate_order_request Azure::Web::Mgmt::V2018_02_01::Models::ReissueCertificateOrderRequest end - def renew_certificate_order_request - Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest + def backup_schedule + Azure::Web::Mgmt::V2018_02_01::Models::BackupSchedule end def vnet_route Azure::Web::Mgmt::V2018_02_01::Models::VnetRoute @@ -953,11 +929,17 @@ def vnet_info def vnet_gateway Azure::Web::Mgmt::V2018_02_01::Models::VnetGateway end - def user - Azure::Web::Mgmt::V2018_02_01::Models::User + def renew_certificate_order_request + Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest end - def snapshot - Azure::Web::Mgmt::V2018_02_01::Models::Snapshot + def log_specification + Azure::Web::Mgmt::V2018_02_01::Models::LogSpecification + end + def hybrid_connection_key + Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionKey + end + def user + Azure::Web::Mgmt::V2018_02_01::Models::User end def resource_metric_definition Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition @@ -965,14 +947,8 @@ def resource_metric_definition def push_settings Azure::Web::Mgmt::V2018_02_01::Models::PushSettings end - def identifier - Azure::Web::Mgmt::V2018_02_01::Models::Identifier - end - def hybrid_connection_key - Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionKey - end - def hybrid_connection - Azure::Web::Mgmt::V2018_02_01::Models::HybridConnection + def domain_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::DomainPatchResource end def site Azure::Web::Mgmt::V2018_02_01::Models::Site @@ -980,41 +956,35 @@ def site def app_service_plan Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlan end - def domain - Azure::Web::Mgmt::V2018_02_01::Models::Domain - end def domain_ownership_identifier Azure::Web::Mgmt::V2018_02_01::Models::DomainOwnershipIdentifier end - def domain_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::DomainPatchResource + def analysis_definition + Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition end def top_level_domain Azure::Web::Mgmt::V2018_02_01::Models::TopLevelDomain end - def certificate - Azure::Web::Mgmt::V2018_02_01::Models::Certificate - end def certificate_patch_resource Azure::Web::Mgmt::V2018_02_01::Models::CertificatePatchResource end def detector_definition Azure::Web::Mgmt::V2018_02_01::Models::DetectorDefinition end - def analysis_definition - Azure::Web::Mgmt::V2018_02_01::Models::AnalysisDefinition + def diagnostic_detector_response + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse end def detector_response Azure::Web::Mgmt::V2018_02_01::Models::DetectorResponse end - def diagnostic_analysis - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis + def localizable_string + Azure::Web::Mgmt::V2018_02_01::Models::LocalizableString end def diagnostic_category Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticCategory end - def diagnostic_detector_response - Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticDetectorResponse + def geo_region + Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion end def recommendation Azure::Web::Mgmt::V2018_02_01::Models::Recommendation @@ -1022,11 +992,11 @@ def recommendation def recommendation_rule Azure::Web::Mgmt::V2018_02_01::Models::RecommendationRule end - def billing_meter - Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter + def diagnostic_analysis + Azure::Web::Mgmt::V2018_02_01::Models::DiagnosticAnalysis end - def geo_region - Azure::Web::Mgmt::V2018_02_01::Models::GeoRegion + def certificate + Azure::Web::Mgmt::V2018_02_01::Models::Certificate end def premier_add_on_offer Azure::Web::Mgmt::V2018_02_01::Models::PremierAddOnOffer @@ -1037,8 +1007,8 @@ def source_control def vnet_parameters Azure::Web::Mgmt::V2018_02_01::Models::VnetParameters end - def vnet_validation_test_failure - Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure + def billing_meter + Azure::Web::Mgmt::V2018_02_01::Models::BillingMeter end def vnet_validation_failure_details Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationFailureDetails @@ -1046,24 +1016,18 @@ def vnet_validation_failure_details def backup_item Azure::Web::Mgmt::V2018_02_01::Models::BackupItem end - def backup_request - Azure::Web::Mgmt::V2018_02_01::Models::BackupRequest - end def connection_string_dictionary Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringDictionary end def continuous_web_job Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJob end - def custom_hostname_analysis_result - Azure::Web::Mgmt::V2018_02_01::Models::CustomHostnameAnalysisResult + def vnet_validation_test_failure + Azure::Web::Mgmt::V2018_02_01::Models::VnetValidationTestFailure end def deleted_app_restore_request Azure::Web::Mgmt::V2018_02_01::Models::DeletedAppRestoreRequest end - def deployment - Azure::Web::Mgmt::V2018_02_01::Models::Deployment - end def function_envelope Azure::Web::Mgmt::V2018_02_01::Models::FunctionEnvelope end @@ -1073,8 +1037,8 @@ def function_secrets def host_name_binding Azure::Web::Mgmt::V2018_02_01::Models::HostNameBinding end - def msdeploy - Azure::Web::Mgmt::V2018_02_01::Models::MSDeploy + def custom_hostname_analysis_result + Azure::Web::Mgmt::V2018_02_01::Models::CustomHostnameAnalysisResult end def msdeploy_log Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLog @@ -1088,8 +1052,8 @@ def migrate_my_sql_request def migrate_my_sql_status Azure::Web::Mgmt::V2018_02_01::Models::MigrateMySqlStatus end - def relay_service_connection_entity - Azure::Web::Mgmt::V2018_02_01::Models::RelayServiceConnectionEntity + def msdeploy + Azure::Web::Mgmt::V2018_02_01::Models::MSDeploy end def network_features Azure::Web::Mgmt::V2018_02_01::Models::NetworkFeatures @@ -1103,8 +1067,8 @@ def premier_add_on_patch_resource def private_access Azure::Web::Mgmt::V2018_02_01::Models::PrivateAccess end - def process_thread_info - Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo + def relay_service_connection_entity + Azure::Web::Mgmt::V2018_02_01::Models::RelayServiceConnectionEntity end def process_module_info Azure::Web::Mgmt::V2018_02_01::Models::ProcessModuleInfo @@ -1115,17 +1079,14 @@ def process_info def public_certificate Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificate end - def restore_request - Azure::Web::Mgmt::V2018_02_01::Models::RestoreRequest - end def site_auth_settings Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings end - def site_config_resource - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource + def process_thread_info + Azure::Web::Mgmt::V2018_02_01::Models::ProcessThreadInfo end - def site_configuration_snapshot_info - Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo + def metric_availability + Azure::Web::Mgmt::V2018_02_01::Models::MetricAvailability end def site_extension_info Azure::Web::Mgmt::V2018_02_01::Models::SiteExtensionInfo @@ -1136,11 +1097,11 @@ def site_instance def site_logs_config Azure::Web::Mgmt::V2018_02_01::Models::SiteLogsConfig end - def site_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::SitePatchResource + def site_config_resource + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigResource end - def site_php_error_log_flag - Azure::Web::Mgmt::V2018_02_01::Models::SitePhpErrorLogFlag + def site_configuration_snapshot_info + Azure::Web::Mgmt::V2018_02_01::Models::SiteConfigurationSnapshotInfo end def site_source_control Azure::Web::Mgmt::V2018_02_01::Models::SiteSourceControl @@ -1148,6 +1109,21 @@ def site_source_control def slot_config_names_resource Azure::Web::Mgmt::V2018_02_01::Models::SlotConfigNamesResource end + def certificate_collection + Azure::Web::Mgmt::V2018_02_01::Models::CertificateCollection + end + def site_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::SitePatchResource + end + def site_php_error_log_flag + Azure::Web::Mgmt::V2018_02_01::Models::SitePhpErrorLogFlag + end + def storage_migration_response + Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationResponse + end + def string_dictionary + Azure::Web::Mgmt::V2018_02_01::Models::StringDictionary + end def slot_difference Azure::Web::Mgmt::V2018_02_01::Models::SlotDifference end @@ -1157,11 +1133,11 @@ def snapshot_restore_request def storage_migration_options Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationOptions end - def storage_migration_response - Azure::Web::Mgmt::V2018_02_01::Models::StorageMigrationResponse + def triggered_web_job + Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob end - def string_dictionary - Azure::Web::Mgmt::V2018_02_01::Models::StringDictionary + def web_job + Azure::Web::Mgmt::V2018_02_01::Models::WebJob end def swift_virtual_network Azure::Web::Mgmt::V2018_02_01::Models::SwiftVirtualNetwork @@ -1172,41 +1148,32 @@ def triggered_job_run def triggered_job_history Azure::Web::Mgmt::V2018_02_01::Models::TriggeredJobHistory end - def triggered_web_job - Azure::Web::Mgmt::V2018_02_01::Models::TriggeredWebJob + def app_service_plan_patch_resource + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanPatchResource end - def web_job - Azure::Web::Mgmt::V2018_02_01::Models::WebJob + def hybrid_connection_limits + Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionLimits end - def app_service_environment_resource - Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentResource + def hybrid_connection + Azure::Web::Mgmt::V2018_02_01::Models::HybridConnection end def app_service_environment_patch_resource Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentPatchResource end - def metric_definition - Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition - end - def usage - Azure::Web::Mgmt::V2018_02_01::Models::Usage - end def worker_pool_resource Azure::Web::Mgmt::V2018_02_01::Models::WorkerPoolResource end - def app_service_plan_patch_resource - Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanPatchResource + def metric_definition + Azure::Web::Mgmt::V2018_02_01::Models::MetricDefinition end - def hybrid_connection_limits - Azure::Web::Mgmt::V2018_02_01::Models::HybridConnectionLimits + def route_type + Azure::Web::Mgmt::V2018_02_01::Models::RouteType end def key_vault_secret_status Azure::Web::Mgmt::V2018_02_01::Models::KeyVaultSecretStatus end - def certificate_product_type - Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType - end - def provisioning_state - Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState + def app_service_environment_resource + Azure::Web::Mgmt::V2018_02_01::Models::AppServiceEnvironmentResource end def certificate_order_status Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderStatus @@ -1214,8 +1181,8 @@ def certificate_order_status def certificate_order_action_type Azure::Web::Mgmt::V2018_02_01::Models::CertificateOrderActionType end - def route_type - Azure::Web::Mgmt::V2018_02_01::Models::RouteType + def scm_type + Azure::Web::Mgmt::V2018_02_01::Models::ScmType end def managed_service_identity_type Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentityType @@ -1223,14 +1190,14 @@ def managed_service_identity_type def ip_filter_tag Azure::Web::Mgmt::V2018_02_01::Models::IpFilterTag end - def auto_heal_action_type - Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType + def certificate_product_type + Azure::Web::Mgmt::V2018_02_01::Models::CertificateProductType end def connection_string_type Azure::Web::Mgmt::V2018_02_01::Models::ConnectionStringType end - def scm_type - Azure::Web::Mgmt::V2018_02_01::Models::ScmType + def ssl_state + Azure::Web::Mgmt::V2018_02_01::Models::SslState end def managed_pipeline_mode Azure::Web::Mgmt::V2018_02_01::Models::ManagedPipelineMode @@ -1241,11 +1208,11 @@ def site_load_balancing def supported_tls_versions Azure::Web::Mgmt::V2018_02_01::Models::SupportedTlsVersions end - def ftps_state - Azure::Web::Mgmt::V2018_02_01::Models::FtpsState + def auto_heal_action_type + Azure::Web::Mgmt::V2018_02_01::Models::AutoHealActionType end - def ssl_state - Azure::Web::Mgmt::V2018_02_01::Models::SslState + def domain_status + Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus end def host_type Azure::Web::Mgmt::V2018_02_01::Models::HostType @@ -1259,8 +1226,8 @@ def site_availability_state def status_options Azure::Web::Mgmt::V2018_02_01::Models::StatusOptions end - def domain_status - Azure::Web::Mgmt::V2018_02_01::Models::DomainStatus + def ftps_state + Azure::Web::Mgmt::V2018_02_01::Models::FtpsState end def azure_resource_type Azure::Web::Mgmt::V2018_02_01::Models::AzureResourceType @@ -1289,20 +1256,14 @@ def compute_mode_options def worker_size_options Azure::Web::Mgmt::V2018_02_01::Models::WorkerSizeOptions end - def access_control_entry_action - Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction - end - def operation_status - Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus - end - def issue_type - Azure::Web::Mgmt::V2018_02_01::Models::IssueType + def domain + Azure::Web::Mgmt::V2018_02_01::Models::Domain end def solution_type Azure::Web::Mgmt::V2018_02_01::Models::SolutionType end - def rendering_type - Azure::Web::Mgmt::V2018_02_01::Models::RenderingType + def operation_status + Azure::Web::Mgmt::V2018_02_01::Models::OperationStatus end def resource_scope_type Azure::Web::Mgmt::V2018_02_01::Models::ResourceScopeType @@ -1313,14 +1274,14 @@ def notification_level def channels Azure::Web::Mgmt::V2018_02_01::Models::Channels end - def app_service_plan_restrictions - Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions + def access_control_entry_action + Azure::Web::Mgmt::V2018_02_01::Models::AccessControlEntryAction end def in_availability_reason_type Azure::Web::Mgmt::V2018_02_01::Models::InAvailabilityReasonType end - def check_name_resource_types - Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes + def rendering_type + Azure::Web::Mgmt::V2018_02_01::Models::RenderingType end def validate_resource_types Azure::Web::Mgmt::V2018_02_01::Models::ValidateResourceTypes @@ -1328,17 +1289,17 @@ def validate_resource_types def log_level Azure::Web::Mgmt::V2018_02_01::Models::LogLevel end - def backup_item_status - Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus + def issue_type + Azure::Web::Mgmt::V2018_02_01::Models::IssueType end - def database_type - Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType + def app_service_plan_restrictions + Azure::Web::Mgmt::V2018_02_01::Models::AppServicePlanRestrictions end def frequency_unit Azure::Web::Mgmt::V2018_02_01::Models::FrequencyUnit end - def continuous_web_job_status - Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus + def check_name_resource_types + Azure::Web::Mgmt::V2018_02_01::Models::CheckNameResourceTypes end def web_job_type Azure::Web::Mgmt::V2018_02_01::Models::WebJobType @@ -1346,17 +1307,17 @@ def web_job_type def publishing_profile_format Azure::Web::Mgmt::V2018_02_01::Models::PublishingProfileFormat end - def dns_verification_test_result - Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult + def backup_item_status + Azure::Web::Mgmt::V2018_02_01::Models::BackupItemStatus end - def msdeploy_log_entry_type - Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType + def database_type + Azure::Web::Mgmt::V2018_02_01::Models::DatabaseType end def msdeploy_provisioning_state Azure::Web::Mgmt::V2018_02_01::Models::MSDeployProvisioningState end - def my_sql_migration_type - Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType + def proxy_only_resource + Azure::Web::Mgmt::V2018_02_01::Models::ProxyOnlyResource end def public_certificate_location Azure::Web::Mgmt::V2018_02_01::Models::PublicCertificateLocation @@ -1364,8 +1325,23 @@ def public_certificate_location def backup_restore_operation_type Azure::Web::Mgmt::V2018_02_01::Models::BackupRestoreOperationType end - def unauthenticated_client_action - Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction + def dns_verification_test_result + Azure::Web::Mgmt::V2018_02_01::Models::DnsVerificationTestResult + end + def msdeploy_log_entry_type + Azure::Web::Mgmt::V2018_02_01::Models::MSDeployLogEntryType + end + def usage + Azure::Web::Mgmt::V2018_02_01::Models::Usage + end + def my_sql_migration_type + Azure::Web::Mgmt::V2018_02_01::Models::MySqlMigrationType + end + def continuous_web_job_status + Azure::Web::Mgmt::V2018_02_01::Models::ContinuousWebJobStatus + end + def resource + Azure::Web::Mgmt::V2018_02_01::Models::Resource end def built_in_authentication_provider Azure::Web::Mgmt::V2018_02_01::Models::BuiltInAuthenticationProvider @@ -1382,6 +1358,30 @@ def triggered_web_job_status def sku_name Azure::Web::Mgmt::V2018_02_01::Models::SkuName end + def provisioning_state + Azure::Web::Mgmt::V2018_02_01::Models::ProvisioningState + end + def backup_request + Azure::Web::Mgmt::V2018_02_01::Models::BackupRequest + end + def unauthenticated_client_action + Azure::Web::Mgmt::V2018_02_01::Models::UnauthenticatedClientAction + end + def restore_request + Azure::Web::Mgmt::V2018_02_01::Models::RestoreRequest + end + def managed_service_identity + Azure::Web::Mgmt::V2018_02_01::Models::ManagedServiceIdentity + end + def deployment + Azure::Web::Mgmt::V2018_02_01::Models::Deployment + end + def snapshot + Azure::Web::Mgmt::V2018_02_01::Models::Snapshot + end + def identifier + Azure::Web::Mgmt::V2018_02_01::Models::Identifier + end end end end diff --git a/azure_sdk/lib/latest/modules/websearch_profile_module.rb b/azure_sdk/lib/latest/modules/websearch_profile_module.rb index 55a3a0b7ee..307b711a3a 100644 --- a/azure_sdk/lib/latest/modules/websearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/websearch_profile_module.rb @@ -9,47 +9,47 @@ module WebSearch Web = Azure::CognitiveServices::WebSearch::V1_0::Web module Models + AnswerType = Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType + NewsArticle = Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle + News = Azure::CognitiveServices::WebSearch::V1_0::Models::News + ResponseBase = Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase + QueryContext = Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext + Query = Azure::CognitiveServices::WebSearch::V1_0::Models::Query + WebMetaTag = Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag RankingRankingItem = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem RankingRankingGroup = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup - WebMetaTag = Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag RankingRankingResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingResponse WebWebGrouping = Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebGrouping - Error = Azure::CognitiveServices::WebSearch::V1_0::Models::Error - Query = Azure::CognitiveServices::WebSearch::V1_0::Models::Query TimeZoneTimeZoneInformation = Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZoneTimeZoneInformation - ResponseBase = Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase - QueryContext = Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext - ImageObject = Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject - CreativeWork = Azure::CognitiveServices::WebSearch::V1_0::Models::CreativeWork - WebPage = Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage - NewsArticle = Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle VideoObject = Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject + WebPage = Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage + CreativeWork = Azure::CognitiveServices::WebSearch::V1_0::Models::CreativeWork + Answer = Azure::CognitiveServices::WebSearch::V1_0::Models::Answer + Thing = Azure::CognitiveServices::WebSearch::V1_0::Models::Thing Identifiable = Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable - Response = Azure::CognitiveServices::WebSearch::V1_0::Models::Response + WebWebAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer SearchResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResponse - Thing = Azure::CognitiveServices::WebSearch::V1_0::Models::Thing - Answer = Azure::CognitiveServices::WebSearch::V1_0::Models::Answer - Computation = Azure::CognitiveServices::WebSearch::V1_0::Models::Computation SearchResultsAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResultsAnswer - WebWebAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer + Computation = Azure::CognitiveServices::WebSearch::V1_0::Models::Computation Images = Azure::CognitiveServices::WebSearch::V1_0::Models::Images - News = Azure::CognitiveServices::WebSearch::V1_0::Models::News + Response = Azure::CognitiveServices::WebSearch::V1_0::Models::Response + TimeZone = Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone + Article = Azure::CognitiveServices::WebSearch::V1_0::Models::Article + ErrorSubCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode RelatedSearchesRelatedSearchAnswer = Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer SpellSuggestions = Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions - TimeZone = Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone - Videos = Azure::CognitiveServices::WebSearch::V1_0::Models::Videos + ErrorCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode + SafeSearch = Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + Freshness = Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness + ImageObject = Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject Places = Azure::CognitiveServices::WebSearch::V1_0::Models::Places - ErrorResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse + TextFormat = Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat Intangible = Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible MediaObject = Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject - Article = Azure::CognitiveServices::WebSearch::V1_0::Models::Article StructuredValue = Azure::CognitiveServices::WebSearch::V1_0::Models::StructuredValue - AnswerType = Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType - ErrorCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode - ErrorSubCode = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode - Freshness = Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness - SafeSearch = Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch - TextFormat = Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat + Videos = Azure::CognitiveServices::WebSearch::V1_0::Models::Videos + Error = Azure::CognitiveServices::WebSearch::V1_0::Models::Error + ErrorResponse = Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse end class WebSearchDataClass @@ -82,80 +82,86 @@ def method_missing(method, *args) end class ModelClasses + def answer_type + Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType + end + def news_article + Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle + end + def news + Azure::CognitiveServices::WebSearch::V1_0::Models::News + end + def response_base + Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase + end + def query_context + Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext + end + def query + Azure::CognitiveServices::WebSearch::V1_0::Models::Query + end + def web_meta_tag + Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag + end def ranking_ranking_item Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem end def ranking_ranking_group Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingGroup end - def web_meta_tag - Azure::CognitiveServices::WebSearch::V1_0::Models::WebMetaTag - end def ranking_ranking_response Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingResponse end def web_web_grouping Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebGrouping end - def error - Azure::CognitiveServices::WebSearch::V1_0::Models::Error - end - def query - Azure::CognitiveServices::WebSearch::V1_0::Models::Query - end def time_zone_time_zone_information Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZoneTimeZoneInformation end - def response_base - Azure::CognitiveServices::WebSearch::V1_0::Models::ResponseBase - end - def query_context - Azure::CognitiveServices::WebSearch::V1_0::Models::QueryContext + def video_object + Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject end - def image_object - Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject + def web_page + Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage end def creative_work Azure::CognitiveServices::WebSearch::V1_0::Models::CreativeWork end - def web_page - Azure::CognitiveServices::WebSearch::V1_0::Models::WebPage - end - def news_article - Azure::CognitiveServices::WebSearch::V1_0::Models::NewsArticle + def answer + Azure::CognitiveServices::WebSearch::V1_0::Models::Answer end - def video_object - Azure::CognitiveServices::WebSearch::V1_0::Models::VideoObject + def thing + Azure::CognitiveServices::WebSearch::V1_0::Models::Thing end def identifiable Azure::CognitiveServices::WebSearch::V1_0::Models::Identifiable end - def response - Azure::CognitiveServices::WebSearch::V1_0::Models::Response + def web_web_answer + Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer end def search_response Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResponse end - def thing - Azure::CognitiveServices::WebSearch::V1_0::Models::Thing - end - def answer - Azure::CognitiveServices::WebSearch::V1_0::Models::Answer - end - def computation - Azure::CognitiveServices::WebSearch::V1_0::Models::Computation - end def search_results_answer Azure::CognitiveServices::WebSearch::V1_0::Models::SearchResultsAnswer end - def web_web_answer - Azure::CognitiveServices::WebSearch::V1_0::Models::WebWebAnswer + def computation + Azure::CognitiveServices::WebSearch::V1_0::Models::Computation end def images Azure::CognitiveServices::WebSearch::V1_0::Models::Images end - def news - Azure::CognitiveServices::WebSearch::V1_0::Models::News + def response + Azure::CognitiveServices::WebSearch::V1_0::Models::Response + end + def time_zone + Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone + end + def article + Azure::CognitiveServices::WebSearch::V1_0::Models::Article + end + def error_sub_code + Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode end def related_searches_related_search_answer Azure::CognitiveServices::WebSearch::V1_0::Models::RelatedSearchesRelatedSearchAnswer @@ -163,17 +169,23 @@ def related_searches_related_search_answer def spell_suggestions Azure::CognitiveServices::WebSearch::V1_0::Models::SpellSuggestions end - def time_zone - Azure::CognitiveServices::WebSearch::V1_0::Models::TimeZone + def error_code + Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode end - def videos - Azure::CognitiveServices::WebSearch::V1_0::Models::Videos + def safe_search + Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + end + def freshness + Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness + end + def image_object + Azure::CognitiveServices::WebSearch::V1_0::Models::ImageObject end def places Azure::CognitiveServices::WebSearch::V1_0::Models::Places end - def error_response - Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse + def text_format + Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat end def intangible Azure::CognitiveServices::WebSearch::V1_0::Models::Intangible @@ -181,29 +193,17 @@ def intangible def media_object Azure::CognitiveServices::WebSearch::V1_0::Models::MediaObject end - def article - Azure::CognitiveServices::WebSearch::V1_0::Models::Article - end def structured_value Azure::CognitiveServices::WebSearch::V1_0::Models::StructuredValue end - def answer_type - Azure::CognitiveServices::WebSearch::V1_0::Models::AnswerType - end - def error_code - Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorCode - end - def error_sub_code - Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorSubCode - end - def freshness - Azure::CognitiveServices::WebSearch::V1_0::Models::Freshness + def videos + Azure::CognitiveServices::WebSearch::V1_0::Models::Videos end - def safe_search - Azure::CognitiveServices::WebSearch::V1_0::Models::SafeSearch + def error + Azure::CognitiveServices::WebSearch::V1_0::Models::Error end - def text_format - Azure::CognitiveServices::WebSearch::V1_0::Models::TextFormat + def error_response + Azure::CognitiveServices::WebSearch::V1_0::Models::ErrorResponse end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb index 3d49eb5831..62d7e5b6e8 100644 --- a/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb @@ -7,17 +7,22 @@ module Azure::Profiles::V2017_03_09 module Compute module Mgmt + UsageOperations = Azure::Compute::Mgmt::V2016_03_30::UsageOperations AvailabilitySets = Azure::Compute::Mgmt::V2016_03_30::AvailabilitySets VirtualMachineExtensionImages = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineExtensionImages VirtualMachineExtensions = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineExtensions VirtualMachines = Azure::Compute::Mgmt::V2016_03_30::VirtualMachines VirtualMachineImages = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineImages - UsageOperations = Azure::Compute::Mgmt::V2016_03_30::UsageOperations VirtualMachineSizes = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineSizes VirtualMachineScaleSets = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineScaleSets VirtualMachineScaleSetVMs = Azure::Compute::Mgmt::V2016_03_30::VirtualMachineScaleSetVMs module Models + Sku = Azure::Compute::Mgmt::V2016_03_30::Models::Sku + UsageName = Azure::Compute::Mgmt::V2016_03_30::Models::UsageName + Usage = Azure::Compute::Mgmt::V2016_03_30::Models::Usage + Resource = Azure::Compute::Mgmt::V2016_03_30::Models::Resource + SubResource = Azure::Compute::Mgmt::V2016_03_30::Models::SubResource DiagnosticsProfile = Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile InstanceViewStatus = Azure::Compute::Mgmt::V2016_03_30::Models::InstanceViewStatus VirtualMachineExtensionHandlerInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionHandlerInstanceView @@ -28,13 +33,10 @@ module Models InnerError = Azure::Compute::Mgmt::V2016_03_30::Models::InnerError VirtualMachineExtensionInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineExtensionInstanceView NetworkProfile = Azure::Compute::Mgmt::V2016_03_30::Models::NetworkProfile - Resource = Azure::Compute::Mgmt::V2016_03_30::Models::Resource BootDiagnostics = Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnostics PurchasePlan = Azure::Compute::Mgmt::V2016_03_30::Models::PurchasePlan - SubResource = Azure::Compute::Mgmt::V2016_03_30::Models::SubResource DataDiskImage = Azure::Compute::Mgmt::V2016_03_30::Models::DataDiskImage ApiErrorBase = Azure::Compute::Mgmt::V2016_03_30::Models::ApiErrorBase - UsageName = Azure::Compute::Mgmt::V2016_03_30::Models::UsageName VirtualMachineAgentInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineAgentInstanceView ListUsagesResult = Azure::Compute::Mgmt::V2016_03_30::Models::ListUsagesResult DiskInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::DiskInstanceView @@ -49,7 +51,6 @@ module Models OSDisk = Azure::Compute::Mgmt::V2016_03_30::Models::OSDisk VirtualMachineListResult = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineListResult StorageProfile = Azure::Compute::Mgmt::V2016_03_30::Models::StorageProfile - Sku = Azure::Compute::Mgmt::V2016_03_30::Models::Sku WinRMListener = Azure::Compute::Mgmt::V2016_03_30::Models::WinRMListener UpgradePolicy = Azure::Compute::Mgmt::V2016_03_30::Models::UpgradePolicy WindowsConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::WindowsConfiguration @@ -84,7 +85,6 @@ module Models VirtualMachineStatusCodeCount = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineStatusCodeCount LinuxConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::LinuxConfiguration VirtualMachineScaleSetInstanceViewStatusesSummary = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetInstanceViewStatusesSummary - Usage = Azure::Compute::Mgmt::V2016_03_30::Models::Usage VirtualMachineScaleSetVMExtensionsSummary = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMExtensionsSummary WinRMConfiguration = Azure::Compute::Mgmt::V2016_03_30::Models::WinRMConfiguration VirtualMachineScaleSetInstanceView = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetInstanceView @@ -122,7 +122,7 @@ module Models end class ComputeManagementClass - attr_reader :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :usage_operations, :virtual_machine_sizes, :virtual_machine_scale_sets, :virtual_machine_scale_set_vms, :configurable, :base_url, :options, :model_classes + attr_reader :usage_operations, :availability_sets, :virtual_machine_extension_images, :virtual_machine_extensions, :virtual_machines, :virtual_machine_images, :virtual_machine_sizes, :virtual_machine_scale_sets, :virtual_machine_scale_set_vms, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -132,12 +132,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @usage_operations = @client_0.usage_operations @availability_sets = @client_0.availability_sets @virtual_machine_extension_images = @client_0.virtual_machine_extension_images @virtual_machine_extensions = @client_0.virtual_machine_extensions @virtual_machines = @client_0.virtual_machines @virtual_machine_images = @client_0.virtual_machine_images - @usage_operations = @client_0.usage_operations @virtual_machine_sizes = @client_0.virtual_machine_sizes @virtual_machine_scale_sets = @client_0.virtual_machine_scale_sets @virtual_machine_scale_set_vms = @client_0.virtual_machine_scale_set_vms @@ -159,6 +159,21 @@ def method_missing(method, *args) end class ModelClasses + def sku + Azure::Compute::Mgmt::V2016_03_30::Models::Sku + end + def usage_name + Azure::Compute::Mgmt::V2016_03_30::Models::UsageName + end + def usage + Azure::Compute::Mgmt::V2016_03_30::Models::Usage + end + def resource + Azure::Compute::Mgmt::V2016_03_30::Models::Resource + end + def sub_resource + Azure::Compute::Mgmt::V2016_03_30::Models::SubResource + end def diagnostics_profile Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile end @@ -189,27 +204,18 @@ def virtual_machine_extension_instance_view def network_profile Azure::Compute::Mgmt::V2016_03_30::Models::NetworkProfile end - def resource - Azure::Compute::Mgmt::V2016_03_30::Models::Resource - end def boot_diagnostics Azure::Compute::Mgmt::V2016_03_30::Models::BootDiagnostics end def purchase_plan Azure::Compute::Mgmt::V2016_03_30::Models::PurchasePlan end - def sub_resource - Azure::Compute::Mgmt::V2016_03_30::Models::SubResource - end def data_disk_image Azure::Compute::Mgmt::V2016_03_30::Models::DataDiskImage end def api_error_base Azure::Compute::Mgmt::V2016_03_30::Models::ApiErrorBase end - def usage_name - Azure::Compute::Mgmt::V2016_03_30::Models::UsageName - end def virtual_machine_agent_instance_view Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineAgentInstanceView end @@ -252,9 +258,6 @@ def virtual_machine_list_result def storage_profile Azure::Compute::Mgmt::V2016_03_30::Models::StorageProfile end - def sku - Azure::Compute::Mgmt::V2016_03_30::Models::Sku - end def win_rmlistener Azure::Compute::Mgmt::V2016_03_30::Models::WinRMListener end @@ -357,9 +360,6 @@ def linux_configuration def virtual_machine_scale_set_instance_view_statuses_summary Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetInstanceViewStatusesSummary end - def usage - Azure::Compute::Mgmt::V2016_03_30::Models::Usage - end def virtual_machine_scale_set_vmextensions_summary Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMExtensionsSummary end diff --git a/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb index fadd41a8e0..39137758bd 100644 --- a/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb @@ -10,9 +10,9 @@ module Mgmt Features = Azure::Features::Mgmt::V2015_12_01::Features module Models + FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties FeatureResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult FeatureOperationsListResult = Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult - FeatureProperties = Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties end class FeaturesManagementClass @@ -45,15 +45,15 @@ def method_missing(method, *args) end class ModelClasses + def feature_properties + Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties + end def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult end def feature_operations_list_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureOperationsListResult end - def feature_properties - Azure::Features::Mgmt::V2015_12_01::Models::FeatureProperties - end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb index 9fd4849d18..51768d6ba0 100644 --- a/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb @@ -10,9 +10,9 @@ module Mgmt ManagementLocks = Azure::Locks::Mgmt::V2015_01_01::ManagementLocks module Models - ManagementLockListResult = Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockListResult ManagementLockObject = Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockObject LockLevel = Azure::Locks::Mgmt::V2015_01_01::Models::LockLevel + ManagementLockListResult = Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockListResult end class LocksManagementClass @@ -45,15 +45,15 @@ def method_missing(method, *args) end class ModelClasses - def management_lock_list_result - Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockListResult - end def management_lock_object Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockObject end def lock_level Azure::Locks::Mgmt::V2015_01_01::Models::LockLevel end + def management_lock_list_result + Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockListResult + end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb index 5575c7982b..930af16a6b 100644 --- a/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb @@ -27,16 +27,17 @@ module Mgmt LocalNetworkGateways = Azure::Network::Mgmt::V2015_06_15::LocalNetworkGateways module Models + UsageName = Azure::Network::Mgmt::V2015_06_15::Models::UsageName + Usage = Azure::Network::Mgmt::V2015_06_15::Models::Usage ExpressRouteCircuitsStatsListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult ExpressRouteCircuitListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitListResult + Resource = Azure::Network::Mgmt::V2015_06_15::Models::Resource SubResource = Azure::Network::Mgmt::V2015_06_15::Models::SubResource ExpressRouteServiceProviderBandwidthsOffered = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderBandwidthsOffered PublicIPAddressListResult = Azure::Network::Mgmt::V2015_06_15::Models::PublicIPAddressListResult ApplicationGatewayListResult = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayListResult ApplicationGatewayBackendAddress = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddress - Resource = Azure::Network::Mgmt::V2015_06_15::Models::Resource ConnectionResetSharedKey = Azure::Network::Mgmt::V2015_06_15::Models::ConnectionResetSharedKey - DnsNameAvailabilityResult = Azure::Network::Mgmt::V2015_06_15::Models::DnsNameAvailabilityResult NetworkInterfaceDnsSettings = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceDnsSettings NetworkSecurityGroupListResult = Azure::Network::Mgmt::V2015_06_15::Models::NetworkSecurityGroupListResult VirtualNetworkGatewayListResult = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayListResult @@ -51,7 +52,7 @@ module Models ExpressRouteCircuitPeeringListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringListResult UsagesListResult = Azure::Network::Mgmt::V2015_06_15::Models::UsagesListResult ExpressRouteCircuitSku = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSku - UsageName = Azure::Network::Mgmt::V2015_06_15::Models::UsageName + DnsNameAvailabilityResult = Azure::Network::Mgmt::V2015_06_15::Models::DnsNameAvailabilityResult ExpressRouteCircuitServiceProviderProperties = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitServiceProviderProperties RouteTableListResult = Azure::Network::Mgmt::V2015_06_15::Models::RouteTableListResult NetworkInterfaceListResult = Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceListResult @@ -63,15 +64,12 @@ module Models ExpressRouteCircuitRoutesTable = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitRoutesTable DhcpOptions = Azure::Network::Mgmt::V2015_06_15::Models::DhcpOptions ExpressRouteCircuitsRoutesTableListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsRoutesTableListResult - Usage = Azure::Network::Mgmt::V2015_06_15::Models::Usage ApplicationGatewaySku = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySku LocalNetworkGatewayListResult = Azure::Network::Mgmt::V2015_06_15::Models::LocalNetworkGatewayListResult VirtualNetworkGatewayConnectionListResult = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionListResult LoadBalancerListResult = Azure::Network::Mgmt::V2015_06_15::Models::LoadBalancerListResult VirtualNetworkGatewaySku = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySku - AzureAsyncOperationResult = Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult RouteListResult = Azure::Network::Mgmt::V2015_06_15::Models::RouteListResult - Error = Azure::Network::Mgmt::V2015_06_15::Models::Error SubnetListResult = Azure::Network::Mgmt::V2015_06_15::Models::SubnetListResult ExpressRouteServiceProviderListResult = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteServiceProviderListResult VpnClientParameters = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientParameters @@ -115,6 +113,7 @@ module Models VpnClientRevokedCertificate = Azure::Network::Mgmt::V2015_06_15::Models::VpnClientRevokedCertificate VirtualNetworkGateway = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGateway LocalNetworkGateway = Azure::Network::Mgmt::V2015_06_15::Models::LocalNetworkGateway + AzureAsyncOperationResult = Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult VirtualNetworkGatewayConnection = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnection ApplicationGatewaySkuName = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySkuName ApplicationGatewayTier = Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayTier @@ -132,18 +131,19 @@ module Models ExpressRouteCircuitPeeringAdvertisedPublicPrefixState = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringAdvertisedPublicPrefixState ExpressRouteCircuitPeeringType = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringType ExpressRouteCircuitPeeringState = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringState - ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSkuTier + Error = Azure::Network::Mgmt::V2015_06_15::Models::Error ExpressRouteCircuitSkuFamily = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSkuFamily - ServiceProviderProvisioningState = Azure::Network::Mgmt::V2015_06_15::Models::ServiceProviderProvisioningState + ExpressRouteCircuitSkuTier = Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSkuTier LoadDistribution = Azure::Network::Mgmt::V2015_06_15::Models::LoadDistribution - ProbeProtocol = Azure::Network::Mgmt::V2015_06_15::Models::ProbeProtocol + ServiceProviderProvisioningState = Azure::Network::Mgmt::V2015_06_15::Models::ServiceProviderProvisioningState NetworkOperationStatus = Azure::Network::Mgmt::V2015_06_15::Models::NetworkOperationStatus - VirtualNetworkGatewayType = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayType + ProbeProtocol = Azure::Network::Mgmt::V2015_06_15::Models::ProbeProtocol VpnType = Azure::Network::Mgmt::V2015_06_15::Models::VpnType - VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuName + VirtualNetworkGatewayType = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayType VirtualNetworkGatewaySkuTier = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuTier - ProcessorArchitecture = Azure::Network::Mgmt::V2015_06_15::Models::ProcessorArchitecture + VirtualNetworkGatewaySkuName = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuName VirtualNetworkGatewayConnectionType = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionType + ProcessorArchitecture = Azure::Network::Mgmt::V2015_06_15::Models::ProcessorArchitecture VirtualNetworkGatewayConnectionStatus = Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionStatus end @@ -194,12 +194,21 @@ def method_missing(method, *args) end class ModelClasses + def usage_name + Azure::Network::Mgmt::V2015_06_15::Models::UsageName + end + def usage + Azure::Network::Mgmt::V2015_06_15::Models::Usage + end def express_route_circuits_stats_list_result Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult end def express_route_circuit_list_result Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitListResult end + def resource + Azure::Network::Mgmt::V2015_06_15::Models::Resource + end def sub_resource Azure::Network::Mgmt::V2015_06_15::Models::SubResource end @@ -215,15 +224,9 @@ def application_gateway_list_result def application_gateway_backend_address Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewayBackendAddress end - def resource - Azure::Network::Mgmt::V2015_06_15::Models::Resource - end def connection_reset_shared_key Azure::Network::Mgmt::V2015_06_15::Models::ConnectionResetSharedKey end - def dns_name_availability_result - Azure::Network::Mgmt::V2015_06_15::Models::DnsNameAvailabilityResult - end def network_interface_dns_settings Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceDnsSettings end @@ -266,8 +269,8 @@ def usages_list_result def express_route_circuit_sku Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSku end - def usage_name - Azure::Network::Mgmt::V2015_06_15::Models::UsageName + def dns_name_availability_result + Azure::Network::Mgmt::V2015_06_15::Models::DnsNameAvailabilityResult end def express_route_circuit_service_provider_properties Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitServiceProviderProperties @@ -302,9 +305,6 @@ def dhcp_options def express_route_circuits_routes_table_list_result Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsRoutesTableListResult end - def usage - Azure::Network::Mgmt::V2015_06_15::Models::Usage - end def application_gateway_sku Azure::Network::Mgmt::V2015_06_15::Models::ApplicationGatewaySku end @@ -320,15 +320,9 @@ def load_balancer_list_result def virtual_network_gateway_sku Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySku end - def azure_async_operation_result - Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult - end def route_list_result Azure::Network::Mgmt::V2015_06_15::Models::RouteListResult end - def error - Azure::Network::Mgmt::V2015_06_15::Models::Error - end def subnet_list_result Azure::Network::Mgmt::V2015_06_15::Models::SubnetListResult end @@ -458,6 +452,9 @@ def virtual_network_gateway def local_network_gateway Azure::Network::Mgmt::V2015_06_15::Models::LocalNetworkGateway end + def azure_async_operation_result + Azure::Network::Mgmt::V2015_06_15::Models::AzureAsyncOperationResult + end def virtual_network_gateway_connection Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnection end @@ -509,42 +506,45 @@ def express_route_circuit_peering_type def express_route_circuit_peering_state Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitPeeringState end - def express_route_circuit_sku_tier - Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSkuTier + def error + Azure::Network::Mgmt::V2015_06_15::Models::Error end def express_route_circuit_sku_family Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSkuFamily end - def service_provider_provisioning_state - Azure::Network::Mgmt::V2015_06_15::Models::ServiceProviderProvisioningState + def express_route_circuit_sku_tier + Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitSkuTier end def load_distribution Azure::Network::Mgmt::V2015_06_15::Models::LoadDistribution end - def probe_protocol - Azure::Network::Mgmt::V2015_06_15::Models::ProbeProtocol + def service_provider_provisioning_state + Azure::Network::Mgmt::V2015_06_15::Models::ServiceProviderProvisioningState end def network_operation_status Azure::Network::Mgmt::V2015_06_15::Models::NetworkOperationStatus end - def virtual_network_gateway_type - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayType + def probe_protocol + Azure::Network::Mgmt::V2015_06_15::Models::ProbeProtocol end def vpn_type Azure::Network::Mgmt::V2015_06_15::Models::VpnType end - def virtual_network_gateway_sku_name - Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuName + def virtual_network_gateway_type + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayType end def virtual_network_gateway_sku_tier Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuTier end - def processor_architecture - Azure::Network::Mgmt::V2015_06_15::Models::ProcessorArchitecture + def virtual_network_gateway_sku_name + Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewaySkuName end def virtual_network_gateway_connection_type Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionType end + def processor_architecture + Azure::Network::Mgmt::V2015_06_15::Models::ProcessorArchitecture + end def virtual_network_gateway_connection_status Azure::Network::Mgmt::V2015_06_15::Models::VirtualNetworkGatewayConnectionStatus end diff --git a/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb index 855dd74068..507ebd429c 100644 --- a/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb @@ -7,21 +7,23 @@ module Azure::Profiles::V2017_03_09 module Resources module Mgmt - Deployments = Azure::Resources::Mgmt::V2016_02_01::Deployments - Providers = Azure::Resources::Mgmt::V2016_02_01::Providers ResourceGroups = Azure::Resources::Mgmt::V2016_02_01::ResourceGroups - Resources = Azure::Resources::Mgmt::V2016_02_01::Resources Tags = Azure::Resources::Mgmt::V2016_02_01::Tags DeploymentOperations = Azure::Resources::Mgmt::V2016_02_01::DeploymentOperations + Resources = Azure::Resources::Mgmt::V2016_02_01::Resources + Deployments = Azure::Resources::Mgmt::V2016_02_01::Deployments + Providers = Azure::Resources::Mgmt::V2016_02_01::Providers module Models - Sku = Azure::Resources::Mgmt::V2016_02_01::Models::Sku + Dependency = Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + Plan = Azure::Resources::Mgmt::V2016_02_01::Models::Plan DeploymentExtendedFilter = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtendedFilter Identity = Azure::Resources::Mgmt::V2016_02_01::Models::Identity ResourceGroupFilter = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupFilter TemplateLink = Azure::Resources::Mgmt::V2016_02_01::Models::TemplateLink DebugSetting = Azure::Resources::Mgmt::V2016_02_01::Models::DebugSetting ResourceListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceListResult + Sku = Azure::Resources::Mgmt::V2016_02_01::Models::Sku Deployment = Azure::Resources::Mgmt::V2016_02_01::Models::Deployment ResourceGroupProperties = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupProperties ResourceManagementErrorWithDetails = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceManagementErrorWithDetails @@ -30,13 +32,11 @@ module Models ResourceGroupListResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupListResult Provider = Azure::Resources::Mgmt::V2016_02_01::Models::Provider ResourcesMoveInfo = Azure::Resources::Mgmt::V2016_02_01::Models::ResourcesMoveInfo - Dependency = Azure::Resources::Mgmt::V2016_02_01::Models::Dependency ExportTemplateRequest = Azure::Resources::Mgmt::V2016_02_01::Models::ExportTemplateRequest DeploymentValidateResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentValidateResult - TagCount = Azure::Resources::Mgmt::V2016_02_01::Models::TagCount DeploymentListResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentListResult TagValue = Azure::Resources::Mgmt::V2016_02_01::Models::TagValue - Plan = Azure::Resources::Mgmt::V2016_02_01::Models::Plan + TagCount = Azure::Resources::Mgmt::V2016_02_01::Models::TagCount TagDetails = Azure::Resources::Mgmt::V2016_02_01::Models::TagDetails ParametersLink = Azure::Resources::Mgmt::V2016_02_01::Models::ParametersLink TagsListResult = Azure::Resources::Mgmt::V2016_02_01::Models::TagsListResult @@ -51,20 +51,20 @@ module Models DeploymentProperties = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentProperties DeploymentOperationsListResult = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentOperationsListResult BasicDependency = Azure::Resources::Mgmt::V2016_02_01::Models::BasicDependency - ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceProviderOperationDisplayProperties GenericResourceFilter = Azure::Resources::Mgmt::V2016_02_01::Models::GenericResourceFilter - Resource = Azure::Resources::Mgmt::V2016_02_01::Models::Resource DeploymentExtended = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtended - SubResource = Azure::Resources::Mgmt::V2016_02_01::Models::SubResource AliasPathType = Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType ResourceGroupExportResult = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroupExportResult GenericResource = Azure::Resources::Mgmt::V2016_02_01::Models::GenericResource + ResourceProviderOperationDisplayProperties = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceProviderOperationDisplayProperties DeploymentMode = Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentMode + Resource = Azure::Resources::Mgmt::V2016_02_01::Models::Resource ResourceIdentityType = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceIdentityType + SubResource = Azure::Resources::Mgmt::V2016_02_01::Models::SubResource end class ResourcesManagementClass - attr_reader :deployments, :providers, :resource_groups, :resources, :tags, :deployment_operations, :configurable, :base_url, :options, :model_classes + attr_reader :resource_groups, :tags, :deployment_operations, :resources, :deployments, :providers, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -74,12 +74,12 @@ def initialize(configurable, base_url=nil, options=nil) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) - @deployments = @client_0.deployments - @providers = @client_0.providers @resource_groups = @client_0.resource_groups - @resources = @client_0.resources @tags = @client_0.tags @deployment_operations = @client_0.deployment_operations + @resources = @client_0.resources + @deployments = @client_0.deployments + @providers = @client_0.providers @model_classes = ModelClasses.new end @@ -98,8 +98,11 @@ def method_missing(method, *args) end class ModelClasses - def sku - Azure::Resources::Mgmt::V2016_02_01::Models::Sku + def dependency + Azure::Resources::Mgmt::V2016_02_01::Models::Dependency + end + def plan + Azure::Resources::Mgmt::V2016_02_01::Models::Plan end def deployment_extended_filter Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtendedFilter @@ -119,6 +122,9 @@ def debug_setting def resource_list_result Azure::Resources::Mgmt::V2016_02_01::Models::ResourceListResult end + def sku + Azure::Resources::Mgmt::V2016_02_01::Models::Sku + end def deployment Azure::Resources::Mgmt::V2016_02_01::Models::Deployment end @@ -143,26 +149,20 @@ def provider def resources_move_info Azure::Resources::Mgmt::V2016_02_01::Models::ResourcesMoveInfo end - def dependency - Azure::Resources::Mgmt::V2016_02_01::Models::Dependency - end def export_template_request Azure::Resources::Mgmt::V2016_02_01::Models::ExportTemplateRequest end def deployment_validate_result Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentValidateResult end - def tag_count - Azure::Resources::Mgmt::V2016_02_01::Models::TagCount - end def deployment_list_result Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentListResult end def tag_value Azure::Resources::Mgmt::V2016_02_01::Models::TagValue end - def plan - Azure::Resources::Mgmt::V2016_02_01::Models::Plan + def tag_count + Azure::Resources::Mgmt::V2016_02_01::Models::TagCount end def tag_details Azure::Resources::Mgmt::V2016_02_01::Models::TagDetails @@ -206,21 +206,12 @@ def deployment_operations_list_result def basic_dependency Azure::Resources::Mgmt::V2016_02_01::Models::BasicDependency end - def resource_provider_operation_display_properties - Azure::Resources::Mgmt::V2016_02_01::Models::ResourceProviderOperationDisplayProperties - end def generic_resource_filter Azure::Resources::Mgmt::V2016_02_01::Models::GenericResourceFilter end - def resource - Azure::Resources::Mgmt::V2016_02_01::Models::Resource - end def deployment_extended Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentExtended end - def sub_resource - Azure::Resources::Mgmt::V2016_02_01::Models::SubResource - end def alias_path_type Azure::Resources::Mgmt::V2016_02_01::Models::AliasPathType end @@ -230,12 +221,21 @@ def resource_group_export_result def generic_resource Azure::Resources::Mgmt::V2016_02_01::Models::GenericResource end + def resource_provider_operation_display_properties + Azure::Resources::Mgmt::V2016_02_01::Models::ResourceProviderOperationDisplayProperties + end def deployment_mode Azure::Resources::Mgmt::V2016_02_01::Models::DeploymentMode end + def resource + Azure::Resources::Mgmt::V2016_02_01::Models::Resource + end def resource_identity_type Azure::Resources::Mgmt::V2016_02_01::Models::ResourceIdentityType end + def sub_resource + Azure::Resources::Mgmt::V2016_02_01::Models::SubResource + end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb index 7b84bfc0bc..066d48483a 100644 --- a/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb @@ -30,7 +30,6 @@ module Models CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2016_01_01::Models::CheckNameAvailabilityResult Resource = Azure::Storage::Mgmt::V2016_01_01::Models::Resource StorageAccount = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount - Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason SkuName = Azure::Storage::Mgmt::V2016_01_01::Models::SkuName SkuTier = Azure::Storage::Mgmt::V2016_01_01::Models::SkuTier AccessTier = Azure::Storage::Mgmt::V2016_01_01::Models::AccessTier @@ -39,6 +38,7 @@ module Models AccountStatus = Azure::Storage::Mgmt::V2016_01_01::Models::AccountStatus KeyPermission = Azure::Storage::Mgmt::V2016_01_01::Models::KeyPermission UsageUnit = Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit + Reason = Azure::Storage::Mgmt::V2016_01_01::Models::Reason end class StorageManagementClass @@ -129,9 +129,6 @@ def resource def storage_account Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccount end - def reason - Azure::Storage::Mgmt::V2016_01_01::Models::Reason - end def sku_name Azure::Storage::Mgmt::V2016_01_01::Models::SkuName end @@ -156,6 +153,9 @@ def key_permission def usage_unit Azure::Storage::Mgmt::V2016_01_01::Models::UsageUnit end + def reason + Azure::Storage::Mgmt::V2016_01_01::Models::Reason + end end end end diff --git a/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb index d995649c42..e176d198b6 100644 --- a/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb @@ -11,11 +11,11 @@ module Mgmt Tenants = Azure::Subscriptions::Mgmt::V2016_06_01::Tenants module Models + Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location Subscription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription SubscriptionListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionListResult LocationListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::LocationListResult TenantIdDescription = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription - Location = Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location TenantListResult = Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult SubscriptionPolicies = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionPolicies SubscriptionState = Azure::Subscriptions::Mgmt::V2016_06_01::Models::SubscriptionState @@ -53,6 +53,9 @@ def method_missing(method, *args) end class ModelClasses + def location + Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location + end def subscription Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription end @@ -65,9 +68,6 @@ def location_list_result def tenant_id_description Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantIdDescription end - def location - Azure::Subscriptions::Mgmt::V2016_06_01::Models::Location - end def tenant_list_result Azure::Subscriptions::Mgmt::V2016_06_01::Models::TenantListResult end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb index 66088da1a8..6f7f40319a 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_client.rb @@ -25,16 +25,15 @@ class ApiManagementClient < MsRestAzure::AzureServiceClient # @return [String] Version of the API to be used with the client request. attr_reader :api_version - # @return [String] The preferred language for the response. + # @return [String] Gets or sets the preferred language for the response. attr_accessor :accept_language - # @return [Integer] The retry timeout in seconds for Long Running - # Operations. Default value is 30. + # @return [Integer] Gets or sets the retry timeout in seconds for Long + # Running Operations. Default value is 30. attr_accessor :long_running_operation_retry_timeout - # @return [Boolean] Whether a unique x-ms-client-request-id should be - # generated. When set to true a unique x-ms-client-request-id value is - # generated and included in each request. Default is true. + # @return [Boolean] When set to true a unique x-ms-client-request-id value + # is generated and included in each request. Default is true. attr_accessor :generate_client_request_id # @return [Apis] apis @@ -227,9 +226,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -246,7 +242,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_api_management' - sdk_information = "#{sdk_information}/0.18.0" + if defined? Azure::ApiManagement::Mgmt::V2016_07_07::VERSION + sdk_information = "#{sdk_information}/#{Azure::ApiManagement::Mgmt::V2016_07_07::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_services.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_services.rb index e2292c5b18..62cfa0875b 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_services.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_management_services.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [ApiManagementServiceResource] operation results. # - def manage_deployments(resource_group_name, service_name, parameters, custom_headers:nil) - response = manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def manage_deployments(resource_group_name, service_name, parameters, custom_headers = nil) + response = manage_deployments_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -52,9 +52,9 @@ def manage_deployments(resource_group_name, service_name, parameters, custom_hea # @return [Concurrent::Promise] promise which provides async access to http # response. # - def manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:nil) + def manage_deployments_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ def manage_deployments_async(resource_group_name, service_name, parameters, cust # # @return [ApiManagementServiceResource] operation results. # - def restore(resource_group_name, service_name, parameters, custom_headers:nil) - response = restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def restore(resource_group_name, service_name, parameters, custom_headers = nil) + response = restore_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -100,9 +100,9 @@ def restore(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restore_async(resource_group_name, service_name, parameters, custom_headers:nil) + def restore_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_restore_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -132,8 +132,8 @@ def restore_async(resource_group_name, service_name, parameters, custom_headers: # # @return [ApiManagementServiceResource] operation results. # - def backup(resource_group_name, service_name, parameters, custom_headers:nil) - response = backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def backup(resource_group_name, service_name, parameters, custom_headers = nil) + response = backup_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -148,9 +148,9 @@ def backup(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backup_async(resource_group_name, service_name, parameters, custom_headers:nil) + def backup_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_backup_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -179,8 +179,8 @@ def backup_async(resource_group_name, service_name, parameters, custom_headers:n # # @return [ApiManagementServiceResource] operation results. # - def create_or_update(resource_group_name, service_name, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -197,8 +197,8 @@ def create_or_update(resource_group_name, service_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -214,24 +214,22 @@ def create_or_update_with_http_info(resource_group_name, service_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceResource.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -300,8 +298,8 @@ def create_or_update_async(resource_group_name, service_name, parameters, custom # # @return [ApiManagementServiceResource] operation results. # - def update(resource_group_name, service_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -316,9 +314,9 @@ def update(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, service_name, parameters, custom_headers:nil) + def update_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -344,8 +342,8 @@ def update_async(resource_group_name, service_name, parameters, custom_headers:n # # @return [Object] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -359,8 +357,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -373,18 +371,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -449,8 +443,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # # @return [ErrorResponse] operation results. # - def delete(resource_group_name, service_name, custom_headers:nil) - response = delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, custom_headers = nil) + response = delete_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -464,8 +458,8 @@ def delete(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, custom_headers:nil) - delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, custom_headers = nil) + delete_async(resource_group_name, service_name, custom_headers).value! end # @@ -478,18 +472,14 @@ def delete_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, custom_headers:nil) + def delete_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -543,8 +533,8 @@ def delete_async(resource_group_name, service_name, custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -557,8 +547,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -570,14 +560,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -630,8 +619,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Array] operation results. # - def list(custom_headers:nil) - first_page = list_as_lazy(custom_headers:custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end @@ -643,8 +632,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -655,13 +644,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -717,8 +705,8 @@ def list_async(custom_headers:nil) # # @return [ApiManagementServiceGetSsoTokenResult] operation results. # - def get_sso_token(resource_group_name, service_name, custom_headers:nil) - response = get_sso_token_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_sso_token(resource_group_name, service_name, custom_headers = nil) + response = get_sso_token_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -733,8 +721,8 @@ def get_sso_token(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_sso_token_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_sso_token_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_sso_token_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_sso_token_async(resource_group_name, service_name, custom_headers).value! end # @@ -748,18 +736,14 @@ def get_sso_token_with_http_info(resource_group_name, service_name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_sso_token_async(resource_group_name, service_name, custom_headers:nil) + def get_sso_token_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -814,8 +798,8 @@ def get_sso_token_async(resource_group_name, service_name, custom_headers:nil) # # @return [ApiManagementServiceNameAvailabilityResult] operation results. # - def check_name_availability(parameters, custom_headers:nil) - response = check_name_availability_async(parameters, custom_headers:custom_headers).value! + def check_name_availability(parameters, custom_headers = nil) + response = check_name_availability_async(parameters, custom_headers).value! response.body unless response.nil? end @@ -829,8 +813,8 @@ def check_name_availability(parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers:nil) - check_name_availability_async(parameters, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers = nil) + check_name_availability_async(parameters, custom_headers).value! end # @@ -843,19 +827,20 @@ def check_name_availability_with_http_info(parameters, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers:nil) + def check_name_availability_async(parameters, custom_headers = nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -915,8 +900,8 @@ def check_name_availability_async(parameters, custom_headers:nil) # # @return [CertificateInformation] operation results. # - def upload_certificate(resource_group_name, service_name, parameters, custom_headers:nil) - response = upload_certificate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def upload_certificate(resource_group_name, service_name, parameters, custom_headers = nil) + response = upload_certificate_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -933,8 +918,8 @@ def upload_certificate(resource_group_name, service_name, parameters, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def upload_certificate_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - upload_certificate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def upload_certificate_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + upload_certificate_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -950,24 +935,22 @@ def upload_certificate_with_http_info(resource_group_name, service_name, paramet # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def upload_certificate_async(resource_group_name, service_name, parameters, custom_headers:nil) + def upload_certificate_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceUploadCertificateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1028,8 +1011,8 @@ def upload_certificate_async(resource_group_name, service_name, parameters, cust # # @return [ApiManagementServiceResource] operation results. # - def update_hostname(resource_group_name, service_name, parameters, custom_headers:nil) - response = update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def update_hostname(resource_group_name, service_name, parameters, custom_headers = nil) + response = update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1044,9 +1027,9 @@ def update_hostname(resource_group_name, service_name, parameters, custom_header # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_hostname_async(resource_group_name, service_name, parameters, custom_headers:nil) + def update_hostname_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1077,8 +1060,8 @@ def update_hostname_async(resource_group_name, service_name, parameters, custom_ # # @return [ApiManagementServiceResource] operation results. # - def begin_manage_deployments(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_manage_deployments(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1097,8 +1080,8 @@ def begin_manage_deployments(resource_group_name, service_name, parameters, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_manage_deployments_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_manage_deployments_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1116,24 +1099,22 @@ def begin_manage_deployments_with_http_info(resource_group_name, service_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceManageDeploymentsParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1194,8 +1175,8 @@ def begin_manage_deployments_async(resource_group_name, service_name, parameters # # @return [ApiManagementServiceResource] operation results. # - def begin_restore(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_restore(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_restore_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1213,8 +1194,8 @@ def begin_restore(resource_group_name, service_name, parameters, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restore_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_restore_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_restore_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1231,24 +1212,22 @@ def begin_restore_with_http_info(resource_group_name, service_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restore_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_restore_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceBackupRestoreParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1309,8 +1288,8 @@ def begin_restore_async(resource_group_name, service_name, parameters, custom_he # # @return [ApiManagementServiceResource] operation results. # - def begin_backup(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_backup(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_backup_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1328,8 +1307,8 @@ def begin_backup(resource_group_name, service_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_backup_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1346,24 +1325,22 @@ def begin_backup_with_http_info(resource_group_name, service_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backup_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_backup_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceBackupRestoreParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1422,8 +1399,8 @@ def begin_backup_async(resource_group_name, service_name, parameters, custom_hea # # @return [ApiManagementServiceResource] operation results. # - def begin_update(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_update_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1439,8 +1416,8 @@ def begin_update(resource_group_name, service_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_update_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1455,24 +1432,22 @@ def begin_update_with_http_info(resource_group_name, service_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_update_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceBaseParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1533,8 +1508,8 @@ def begin_update_async(resource_group_name, service_name, parameters, custom_hea # # @return [ApiManagementServiceResource] operation results. # - def begin_update_hostname(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update_hostname(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1552,8 +1527,8 @@ def begin_update_hostname(resource_group_name, service_name, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_hostname_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update_hostname_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1570,24 +1545,22 @@ def begin_update_hostname_with_http_info(resource_group_name, service_name, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiManagementServiceUpdateHostnameParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1644,8 +1617,8 @@ def begin_update_hostname_async(resource_group_name, service_name, parameters, c # # @return [ApiManagementServiceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers:nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers = nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1659,8 +1632,8 @@ def list_by_resource_group_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_resource_group_next_async(next_page_link, custom_headers).value! end # @@ -1673,12 +1646,11 @@ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers:nil) + def list_by_resource_group_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1732,8 +1704,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [ApiManagementServiceListResult] operation results. # - def list_next(next_page_link, custom_headers:nil) - response = list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1747,8 +1719,8 @@ def list_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers:nil) - list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! end # @@ -1761,12 +1733,11 @@ def list_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers:nil) + def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1820,12 +1791,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ApiManagementServiceListResult] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end @@ -1840,12 +1811,12 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) # @return [ApiManagementServiceListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers:custom_headers) + list_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_operations.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_operations.rb index f3e85ef535..93b018953b 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_operations.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_operations.rb @@ -42,8 +42,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_api(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -68,8 +68,8 @@ def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! end # @@ -93,24 +93,15 @@ def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_api_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +160,8 @@ def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top # # @return [OperationContract] operation results. # - def get(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! response.body unless response.nil? end @@ -188,8 +179,8 @@ def get(resource_group_name, service_name, api_id, operation_id, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! end # @@ -206,26 +197,16 @@ def get_with_http_info(resource_group_name, service_name, api_id, operation_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -284,8 +265,8 @@ def get_async(resource_group_name, service_name, api_id, operation_id, custom_he # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers).value! nil end @@ -304,8 +285,8 @@ def create_or_update(resource_group_name, service_name, api_id, operation_id, pa # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers).value! end # @@ -323,32 +304,24 @@ def create_or_update_with_http_info(resource_group_name, service_name, api_id, o # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::OperationContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -402,8 +375,8 @@ def create_or_update_async(resource_group_name, service_name, api_id, operation_ # will be added to the HTTP request. # # - def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! nil end @@ -425,8 +398,8 @@ def update(resource_group_name, service_name, api_id, operation_id, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! end # @@ -447,20 +420,11 @@ def update_with_http_info(resource_group_name, service_name, api_id, operation_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -468,13 +432,14 @@ def update_async(resource_group_name, service_name, api_id, operation_id, parame request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::PatchParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -527,8 +492,8 @@ def update_async(resource_group_name, service_name, api_id, operation_id, parame # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! nil end @@ -549,8 +514,8 @@ def delete(resource_group_name, service_name, api_id, operation_id, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! end # @@ -570,27 +535,17 @@ def delete_with_http_info(resource_group_name, service_name, api_id, operation_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -636,8 +591,8 @@ def delete_async(resource_group_name, service_name, api_id, operation_id, if_mat # # @return [OperationCollection] operation results. # - def list_by_api_next(next_page_link, custom_headers:nil) - response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -651,8 +606,8 @@ def list_by_api_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_api_next_with_http_info(next_page_link, custom_headers:nil) - list_by_api_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! end # @@ -665,12 +620,11 @@ def list_by_api_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_api_next_async(next_page_link, custom_headers:nil) + def list_by_api_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -736,12 +690,12 @@ def list_by_api_next_async(next_page_link, custom_headers:nil) # @return [OperationCollection] which provide lazy access to pages of the # response. # - def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_api_next_async(next_page_link, custom_headers:custom_headers) + list_by_api_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_products.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_products.rb index ca5eb25c97..6bee552064 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_products.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/api_products.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_api(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_api(resource_group_name, service_name, api_id, filter:nil, top:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! end # @@ -87,24 +87,15 @@ def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_api_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -159,8 +150,8 @@ def list_by_api_async(resource_group_name, service_name, api_id, filter:nil, top # # @return [ProductCollection] operation results. # - def list_by_api_next(next_page_link, custom_headers:nil) - response = list_by_api_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -174,8 +165,8 @@ def list_by_api_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_api_next_with_http_info(next_page_link, custom_headers:nil) - list_by_api_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! end # @@ -188,12 +179,11 @@ def list_by_api_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_api_next_async(next_page_link, custom_headers:nil) + def list_by_api_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,12 +247,12 @@ def list_by_api_next_async(next_page_link, custom_headers:nil) # @return [ProductCollection] which provide lazy access to pages of the # response. # - def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_api_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_api_next_async(next_page_link, custom_headers:custom_headers) + list_by_api_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/apis.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/apis.rb index d86b93c6ec..36322450f0 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/apis.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/apis.rb @@ -41,8 +41,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -66,8 +66,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -90,20 +90,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -160,8 +154,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [ApiContract] operation results. # - def get(resource_group_name, service_name, api_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, custom_headers).value! response.body unless response.nil? end @@ -177,8 +171,8 @@ def get(resource_group_name, service_name, api_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, custom_headers).value! end # @@ -193,22 +187,15 @@ def get_with_http_info(resource_group_name, service_name, api_id, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -269,8 +256,8 @@ def get_async(resource_group_name, service_name, api_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! nil end @@ -291,8 +278,8 @@ def create_or_update(resource_group_name, service_name, api_id, parameters, if_m # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! end # @@ -312,29 +299,24 @@ def create_or_update_with_http_info(resource_group_name, service_name, api_id, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ApiContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -386,8 +368,8 @@ def create_or_update_async(resource_group_name, service_name, api_id, parameters # will be added to the HTTP request. # # - def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! nil end @@ -407,8 +389,8 @@ def update(resource_group_name, service_name, api_id, parameters, if_match, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! end # @@ -427,16 +409,10 @@ def update_with_http_info(resource_group_name, service_name, api_id, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -444,13 +420,14 @@ def update_async(resource_group_name, service_name, api_id, parameters, if_match request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::PatchParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -501,8 +478,8 @@ def update_async(resource_group_name, service_name, api_id, parameters, if_match # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, api_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! nil end @@ -521,8 +498,8 @@ def delete(resource_group_name, service_name, api_id, if_match, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! end # @@ -540,23 +517,16 @@ def delete_with_http_info(resource_group_name, service_name, api_id, if_match, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,8 +574,8 @@ def delete_async(resource_group_name, service_name, api_id, if_match, custom_hea # # @return [ApiExportResult] operation results. # - def export(resource_group_name, service_name, api_id, custom_headers:nil) - response = export_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def export(resource_group_name, service_name, api_id, custom_headers = nil) + response = export_async(resource_group_name, service_name, api_id, custom_headers).value! response.body unless response.nil? end @@ -621,8 +591,8 @@ def export(resource_group_name, service_name, api_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil) - export_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def export_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + export_async(resource_group_name, service_name, api_id, custom_headers).value! end # @@ -637,22 +607,15 @@ def export_with_http_info(resource_group_name, service_name, api_id, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_async(resource_group_name, service_name, api_id, custom_headers:nil) + def export_async(resource_group_name, service_name, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -707,8 +670,8 @@ def export_async(resource_group_name, service_name, api_id, custom_headers:nil) # # @return [ApiCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -722,8 +685,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -736,12 +699,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -805,12 +767,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # # @return [ApiCollection] which provide lazy access to pages of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/authorization_servers.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/authorization_servers.rb index 12d861ac01..46accc1d50 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/authorization_servers.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/authorization_servers.rb @@ -41,8 +41,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -66,8 +66,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -90,20 +90,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -159,8 +153,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [OAuth2AuthorizationServerContract] operation results. # - def get(resource_group_name, service_name, authsid, custom_headers:nil) - response = get_async(resource_group_name, service_name, authsid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, authsid, custom_headers = nil) + response = get_async(resource_group_name, service_name, authsid, custom_headers).value! response.body unless response.nil? end @@ -175,8 +169,8 @@ def get(resource_group_name, service_name, authsid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, authsid, custom_headers:nil) - get_async(resource_group_name, service_name, authsid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, authsid, custom_headers = nil) + get_async(resource_group_name, service_name, authsid, custom_headers).value! end # @@ -190,21 +184,15 @@ def get_with_http_info(resource_group_name, service_name, authsid, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, authsid, custom_headers:nil) + def get_async(resource_group_name, service_name, authsid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? - fail ArgumentError, "'authsid' should satisfy the constraint - 'MaxLength': '256'" if !authsid.nil? && authsid.length > 256 - fail ArgumentError, "'authsid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !authsid.nil? && authsid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +249,8 @@ def get_async(resource_group_name, service_name, authsid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, authsid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, authsid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers).value! nil end @@ -279,8 +267,8 @@ def create_or_update(resource_group_name, service_name, authsid, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, authsid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, authsid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers).value! end # @@ -296,27 +284,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, authsid, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? - fail ArgumentError, "'authsid' should satisfy the constraint - 'MaxLength': '256'" if !authsid.nil? && authsid.length > 256 - fail ArgumentError, "'authsid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !authsid.nil? && authsid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::OAuth2AuthorizationServerContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -368,8 +352,8 @@ def create_or_update_async(resource_group_name, service_name, authsid, parameter # will be added to the HTTP request. # # - def update(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! nil end @@ -389,8 +373,8 @@ def update(resource_group_name, service_name, authsid, parameters, if_match, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! end # @@ -409,12 +393,9 @@ def update_with_http_info(resource_group_name, service_name, authsid, parameters # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -423,13 +404,14 @@ def update_async(resource_group_name, service_name, authsid, parameters, if_matc request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::OAuth2AuthorizationServerUpdateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -479,8 +461,8 @@ def update_async(resource_group_name, service_name, authsid, parameters, if_matc # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, authsid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, authsid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, authsid, if_match, custom_headers).value! nil end @@ -498,8 +480,8 @@ def delete(resource_group_name, service_name, authsid, if_match, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, authsid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, authsid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, authsid, if_match, custom_headers).value! end # @@ -516,12 +498,9 @@ def delete_with_http_info(resource_group_name, service_name, authsid, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, authsid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, authsid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -529,7 +508,6 @@ def delete_async(resource_group_name, service_name, authsid, if_match, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -576,8 +554,8 @@ def delete_async(resource_group_name, service_name, authsid, if_match, custom_he # # @return [AuthorizationServerCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -592,8 +570,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -607,12 +585,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -677,12 +654,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [AuthorizationServerCollection] which provide lazy access to pages of # the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/backends.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/backends.rb index 90b9a7de3e..885f2fc8dd 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/backends.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/backends.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -157,8 +151,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [BackendResponse] operation results. # - def get(resource_group_name, service_name, backendid, custom_headers:nil) - response = get_async(resource_group_name, service_name, backendid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, backendid, custom_headers = nil) + response = get_async(resource_group_name, service_name, backendid, custom_headers).value! response.body unless response.nil? end @@ -174,8 +168,8 @@ def get(resource_group_name, service_name, backendid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, backendid, custom_headers:nil) - get_async(resource_group_name, service_name, backendid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, backendid, custom_headers = nil) + get_async(resource_group_name, service_name, backendid, custom_headers).value! end # @@ -190,22 +184,15 @@ def get_with_http_info(resource_group_name, service_name, backendid, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, backendid, custom_headers:nil) + def get_async(resource_group_name, service_name, backendid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +249,8 @@ def get_async(resource_group_name, service_name, backendid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, backendid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, backendid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers).value! nil end @@ -280,8 +267,8 @@ def create_or_update(resource_group_name, service_name, backendid, parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, backendid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, backendid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers).value! end # @@ -297,28 +284,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, backendid # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::BackendContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -370,8 +352,8 @@ def create_or_update_async(resource_group_name, service_name, backendid, paramet # will be added to the HTTP request. # # - def update(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! nil end @@ -391,8 +373,8 @@ def update(resource_group_name, service_name, backendid, parameters, if_match, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! end # @@ -411,16 +393,10 @@ def update_with_http_info(resource_group_name, service_name, backendid, paramete # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -428,13 +404,14 @@ def update_async(resource_group_name, service_name, backendid, parameters, if_ma request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::BackendUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -485,8 +462,8 @@ def update_async(resource_group_name, service_name, backendid, parameters, if_ma # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, backendid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, backendid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, backendid, if_match, custom_headers).value! nil end @@ -505,8 +482,8 @@ def delete(resource_group_name, service_name, backendid, if_match, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, backendid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, backendid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, backendid, if_match, custom_headers).value! end # @@ -524,23 +501,16 @@ def delete_with_http_info(resource_group_name, service_name, backendid, if_match # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, backendid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, backendid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -586,8 +556,8 @@ def delete_async(resource_group_name, service_name, backendid, if_match, custom_ # # @return [BackendCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -601,8 +571,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -615,12 +585,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -684,12 +653,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [BackendCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/certificates.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/certificates.rb index 96855a8861..7204c721a6 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/certificates.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/certificates.rb @@ -44,8 +44,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -99,20 +99,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +162,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [CertificateContract] operation results. # - def get(resource_group_name, service_name, certificate_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, certificate_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, certificate_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, certificate_id, custom_headers).value! response.body unless response.nil? end @@ -184,8 +178,8 @@ def get(resource_group_name, service_name, certificate_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, certificate_id, custom_headers:nil) - get_async(resource_group_name, service_name, certificate_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, certificate_id, custom_headers = nil) + get_async(resource_group_name, service_name, certificate_id, custom_headers).value! end # @@ -199,19 +193,15 @@ def get_with_http_info(resource_group_name, service_name, certificate_id, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, certificate_id, custom_headers:nil) + def get_async(resource_group_name, service_name, certificate_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -272,8 +262,8 @@ def get_async(resource_group_name, service_name, certificate_id, custom_headers: # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, certificate_id, parameters, if_match:nil, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match, custom_headers).value! nil end @@ -294,8 +284,8 @@ def create_or_update(resource_group_name, service_name, certificate_id, paramete # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, certificate_id, parameters, if_match:nil, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match, custom_headers).value! end # @@ -315,29 +305,24 @@ def create_or_update_with_http_info(resource_group_name, service_name, certifica # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match:nil, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MaxLength': '256'" if !certificate_id.nil? && certificate_id.length > 256 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MinLength': '1'" if !certificate_id.nil? && certificate_id.length < 1 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !certificate_id.nil? && certificate_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::CertificateCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -387,8 +372,8 @@ def create_or_update_async(resource_group_name, service_name, certificate_id, pa # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, certificate_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers).value! nil end @@ -406,8 +391,8 @@ def delete(resource_group_name, service_name, certificate_id, if_match, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, certificate_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers).value! end # @@ -424,12 +409,9 @@ def delete_with_http_info(resource_group_name, service_name, certificate_id, if_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -437,7 +419,6 @@ def delete_async(resource_group_name, service_name, certificate_id, if_match, cu request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -483,8 +464,8 @@ def delete_async(resource_group_name, service_name, certificate_id, if_match, cu # # @return [CertificateCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -498,8 +479,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -512,12 +493,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -585,12 +565,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [CertificateCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb index 13f6ff825e..554ab2b332 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb @@ -52,8 +52,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_group(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_group_as_lazy(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_group(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_group_as_lazy(resource_group_name, service_name, group_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -88,8 +88,8 @@ def list_by_group(resource_group_name, service_name, group_id, filter:nil, top:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_group_with_http_info(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_group_async(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_group_with_http_info(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_group_async(resource_group_name, service_name, group_id, filter, top, skip, custom_headers).value! end # @@ -123,24 +123,15 @@ def list_by_group_with_http_info(resource_group_name, service_name, group_id, fi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_group_async(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_group_async(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -199,8 +190,8 @@ def list_by_group_async(resource_group_name, service_name, group_id, filter:nil, # # @return [ErrorBodyContract] operation results. # - def add(resource_group_name, service_name, group_id, uid, custom_headers:nil) - response = add_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def add(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = add_async(resource_group_name, service_name, group_id, uid, custom_headers).value! response.body unless response.nil? end @@ -218,8 +209,8 @@ def add(resource_group_name, service_name, group_id, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers:nil) - add_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def add_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + add_async(resource_group_name, service_name, group_id, uid, custom_headers).value! end # @@ -236,26 +227,16 @@ def add_with_http_info(resource_group_name, service_name, group_id, uid, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_async(resource_group_name, service_name, group_id, uid, custom_headers:nil) + def add_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +295,8 @@ def add_async(resource_group_name, service_name, group_id, uid, custom_headers:n # # @return [ErrorBodyContract] operation results. # - def remove(resource_group_name, service_name, group_id, uid, custom_headers:nil) - response = remove_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def remove(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = remove_async(resource_group_name, service_name, group_id, uid, custom_headers).value! response.body unless response.nil? end @@ -333,8 +314,8 @@ def remove(resource_group_name, service_name, group_id, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def remove_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers:nil) - remove_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def remove_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + remove_async(resource_group_name, service_name, group_id, uid, custom_headers).value! end # @@ -351,26 +332,16 @@ def remove_with_http_info(resource_group_name, service_name, group_id, uid, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def remove_async(resource_group_name, service_name, group_id, uid, custom_headers:nil) + def remove_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +396,8 @@ def remove_async(resource_group_name, service_name, group_id, uid, custom_header # # @return [UserCollection] operation results. # - def list_by_group_next(next_page_link, custom_headers:nil) - response = list_by_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_group_next(next_page_link, custom_headers = nil) + response = list_by_group_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -440,8 +411,8 @@ def list_by_group_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_group_next_with_http_info(next_page_link, custom_headers:nil) - list_by_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_group_next_async(next_page_link, custom_headers).value! end # @@ -454,12 +425,11 @@ def list_by_group_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_group_next_async(next_page_link, custom_headers:nil) + def list_by_group_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -534,12 +504,12 @@ def list_by_group_next_async(next_page_link, custom_headers:nil) # # @return [UserCollection] which provide lazy access to pages of the response. # - def list_by_group_as_lazy(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_group_async(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_group_as_lazy(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_group_async(resource_group_name, service_name, group_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_group_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/groups.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/groups.rb index 765650c69c..2f7a930fed 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/groups.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/groups.rb @@ -44,8 +44,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -99,20 +99,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +163,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [GroupContract] operation results. # - def get(resource_group_name, service_name, group_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, group_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, group_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, group_id, custom_headers).value! response.body unless response.nil? end @@ -186,8 +180,8 @@ def get(resource_group_name, service_name, group_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, group_id, custom_headers:nil) - get_async(resource_group_name, service_name, group_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, group_id, custom_headers = nil) + get_async(resource_group_name, service_name, group_id, custom_headers).value! end # @@ -202,22 +196,15 @@ def get_with_http_info(resource_group_name, service_name, group_id, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, group_id, custom_headers:nil) + def get_async(resource_group_name, service_name, group_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -274,8 +261,8 @@ def get_async(resource_group_name, service_name, group_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, group_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, group_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers).value! nil end @@ -292,8 +279,8 @@ def create_or_update(resource_group_name, service_name, group_id, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, group_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, group_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers).value! end # @@ -309,28 +296,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, group_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::GroupCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -383,8 +365,8 @@ def create_or_update_async(resource_group_name, service_name, group_id, paramete # # @return [ErrorBodyContract] operation results. # - def update(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! response.body unless response.nil? end @@ -404,8 +386,8 @@ def update(resource_group_name, service_name, group_id, parameters, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! end # @@ -424,16 +406,10 @@ def update_with_http_info(resource_group_name, service_name, group_id, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -441,13 +417,14 @@ def update_async(resource_group_name, service_name, group_id, parameters, if_mat request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::GroupUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -509,8 +486,8 @@ def update_async(resource_group_name, service_name, group_id, parameters, if_mat # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, group_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, group_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, group_id, if_match, custom_headers).value! response.body unless response.nil? end @@ -529,8 +506,8 @@ def delete(resource_group_name, service_name, group_id, if_match, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, group_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, group_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, group_id, if_match, custom_headers).value! end # @@ -548,23 +525,16 @@ def delete_with_http_info(resource_group_name, service_name, group_id, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, group_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, group_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +590,8 @@ def delete_async(resource_group_name, service_name, group_id, if_match, custom_h # # @return [GroupCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -635,8 +605,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -649,12 +619,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -721,12 +690,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # # @return [GroupCollection] which provide lazy access to pages of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/identity_providers.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/identity_providers.rb index b31cee8816..d9061cf76d 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/identity_providers.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/identity_providers.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [IdentityProviderList] operation results. # - def list_by_service(resource_group_name, service_name, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ def list_by_service(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! end # @@ -63,18 +63,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +129,8 @@ def list_by_service_async(resource_group_name, service_name, custom_headers:nil) # # @return [IdentityProviderContract] operation results. # - def get(resource_group_name, service_name, identity_provider_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, identity_provider_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! response.body unless response.nil? end @@ -152,8 +148,8 @@ def get(resource_group_name, service_name, identity_provider_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, identity_provider_name, custom_headers:nil) - get_async(resource_group_name, service_name, identity_provider_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + get_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! end # @@ -170,19 +166,15 @@ def get_with_http_info(resource_group_name, service_name, identity_provider_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, identity_provider_name, custom_headers:nil) + def get_async(resource_group_name, service_name, identity_provider_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -240,8 +232,8 @@ def get_async(resource_group_name, service_name, identity_provider_name, custom_ # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, identity_provider_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers).value! nil end @@ -259,8 +251,8 @@ def create_or_update(resource_group_name, service_name, identity_provider_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers).value! end # @@ -277,12 +269,9 @@ def create_or_update_with_http_info(resource_group_name, service_name, identity_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -290,12 +279,13 @@ def create_or_update_async(resource_group_name, service_name, identity_provider_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::IdentityProviderContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -348,8 +338,8 @@ def create_or_update_async(resource_group_name, service_name, identity_provider_ # will be added to the HTTP request. # # - def update(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! nil end @@ -370,8 +360,8 @@ def update(resource_group_name, service_name, identity_provider_name, parameters # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! end # @@ -391,12 +381,9 @@ def update_with_http_info(resource_group_name, service_name, identity_provider_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -405,13 +392,14 @@ def update_async(resource_group_name, service_name, identity_provider_name, para request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::IdentityProviderUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -463,8 +451,8 @@ def update_async(resource_group_name, service_name, identity_provider_name, para # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers).value! nil end @@ -484,8 +472,8 @@ def delete(resource_group_name, service_name, identity_provider_name, if_match, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers).value! end # @@ -504,12 +492,9 @@ def delete_with_http_info(resource_group_name, service_name, identity_provider_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -517,7 +502,6 @@ def delete_async(resource_group_name, service_name, identity_provider_name, if_m request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/loggers.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/loggers.rb index 69ccd9a0e5..8293ed7eee 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/loggers.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/loggers.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -156,8 +150,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [LoggerResponse] operation results. # - def get(resource_group_name, service_name, loggerid, custom_headers:nil) - response = get_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, loggerid, custom_headers = nil) + response = get_async(resource_group_name, service_name, loggerid, custom_headers).value! response.body unless response.nil? end @@ -172,8 +166,8 @@ def get(resource_group_name, service_name, loggerid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, loggerid, custom_headers:nil) - get_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, loggerid, custom_headers = nil) + get_async(resource_group_name, service_name, loggerid, custom_headers).value! end # @@ -187,19 +181,15 @@ def get_with_http_info(resource_group_name, service_name, loggerid, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, loggerid, custom_headers:nil) + def get_async(resource_group_name, service_name, loggerid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +245,8 @@ def get_async(resource_group_name, service_name, loggerid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, loggerid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, loggerid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers).value! nil end @@ -272,8 +262,8 @@ def create_or_update(resource_group_name, service_name, loggerid, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, loggerid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, loggerid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers).value! end # @@ -288,27 +278,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, loggerid, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? - fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '256'" if !loggerid.nil? && loggerid.length > 256 - fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !loggerid.nil? && loggerid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::LoggerCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -359,8 +345,8 @@ def create_or_update_async(resource_group_name, service_name, loggerid, paramete # will be added to the HTTP request. # # - def update(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! nil end @@ -379,8 +365,8 @@ def update(resource_group_name, service_name, loggerid, parameters, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! end # @@ -398,12 +384,9 @@ def update_with_http_info(resource_group_name, service_name, loggerid, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -412,13 +395,14 @@ def update_async(resource_group_name, service_name, loggerid, parameters, if_mat request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::LoggerUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -468,8 +452,8 @@ def update_async(resource_group_name, service_name, loggerid, parameters, if_mat # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, loggerid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers).value! nil end @@ -487,8 +471,8 @@ def delete(resource_group_name, service_name, loggerid, if_match, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers).value! end # @@ -505,12 +489,9 @@ def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -518,7 +499,6 @@ def delete_async(resource_group_name, service_name, loggerid, if_match, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -564,8 +544,8 @@ def delete_async(resource_group_name, service_name, loggerid, if_match, custom_h # # @return [LoggerCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -579,8 +559,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -593,12 +573,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -662,12 +641,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [LoggerCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_contract.rb index 01865ce083..a0997e121f 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_contract.rb @@ -32,7 +32,6 @@ class AccessInformationContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccessInformationContract', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'AccessInformationContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb index fd0538d57c..e408e6cc2b 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb @@ -24,7 +24,6 @@ class AccessInformationUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccessInformationUpdateParameters', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'AccessInformationUpdateParameters', model_properties: { enabled: { - client_side_validation: true, required: true, serialized_name: 'enabled', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/additional_region.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/additional_region.rb index d3be14026b..6e4e200be0 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/additional_region.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/additional_region.rb @@ -41,7 +41,6 @@ class AdditionalRegion # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegion', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'AdditionalRegion', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -57,7 +55,6 @@ def self.mapper() } }, sku_type: { - client_side_validation: true, required: true, serialized_name: 'skuType', type: { @@ -66,7 +63,6 @@ def self.mapper() } }, sku_unit_count: { - client_side_validation: true, required: false, serialized_name: 'skuUnitCount', default_value: 1, @@ -78,14 +74,12 @@ def self.mapper() } }, static_ips: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'staticIPs', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -95,7 +89,6 @@ def self.mapper() } }, vpnconfiguration: { - client_side_validation: true, required: false, serialized_name: 'vpnconfiguration', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_collection.rb index 85af9fe7c5..c157650d56 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'ApiCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_contract.rb index fd9ea5b632..4f62d0ff51 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_contract.rb @@ -55,7 +55,6 @@ class ApiContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiContract', type: { @@ -63,7 +62,6 @@ def self.mapper() class_name: 'ApiContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -72,7 +70,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -84,7 +81,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -92,7 +88,6 @@ def self.mapper() } }, service_url: { - client_side_validation: true, required: true, serialized_name: 'serviceUrl', constraints: { @@ -104,7 +99,6 @@ def self.mapper() } }, path: { - client_side_validation: true, required: true, serialized_name: 'path', constraints: { @@ -116,13 +110,11 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: true, serialized_name: 'protocols', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiProtocolContractElementType', type: { @@ -133,7 +125,6 @@ def self.mapper() } }, authentication_settings: { - client_side_validation: true, required: false, serialized_name: 'authenticationSettings', type: { @@ -142,7 +133,6 @@ def self.mapper() } }, subscription_key_parameter_names: { - client_side_validation: true, required: false, serialized_name: 'subscriptionKeyParameterNames', type: { @@ -151,7 +141,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_export_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_export_result.rb index ad20ac1eb9..e29796e427 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_export_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_export_result.rb @@ -29,7 +29,6 @@ class ApiExportResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiExportResult', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ApiExportResult', model_properties: { content: { - client_side_validation: true, required: false, serialized_name: 'content', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, status_code: { - client_side_validation: true, required: false, serialized_name: 'statusCode', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, request_id: { - client_side_validation: true, required: false, serialized_name: 'requestId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb index c47133c1cd..abe01284e0 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb @@ -36,7 +36,6 @@ class ApiManagementServiceBackupRestoreParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceBackupRestoreParameters', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'ApiManagementServiceBackupRestoreParameters', model_properties: { storage_account: { - client_side_validation: true, required: true, serialized_name: 'storageAccount', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, access_key: { - client_side_validation: true, required: true, serialized_name: 'accessKey', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, container_name: { - client_side_validation: true, required: true, serialized_name: 'containerName', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, backup_name: { - client_side_validation: true, required: true, serialized_name: 'backupName', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb index 8f81204dbd..d32119577a 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_base_parameters.rb @@ -96,7 +96,6 @@ class ApiManagementServiceBaseParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceBaseParameters', type: { @@ -104,13 +103,11 @@ def self.mapper() class_name: 'ApiManagementServiceBaseParameters', model_properties: { tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -120,7 +117,6 @@ def self.mapper() } }, publisher_email: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherEmail', constraints: { @@ -131,7 +127,6 @@ def self.mapper() } }, publisher_name: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherName', type: { @@ -139,7 +134,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -148,7 +142,6 @@ def self.mapper() } }, target_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.targetProvisioningState', @@ -157,7 +150,6 @@ def self.mapper() } }, created_at_utc: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdAtUtc', @@ -166,7 +158,6 @@ def self.mapper() } }, runtime_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.runtimeUrl', @@ -175,7 +166,6 @@ def self.mapper() } }, portal_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.portalUrl', @@ -184,7 +174,6 @@ def self.mapper() } }, management_api_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.managementApiUrl', @@ -193,7 +182,6 @@ def self.mapper() } }, scm_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.scmUrl', @@ -202,7 +190,6 @@ def self.mapper() } }, addresser_email: { - client_side_validation: true, required: false, serialized_name: 'properties.addresserEmail', type: { @@ -210,13 +197,11 @@ def self.mapper() } }, hostname_configurations: { - client_side_validation: true, required: false, serialized_name: 'properties.hostnameConfigurations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameConfigurationElementType', type: { @@ -227,14 +212,12 @@ def self.mapper() } }, static_ips: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.staticIPs', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -244,7 +227,6 @@ def self.mapper() } }, vpnconfiguration: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnconfiguration', type: { @@ -253,13 +235,11 @@ def self.mapper() } }, additional_locations: { - client_side_validation: true, required: false, serialized_name: 'properties.additionalLocations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegionElementType', type: { @@ -270,13 +250,11 @@ def self.mapper() } }, custom_properties: { - client_side_validation: true, required: false, serialized_name: 'properties.customProperties', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -286,7 +264,6 @@ def self.mapper() } }, vpn_type: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnType', default_value: 'None', @@ -296,7 +273,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb index c661379346..3724b9f284 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb @@ -23,7 +23,6 @@ class ApiManagementServiceCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceCheckNameAvailabilityParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ApiManagementServiceCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb index 5174c47d5e..62f72bfc36 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb @@ -22,7 +22,6 @@ class ApiManagementServiceGetSsoTokenResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceGetSsoTokenResult', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ApiManagementServiceGetSsoTokenResult', model_properties: { redirect_uri: { - client_side_validation: true, required: false, serialized_name: 'redirect_uri', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb index 47122072c4..f55c0d100e 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceListResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'ApiManagementServiceListResult', model_properties: { value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceResourceElementType', type: { @@ -84,7 +81,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb index 6d7a1c803c..8273be76d5 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb @@ -50,7 +50,6 @@ class ApiManagementServiceManageDeploymentsParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceManageDeploymentsParameters', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'ApiManagementServiceManageDeploymentsParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, sku_type: { - client_side_validation: true, required: true, serialized_name: 'skuType', type: { @@ -75,7 +72,6 @@ def self.mapper() } }, sku_unit_count: { - client_side_validation: true, required: false, serialized_name: 'skuUnitCount', default_value: 1, @@ -84,13 +80,11 @@ def self.mapper() } }, additional_locations: { - client_side_validation: true, required: false, serialized_name: 'additionalLocations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegionElementType', type: { @@ -101,7 +95,6 @@ def self.mapper() } }, vpn_configuration: { - client_side_validation: true, required: false, serialized_name: 'vpnConfiguration', type: { @@ -110,7 +103,6 @@ def self.mapper() } }, vpn_type: { - client_side_validation: true, required: false, serialized_name: 'vpnType', default_value: 'None', diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb index cde28d1b9b..2713d0cf89 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb @@ -38,7 +38,6 @@ class ApiManagementServiceNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceNameAvailabilityResult', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'ApiManagementServiceNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: true, serialized_name: 'nameAvailable', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_resource.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_resource.rb index db0b1e351b..1c2b607d69 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_resource.rb @@ -34,7 +34,6 @@ class ApiManagementServiceResource < ApiManagementServiceBaseParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceResource', type: { @@ -42,13 +41,11 @@ def self.mapper() class_name: 'ApiManagementServiceResource', model_properties: { tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, publisher_email: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherEmail', constraints: { @@ -69,7 +65,6 @@ def self.mapper() } }, publisher_name: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherName', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -86,7 +80,6 @@ def self.mapper() } }, target_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.targetProvisioningState', @@ -95,7 +88,6 @@ def self.mapper() } }, created_at_utc: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdAtUtc', @@ -104,7 +96,6 @@ def self.mapper() } }, runtime_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.runtimeUrl', @@ -113,7 +104,6 @@ def self.mapper() } }, portal_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.portalUrl', @@ -122,7 +112,6 @@ def self.mapper() } }, management_api_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.managementApiUrl', @@ -131,7 +120,6 @@ def self.mapper() } }, scm_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.scmUrl', @@ -140,7 +128,6 @@ def self.mapper() } }, addresser_email: { - client_side_validation: true, required: false, serialized_name: 'properties.addresserEmail', type: { @@ -148,13 +135,11 @@ def self.mapper() } }, hostname_configurations: { - client_side_validation: true, required: false, serialized_name: 'properties.hostnameConfigurations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameConfigurationElementType', type: { @@ -165,14 +150,12 @@ def self.mapper() } }, static_ips: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.staticIPs', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -182,7 +165,6 @@ def self.mapper() } }, vpnconfiguration: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnconfiguration', type: { @@ -191,13 +173,11 @@ def self.mapper() } }, additional_locations: { - client_side_validation: true, required: false, serialized_name: 'properties.additionalLocations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegionElementType', type: { @@ -208,13 +188,11 @@ def self.mapper() } }, custom_properties: { - client_side_validation: true, required: false, serialized_name: 'properties.customProperties', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -224,7 +202,6 @@ def self.mapper() } }, vpn_type: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnType', default_value: 'None', @@ -234,7 +211,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -243,7 +219,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -252,7 +227,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -260,7 +234,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -269,7 +242,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -278,7 +250,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb index 77efc5e217..ba870c8217 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb @@ -27,7 +27,6 @@ class ApiManagementServiceSkuProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceSkuProperties', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ApiManagementServiceSkuProperties', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, capacity: { - client_side_validation: true, required: false, serialized_name: 'capacity', default_value: 1, diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb index d03e318cf0..b26db3eb03 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb @@ -26,7 +26,6 @@ class ApiManagementServiceUpdateHostnameParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceUpdateHostnameParameters', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'ApiManagementServiceUpdateHostnameParameters', model_properties: { update: { - client_side_validation: true, required: false, serialized_name: 'update', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameConfigurationElementType', type: { @@ -51,13 +48,11 @@ def self.mapper() } }, delete: { - client_side_validation: true, required: false, serialized_name: 'delete', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameTypeElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb index 9f7e8a9849..1d8ea3c3fa 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb @@ -31,7 +31,6 @@ class ApiManagementServiceUploadCertificateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceUploadCertificateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ApiManagementServiceUploadCertificateParameters', model_properties: { type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, certificate: { - client_side_validation: true, required: true, serialized_name: 'certificate', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, certificate_password: { - client_side_validation: true, required: true, serialized_name: 'certificate_password', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb index e335a87b96..1a90476b23 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb @@ -22,7 +22,6 @@ class AuthenticationSettingsContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AuthenticationSettingsContract', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'AuthenticationSettingsContract', model_properties: { o_auth2: { - client_side_validation: true, required: false, serialized_name: 'oAuth2', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authorization_server_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authorization_server_collection.rb index 44c73fbe33..26aebea8f8 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/authorization_server_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AuthorizationServerCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'AuthorizationServerCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthorizationServerContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_collection.rb index 8232573967..f8f24ae913 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'BackendCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'BackendResponseElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb index 230710460d..8648e448bb 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_contract.rb @@ -29,7 +29,6 @@ class BackendContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendContract', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'BackendContract', model_properties: { host: { - client_side_validation: true, required: true, serialized_name: 'host', constraints: { @@ -49,7 +47,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'skipCertificateChainValidation', default_value: false, diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_response.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_response.rb index 781d8f321e..864d43b9a3 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_response.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_response.rb @@ -27,7 +27,6 @@ class BackendResponse < BackendContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendResponse', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'BackendResponse', model_properties: { host: { - client_side_validation: true, required: true, serialized_name: 'host', constraints: { @@ -47,7 +45,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'skipCertificateChainValidation', default_value: false, @@ -56,7 +53,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_update_parameters.rb index 474f6a1d83..6452fb4684 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/backend_update_parameters.rb @@ -29,7 +29,6 @@ class BackendUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendUpdateParameters', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'BackendUpdateParameters', model_properties: { host: { - client_side_validation: true, required: false, serialized_name: 'host', constraints: { @@ -49,7 +47,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'skipCertificateChainValidation', default_value: false, diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_collection.rb index 925387aacb..48914d911e 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'CertificateCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CertificateContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_contract.rb index 83b25bfb4e..06d269c46d 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_contract.rb @@ -35,7 +35,6 @@ class CertificateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateContract', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'CertificateContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, subject: { - client_side_validation: true, required: true, serialized_name: 'subject', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: true, serialized_name: 'thumbprint', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: true, serialized_name: 'expirationDate', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb index 79884e476b..1e6a8333aa 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb @@ -26,7 +26,6 @@ class CertificateCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateCreateOrUpdateParameters', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CertificateCreateOrUpdateParameters', model_properties: { data: { - client_side_validation: true, required: true, serialized_name: 'data', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: true, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_information.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_information.rb index 21b3b23616..0505df8ffc 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_information.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/certificate_information.rb @@ -30,7 +30,6 @@ class CertificateInformation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateInformation', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'CertificateInformation', model_properties: { expiry: { - client_side_validation: true, required: true, serialized_name: 'expiry', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: true, serialized_name: 'thumbprint', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, subject: { - client_side_validation: true, required: true, serialized_name: 'subject', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb index c37a0c737a..a796841430 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb @@ -27,7 +27,6 @@ class DeployConfigurationParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeployConfigurationParameters', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'DeployConfigurationParameters', model_properties: { branch: { - client_side_validation: true, required: true, serialized_name: 'branch', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, force: { - client_side_validation: true, required: false, serialized_name: 'force', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_body_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_body_contract.rb index eb03f336e1..cf18dc05b3 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_body_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_body_contract.rb @@ -30,7 +30,6 @@ class ErrorBodyContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorBodyContract', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ErrorBodyContract', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -54,13 +51,11 @@ def self.mapper() } }, details: { - client_side_validation: true, required: false, serialized_name: 'details', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ErrorFieldContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_field_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_field_contract.rb index 017e901eee..8ab1d4bd35 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_field_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_field_contract.rb @@ -28,7 +28,6 @@ class ErrorFieldContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorFieldContract', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ErrorFieldContract', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, target: { - client_side_validation: true, required: false, serialized_name: 'target', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_response.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_response.rb index 77fc8dcf4f..ce1d4b4128 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_response.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/error_response.rb @@ -25,7 +25,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb index c53fab093e..aaaacdfb27 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb @@ -22,7 +22,6 @@ class GenerateSsoUrlResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GenerateSsoUrlResult', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'GenerateSsoUrlResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_collection.rb index 36ba787671..6cbe3dae13 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'GroupCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GroupContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb index b5b451db97..d710ce72f8 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_contract.rb @@ -43,7 +43,6 @@ class GroupContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupContract', type: { @@ -51,7 +50,6 @@ def self.mapper() class_name: 'GroupContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -60,7 +58,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -72,7 +69,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -83,7 +79,6 @@ def self.mapper() } }, built_in: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'builtIn', @@ -92,7 +87,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -102,7 +96,6 @@ def self.mapper() } }, external_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'externalId', diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_create_parameters.rb index a0cbbfbefa..2ae8ea97bd 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_create_parameters.rb @@ -32,7 +32,6 @@ class GroupCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupCreateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'GroupCreateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -52,7 +50,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, external_id: { - client_side_validation: true, required: false, serialized_name: 'externalId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_update_parameters.rb index 94152c5565..4847958256 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/group_update_parameters.rb @@ -32,7 +32,6 @@ class GroupUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'GroupUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -52,7 +50,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, external_id: { - client_side_validation: true, required: false, serialized_name: 'externalId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/hostname_configuration.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/hostname_configuration.rb index 371bee480a..ab90521e62 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/hostname_configuration.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/hostname_configuration.rb @@ -29,7 +29,6 @@ class HostnameConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HostnameConfiguration', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'HostnameConfiguration', model_properties: { type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, hostname: { - client_side_validation: true, required: true, serialized_name: 'hostname', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, certificate: { - client_side_validation: true, required: true, serialized_name: 'certificate', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb index 269574ba37..e1678e2d4e 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_contract.rb @@ -41,7 +41,6 @@ class IdentityProviderContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderContract', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'IdentityProviderContract', model_properties: { client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', constraints: { @@ -60,7 +58,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: true, serialized_name: 'clientSecret', constraints: { @@ -71,7 +68,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -79,7 +75,6 @@ def self.mapper() } }, allowed_tenants: { - client_side_validation: true, required: false, serialized_name: 'allowedTenants', constraints: { @@ -88,7 +83,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_list.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_list.rb index 01dc3b28cb..e7c876e148 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_list.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_list.rb @@ -23,7 +23,6 @@ class IdentityProviderList # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderList', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'IdentityProviderList', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb index 5d9bff0d63..27cf77db6c 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb @@ -34,7 +34,6 @@ class IdentityProviderUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderUpdateParameters', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'IdentityProviderUpdateParameters', model_properties: { client_id: { - client_side_validation: true, required: false, serialized_name: 'clientId', constraints: { @@ -53,7 +51,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', constraints: { @@ -64,7 +61,6 @@ def self.mapper() } }, allowed_tenants: { - client_side_validation: true, required: false, serialized_name: 'allowedTenants', constraints: { @@ -73,7 +69,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_collection.rb index f1152b94a7..264a830fad 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'LoggerCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LoggerResponseElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_create_parameters.rb index 217692c102..4100de518f 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_create_parameters.rb @@ -33,7 +33,6 @@ class LoggerCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerCreateParameters', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'LoggerCreateParameters', model_properties: { type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -51,7 +49,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -59,13 +56,11 @@ def self.mapper() } }, credentials: { - client_side_validation: true, required: true, serialized_name: 'credentials', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -75,7 +70,6 @@ def self.mapper() } }, is_buffered: { - client_side_validation: true, required: false, serialized_name: 'isBuffered', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_response.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_response.rb index cbb0b0376b..555d2899ec 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_response.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_response.rb @@ -40,7 +40,6 @@ class LoggerResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerResponse', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'LoggerResponse', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -57,7 +55,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -67,7 +64,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -78,13 +74,11 @@ def self.mapper() } }, credentials: { - client_side_validation: true, required: true, serialized_name: 'credentials', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -94,7 +88,6 @@ def self.mapper() } }, is_buffered: { - client_side_validation: true, required: false, serialized_name: 'isBuffered', default_value: true, diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_update_parameters.rb index 20947126fc..b007035260 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/logger_update_parameters.rb @@ -32,7 +32,6 @@ class LoggerUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'LoggerUpdateParameters', model_properties: { type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -50,7 +48,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -58,13 +55,11 @@ def self.mapper() } }, credentials: { - client_side_validation: true, required: false, serialized_name: 'credentials', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, is_buffered: { - client_side_validation: true, required: false, serialized_name: 'isBuffered', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb index ad0554b5c5..8a1fedf172 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb @@ -25,7 +25,6 @@ class OAuth2AuthenticationSettingsContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthenticationSettingsContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'OAuth2AuthenticationSettingsContract', model_properties: { authorization_server_id: { - client_side_validation: true, required: false, serialized_name: 'authorizationServerId', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, scope: { - client_side_validation: true, required: false, serialized_name: 'scope', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb index a8813e076c..40e3537d36 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb @@ -98,7 +98,6 @@ class OAuth2AuthorizationServerContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthorizationServerContract', type: { @@ -106,7 +105,6 @@ def self.mapper() class_name: 'OAuth2AuthorizationServerContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -115,7 +113,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -127,7 +124,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -135,7 +131,6 @@ def self.mapper() } }, client_registration_endpoint: { - client_side_validation: true, required: true, serialized_name: 'clientRegistrationEndpoint', type: { @@ -143,7 +138,6 @@ def self.mapper() } }, authorization_endpoint: { - client_side_validation: true, required: true, serialized_name: 'authorizationEndpoint', type: { @@ -151,13 +145,11 @@ def self.mapper() } }, authorization_methods: { - client_side_validation: true, required: false, serialized_name: 'authorizationMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MethodContractElementType', type: { @@ -168,13 +160,11 @@ def self.mapper() } }, client_authentication_method: { - client_side_validation: true, required: false, serialized_name: 'clientAuthenticationMethod', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ClientAuthenticationMethodContractElementType', type: { @@ -185,13 +175,11 @@ def self.mapper() } }, token_body_parameters: { - client_side_validation: true, required: false, serialized_name: 'tokenBodyParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'TokenBodyParameterContractElementType', type: { @@ -202,7 +190,6 @@ def self.mapper() } }, token_endpoint: { - client_side_validation: true, required: false, serialized_name: 'tokenEndpoint', type: { @@ -210,7 +197,6 @@ def self.mapper() } }, support_state: { - client_side_validation: true, required: false, serialized_name: 'supportState', type: { @@ -218,7 +204,6 @@ def self.mapper() } }, default_scope: { - client_side_validation: true, required: false, serialized_name: 'defaultScope', type: { @@ -226,13 +211,11 @@ def self.mapper() } }, grant_types: { - client_side_validation: true, required: true, serialized_name: 'grantTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GrantTypesContractElementType', type: { @@ -243,13 +226,11 @@ def self.mapper() } }, bearer_token_sending_methods: { - client_side_validation: true, required: false, serialized_name: 'bearerTokenSendingMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'BearerTokenSendingMethodsContractElementType', type: { @@ -260,7 +241,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', type: { @@ -268,7 +248,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { @@ -276,7 +255,6 @@ def self.mapper() } }, resource_owner_username: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerUsername', type: { @@ -284,7 +262,6 @@ def self.mapper() } }, resource_owner_password: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerPassword', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb index 58a60efc05..896085f1bd 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb @@ -92,7 +92,6 @@ class OAuth2AuthorizationServerUpdateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthorizationServerUpdateContract', type: { @@ -100,7 +99,6 @@ def self.mapper() class_name: 'OAuth2AuthorizationServerUpdateContract', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -112,7 +110,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -120,7 +117,6 @@ def self.mapper() } }, client_registration_endpoint: { - client_side_validation: true, required: false, serialized_name: 'clientRegistrationEndpoint', type: { @@ -128,7 +124,6 @@ def self.mapper() } }, authorization_endpoint: { - client_side_validation: true, required: false, serialized_name: 'authorizationEndpoint', type: { @@ -136,13 +131,11 @@ def self.mapper() } }, authorization_methods: { - client_side_validation: true, required: false, serialized_name: 'authorizationMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MethodContractElementType', type: { @@ -153,13 +146,11 @@ def self.mapper() } }, client_authentication_method: { - client_side_validation: true, required: false, serialized_name: 'clientAuthenticationMethod', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ClientAuthenticationMethodContractElementType', type: { @@ -170,13 +161,11 @@ def self.mapper() } }, token_body_parameters: { - client_side_validation: true, required: false, serialized_name: 'tokenBodyParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'TokenBodyParameterContractElementType', type: { @@ -187,7 +176,6 @@ def self.mapper() } }, token_endpoint: { - client_side_validation: true, required: false, serialized_name: 'tokenEndpoint', type: { @@ -195,7 +183,6 @@ def self.mapper() } }, support_state: { - client_side_validation: true, required: false, serialized_name: 'supportState', type: { @@ -203,7 +190,6 @@ def self.mapper() } }, default_scope: { - client_side_validation: true, required: false, serialized_name: 'defaultScope', type: { @@ -211,13 +197,11 @@ def self.mapper() } }, grant_types: { - client_side_validation: true, required: false, serialized_name: 'grantTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GrantTypesContractElementType', type: { @@ -228,13 +212,11 @@ def self.mapper() } }, bearer_token_sending_methods: { - client_side_validation: true, required: false, serialized_name: 'bearerTokenSendingMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'BearerTokenSendingMethodsContractElementType', type: { @@ -245,7 +227,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: false, serialized_name: 'clientId', type: { @@ -253,7 +234,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { @@ -261,7 +241,6 @@ def self.mapper() } }, resource_owner_username: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerUsername', type: { @@ -269,7 +248,6 @@ def self.mapper() } }, resource_owner_password: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerPassword', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb index 952a85bcfb..da359dbcef 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenIdConnectProviderCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'OpenIdConnectProviderCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb index 99d6ed1e84..4972b2c3b5 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb @@ -39,7 +39,6 @@ class OpenidConnectProviderContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderContract', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'OpenidConnectProviderContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -66,7 +63,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -74,7 +70,6 @@ def self.mapper() } }, metadata_endpoint: { - client_side_validation: true, required: true, serialized_name: 'metadataEndpoint', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', type: { @@ -90,7 +84,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb index a4720e6bc7..071eaf1c8a 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb @@ -36,7 +36,6 @@ class OpenidConnectProviderCreateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderCreateContract', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'OpenidConnectProviderCreateContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -55,7 +53,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, metadata_endpoint: { - client_side_validation: true, required: true, serialized_name: 'metadataEndpoint', type: { @@ -71,7 +67,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', type: { @@ -79,7 +74,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb index ce8b558e60..9ae819d13b 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb @@ -36,7 +36,6 @@ class OpenidConnectProviderUpdateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderUpdateContract', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'OpenidConnectProviderUpdateContract', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -55,7 +53,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, metadata_endpoint: { - client_side_validation: true, required: false, serialized_name: 'metadataEndpoint', type: { @@ -71,7 +67,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: false, serialized_name: 'clientId', type: { @@ -79,7 +74,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_collection.rb index 6e32284373..1c6275dbcf 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'OperationCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_contract.rb index 875284c6fb..6e366f0a7b 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_contract.rb @@ -51,7 +51,6 @@ class OperationContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationContract', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'OperationContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -68,7 +66,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -80,7 +77,6 @@ def self.mapper() } }, method: { - client_side_validation: true, required: true, serialized_name: 'method', type: { @@ -88,7 +84,6 @@ def self.mapper() } }, url_template: { - client_side_validation: true, required: true, serialized_name: 'urlTemplate', constraints: { @@ -100,13 +95,11 @@ def self.mapper() } }, template_parameters: { - client_side_validation: true, required: false, serialized_name: 'templateParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -117,7 +110,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -128,7 +120,6 @@ def self.mapper() } }, request: { - client_side_validation: true, required: false, serialized_name: 'request', type: { @@ -137,13 +128,11 @@ def self.mapper() } }, responses: { - client_side_validation: true, required: false, serialized_name: 'responses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResultContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb index 548f581fdf..651fe4696a 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/operation_result_contract.rb @@ -44,7 +44,6 @@ class OperationResultContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationResultContract', type: { @@ -52,7 +51,6 @@ def self.mapper() class_name: 'OperationResultContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -60,7 +58,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -69,7 +66,6 @@ def self.mapper() } }, started: { - client_side_validation: true, required: false, serialized_name: 'started', type: { @@ -77,7 +73,6 @@ def self.mapper() } }, updated: { - client_side_validation: true, required: false, serialized_name: 'updated', type: { @@ -85,7 +80,6 @@ def self.mapper() } }, result_info: { - client_side_validation: true, required: false, serialized_name: 'resultInfo', type: { @@ -93,7 +87,6 @@ def self.mapper() } }, error: { - client_side_validation: true, required: false, serialized_name: 'error', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/parameter_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/parameter_contract.rb index c65b1b70bf..1338284b89 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/parameter_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/parameter_contract.rb @@ -37,7 +37,6 @@ class ParameterContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ParameterContract', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'ParameterContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, default_value: { - client_side_validation: true, required: false, serialized_name: 'defaultValue', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, required: { - client_side_validation: true, required: false, serialized_name: 'required', type: { @@ -85,13 +79,11 @@ def self.mapper() } }, values: { - client_side_validation: true, required: false, serialized_name: 'values', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/patch_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/patch_parameters.rb index 6634f91a47..7e93976ca8 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/patch_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/patch_parameters.rb @@ -22,7 +22,6 @@ class PatchParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PatchParameters', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'PatchParameters', model_properties: { raw_json: { - client_side_validation: true, required: true, serialized_name: 'RawJson', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb index eb701f70d4..8e627b4ccf 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb @@ -32,7 +32,6 @@ class PolicySnippetContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PolicySnippetContract', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'PolicySnippetContract', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -49,7 +47,6 @@ def self.mapper() } }, content: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'content', @@ -58,7 +55,6 @@ def self.mapper() } }, tool_tip: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'toolTip', @@ -67,7 +63,6 @@ def self.mapper() } }, scope: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'scope', diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_collection.rb index 4bc6f3aea8..dacb2d6868 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProductCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'ProductCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ProductContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_contract.rb index 835d42958a..531d54cb4c 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_contract.rb @@ -67,7 +67,6 @@ class ProductContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProductContract', type: { @@ -75,7 +74,6 @@ def self.mapper() class_name: 'ProductContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -84,7 +82,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -96,7 +93,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -108,7 +104,6 @@ def self.mapper() } }, terms: { - client_side_validation: true, required: false, serialized_name: 'terms', type: { @@ -116,7 +111,6 @@ def self.mapper() } }, subscription_required: { - client_side_validation: true, required: false, serialized_name: 'subscriptionRequired', default_value: true, @@ -125,7 +119,6 @@ def self.mapper() } }, approval_required: { - client_side_validation: true, required: false, serialized_name: 'approvalRequired', type: { @@ -133,7 +126,6 @@ def self.mapper() } }, subscriptions_limit: { - client_side_validation: true, required: false, serialized_name: 'subscriptionsLimit', type: { @@ -141,7 +133,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', default_value: 'NotPublished', diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_update_parameters.rb index 90114198d1..3193cbe9d1 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/product_update_parameters.rb @@ -58,7 +58,6 @@ class ProductUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProductUpdateParameters', type: { @@ -66,7 +65,6 @@ def self.mapper() class_name: 'ProductUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -78,7 +76,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -90,7 +87,6 @@ def self.mapper() } }, terms: { - client_side_validation: true, required: false, serialized_name: 'terms', type: { @@ -98,7 +94,6 @@ def self.mapper() } }, subscription_required: { - client_side_validation: true, required: false, serialized_name: 'subscriptionRequired', type: { @@ -106,7 +101,6 @@ def self.mapper() } }, approval_required: { - client_side_validation: true, required: false, serialized_name: 'approvalRequired', type: { @@ -114,7 +108,6 @@ def self.mapper() } }, subscriptions_limit: { - client_side_validation: true, required: false, serialized_name: 'subscriptionsLimit', type: { @@ -122,7 +115,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_collection.rb index d9a556284a..af3c804861 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'PropertyCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PropertyContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb index 6b60872a42..9aee01f1d9 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_contract.rb @@ -41,7 +41,6 @@ class PropertyContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyContract', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'PropertyContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -71,7 +68,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', constraints: { @@ -83,7 +79,6 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', constraints: { @@ -92,7 +87,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -102,7 +96,6 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_create_parameters.rb index 1cda63e50d..11ed1bf554 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_create_parameters.rb @@ -35,7 +35,6 @@ class PropertyCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyCreateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'PropertyCreateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -56,7 +54,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', constraints: { @@ -68,7 +65,6 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', constraints: { @@ -77,7 +73,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_update_parameters.rb index f611535499..c27fd75794 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/property_update_parameters.rb @@ -35,7 +35,6 @@ class PropertyUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyUpdateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'PropertyUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -56,7 +54,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', constraints: { @@ -68,7 +65,6 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', constraints: { @@ -77,7 +73,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_collection.rb index 7921b02294..00d9d51ae4 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_collection.rb @@ -28,7 +28,6 @@ class QuotaCounterCollection # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterCollection', type: { @@ -36,13 +35,11 @@ def self.mapper() class_name: 'QuotaCounterCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterContractElementType', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -61,7 +57,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb index f59367c95c..e34c152ddd 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb @@ -38,7 +38,6 @@ class QuotaCounterContract < QuotaCounterValueContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterContract', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'QuotaCounterContract', model_properties: { calls_count: { - client_side_validation: true, required: false, serialized_name: 'callsCount', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, kb_transferred: { - client_side_validation: true, required: false, serialized_name: 'kbTransferred', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, counter_key: { - client_side_validation: true, required: true, serialized_name: 'counterKey', constraints: { @@ -73,7 +69,6 @@ def self.mapper() } }, period_key: { - client_side_validation: true, required: true, serialized_name: 'periodKey', constraints: { @@ -84,7 +79,6 @@ def self.mapper() } }, period_start_time: { - client_side_validation: true, required: true, serialized_name: 'periodStartTime', type: { @@ -92,7 +86,6 @@ def self.mapper() } }, period_end_time: { - client_side_validation: true, required: true, serialized_name: 'periodEndTime', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb index 2cd84ca5f6..816d30e0a4 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb @@ -25,7 +25,6 @@ class QuotaCounterValueContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterValueContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'QuotaCounterValueContract', model_properties: { calls_count: { - client_side_validation: true, required: false, serialized_name: 'callsCount', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, kb_transferred: { - client_side_validation: true, required: false, serialized_name: 'kbTransferred', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_contract.rb index 7ca7ff8f21..81e1d79956 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_contract.rb @@ -25,7 +25,6 @@ class RegionContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RegionContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'RegionContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, is_master_region: { - client_side_validation: true, required: true, serialized_name: 'isMasterRegion', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_list_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_list_result.rb index 22c3763760..b8a9031643 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_list_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/region_list_result.rb @@ -22,7 +22,6 @@ class RegionListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RegionListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'RegionListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RegionContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_collection.rb index a2737cafa5..37d1f92e35 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ReportCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'ReportCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ReportRecordContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb index a9b467eeab..8c03802925 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/report_record_contract.rb @@ -105,7 +105,6 @@ class ReportRecordContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ReportRecordContract', type: { @@ -113,7 +112,6 @@ def self.mapper() class_name: 'ReportRecordContract', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -121,7 +119,6 @@ def self.mapper() } }, timestamp: { - client_side_validation: true, required: false, serialized_name: 'timestamp', type: { @@ -129,7 +126,6 @@ def self.mapper() } }, interval: { - client_side_validation: true, required: false, serialized_name: 'interval', type: { @@ -137,7 +133,6 @@ def self.mapper() } }, country: { - client_side_validation: true, required: false, serialized_name: 'country', type: { @@ -145,7 +140,6 @@ def self.mapper() } }, region: { - client_side_validation: true, required: false, serialized_name: 'region', type: { @@ -153,7 +147,6 @@ def self.mapper() } }, zip: { - client_side_validation: true, required: false, serialized_name: 'zip', type: { @@ -161,7 +154,6 @@ def self.mapper() } }, user_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'userId', @@ -170,7 +162,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'productId', @@ -179,7 +170,6 @@ def self.mapper() } }, api_id: { - client_side_validation: true, required: false, serialized_name: 'apiId', type: { @@ -187,7 +177,6 @@ def self.mapper() } }, operation_id: { - client_side_validation: true, required: false, serialized_name: 'operationId', type: { @@ -195,7 +184,6 @@ def self.mapper() } }, api_region: { - client_side_validation: true, required: false, serialized_name: 'apiRegion', type: { @@ -203,7 +191,6 @@ def self.mapper() } }, subscription_id: { - client_side_validation: true, required: false, serialized_name: 'subscriptionId', type: { @@ -211,7 +198,6 @@ def self.mapper() } }, call_count_success: { - client_side_validation: true, required: false, serialized_name: 'callCountSuccess', type: { @@ -219,7 +205,6 @@ def self.mapper() } }, call_count_blocked: { - client_side_validation: true, required: false, serialized_name: 'callCountBlocked', type: { @@ -227,7 +212,6 @@ def self.mapper() } }, call_count_failed: { - client_side_validation: true, required: false, serialized_name: 'callCountFailed', type: { @@ -235,7 +219,6 @@ def self.mapper() } }, call_count_other: { - client_side_validation: true, required: false, serialized_name: 'callCountOther', type: { @@ -243,7 +226,6 @@ def self.mapper() } }, call_count_total: { - client_side_validation: true, required: false, serialized_name: 'callCountTotal', type: { @@ -251,7 +233,6 @@ def self.mapper() } }, bandwidth: { - client_side_validation: true, required: false, serialized_name: 'bandwidth', type: { @@ -259,7 +240,6 @@ def self.mapper() } }, cache_hit_count: { - client_side_validation: true, required: false, serialized_name: 'cacheHitCount', type: { @@ -267,7 +247,6 @@ def self.mapper() } }, cache_miss_count: { - client_side_validation: true, required: false, serialized_name: 'cacheMissCount', type: { @@ -275,7 +254,6 @@ def self.mapper() } }, api_time_avg: { - client_side_validation: true, required: false, serialized_name: 'apiTimeAvg', type: { @@ -283,7 +261,6 @@ def self.mapper() } }, api_time_min: { - client_side_validation: true, required: false, serialized_name: 'apiTimeMin', type: { @@ -291,7 +268,6 @@ def self.mapper() } }, api_time_max: { - client_side_validation: true, required: false, serialized_name: 'apiTimeMax', type: { @@ -299,7 +275,6 @@ def self.mapper() } }, service_time_avg: { - client_side_validation: true, required: false, serialized_name: 'serviceTimeAvg', type: { @@ -307,7 +282,6 @@ def self.mapper() } }, service_time_min: { - client_side_validation: true, required: false, serialized_name: 'serviceTimeMin', type: { @@ -315,7 +289,6 @@ def self.mapper() } }, service_time_max: { - client_side_validation: true, required: false, serialized_name: 'serviceTimeMax', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/representation_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/representation_contract.rb index b5078bb7e9..cbb43a909d 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/representation_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/representation_contract.rb @@ -26,7 +26,6 @@ class RepresentationContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RepresentationContract', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'RepresentationContract', model_properties: { content_type: { - client_side_validation: true, required: true, serialized_name: 'contentType', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, sample: { - client_side_validation: true, required: false, serialized_name: 'sample', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/request_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/request_contract.rb index f4ec72e169..ad7e2c406c 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/request_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/request_contract.rb @@ -34,7 +34,6 @@ class RequestContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RequestContract', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'RequestContract', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -50,13 +48,11 @@ def self.mapper() } }, query_parameters: { - client_side_validation: true, required: false, serialized_name: 'queryParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -67,13 +63,11 @@ def self.mapper() } }, headers: { - client_side_validation: true, required: false, serialized_name: 'headers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -84,13 +78,11 @@ def self.mapper() } }, representations: { - client_side_validation: true, required: false, serialized_name: 'representations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RepresentationContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/result_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/result_contract.rb index 7a90170c79..3912e5a4a4 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/result_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/result_contract.rb @@ -29,7 +29,6 @@ class ResultContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResultContract', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ResultContract', model_properties: { status_code: { - client_side_validation: true, required: true, serialized_name: 'statusCode', constraints: { @@ -49,7 +47,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -57,13 +54,11 @@ def self.mapper() } }, representations: { - client_side_validation: true, required: false, serialized_name: 'representations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RepresentationContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb index 6036d88bf7..106303f56e 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb @@ -28,7 +28,6 @@ class SaveConfigurationParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SaveConfigurationParameter', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'SaveConfigurationParameter', model_properties: { branch: { - client_side_validation: true, required: true, serialized_name: 'branch', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, force: { - client_side_validation: true, required: false, serialized_name: 'force', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb index 81426c10e3..5dcf209acb 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'SubscriptionCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SubscriptionContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb index 6c07b917db..0b9388f873 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_contract.rb @@ -91,7 +91,6 @@ class SubscriptionContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionContract', type: { @@ -99,7 +98,6 @@ def self.mapper() class_name: 'SubscriptionContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -108,7 +106,6 @@ def self.mapper() } }, user_id: { - client_side_validation: true, required: false, serialized_name: 'userId', type: { @@ -116,7 +113,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: false, serialized_name: 'productId', type: { @@ -124,7 +120,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -136,7 +131,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -145,7 +139,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'createdDate', @@ -154,7 +147,6 @@ def self.mapper() } }, start_date: { - client_side_validation: true, required: false, serialized_name: 'startDate', type: { @@ -162,7 +154,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'expirationDate', type: { @@ -170,7 +161,6 @@ def self.mapper() } }, end_date: { - client_side_validation: true, required: false, serialized_name: 'endDate', type: { @@ -178,7 +168,6 @@ def self.mapper() } }, notification_date: { - client_side_validation: true, required: false, serialized_name: 'notificationDate', type: { @@ -186,7 +175,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { @@ -198,7 +186,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { @@ -210,7 +197,6 @@ def self.mapper() } }, state_comment: { - client_side_validation: true, required: false, serialized_name: 'stateComment', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb index 01ef84c685..2ae2242c2c 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb @@ -51,7 +51,6 @@ class SubscriptionCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionCreateParameters', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'SubscriptionCreateParameters', model_properties: { user_id: { - client_side_validation: true, required: true, serialized_name: 'userId', type: { @@ -67,7 +65,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: true, serialized_name: 'productId', type: { @@ -75,7 +72,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -87,7 +83,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { @@ -99,7 +94,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { @@ -111,7 +105,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb index 2188a8764a..0ab6fc9b7a 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb @@ -25,7 +25,6 @@ class SubscriptionKeyParameterNamesContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionKeyParameterNamesContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'SubscriptionKeyParameterNamesContract', model_properties: { header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb index 398dbca220..90650da6fa 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb @@ -53,7 +53,6 @@ class SubscriptionUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionUpdateParameters', type: { @@ -61,7 +60,6 @@ def self.mapper() class_name: 'SubscriptionUpdateParameters', model_properties: { user_id: { - client_side_validation: true, required: false, serialized_name: 'userId', type: { @@ -69,7 +67,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: false, serialized_name: 'productId', type: { @@ -77,7 +74,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'expirationDate', type: { @@ -85,7 +81,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -93,7 +88,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { @@ -105,7 +99,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { @@ -117,7 +110,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -126,7 +118,6 @@ def self.mapper() } }, state_comment: { - client_side_validation: true, required: false, serialized_name: 'stateComment', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb index 47ddfdf74e..149de06448 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb @@ -49,7 +49,6 @@ class TenantConfigurationSyncStateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TenantConfigurationSyncStateContract', type: { @@ -57,7 +56,6 @@ def self.mapper() class_name: 'TenantConfigurationSyncStateContract', model_properties: { branch: { - client_side_validation: true, required: false, serialized_name: 'branch', type: { @@ -65,7 +63,6 @@ def self.mapper() } }, commit_id: { - client_side_validation: true, required: false, serialized_name: 'commitId', type: { @@ -73,7 +70,6 @@ def self.mapper() } }, is_export: { - client_side_validation: true, required: false, serialized_name: 'isExport', type: { @@ -81,7 +77,6 @@ def self.mapper() } }, is_synced: { - client_side_validation: true, required: false, serialized_name: 'isSynced', type: { @@ -89,7 +84,6 @@ def self.mapper() } }, is_git_enabled: { - client_side_validation: true, required: false, serialized_name: 'isGitEnabled', type: { @@ -97,7 +91,6 @@ def self.mapper() } }, sync_date: { - client_side_validation: true, required: false, serialized_name: 'syncDate', type: { @@ -105,7 +98,6 @@ def self.mapper() } }, configuration_change_date: { - client_side_validation: true, required: false, serialized_name: 'configurationChangeDate', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_long_running_operation_result.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_long_running_operation_result.rb index 8d83bc0f8d..066a93dd0e 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_long_running_operation_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/tenant_long_running_operation_result.rb @@ -36,7 +36,6 @@ class TenantLongRunningOperationResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TenantLongRunningOperationResult', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'TenantLongRunningOperationResult', model_properties: { operation_status_link: { - client_side_validation: true, required: false, serialized_name: 'operationStatusLink', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, retry_after: { - client_side_validation: true, required: false, serialized_name: 'retryAfter', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, status_code: { - client_side_validation: true, required: false, serialized_name: 'statusCode', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, request_id: { - client_side_validation: true, required: false, serialized_name: 'requestId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb index 3889ba143e..c2444080ff 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb @@ -25,7 +25,6 @@ class TokenBodyParameterContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TokenBodyParameterContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'TokenBodyParameterContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_collection.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_collection.rb index 88e296ea96..9b9a0422fb 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'UserCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb index 2b4ef14cfb..61117c6580 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_contract.rb @@ -47,7 +47,6 @@ class UserContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserContract', type: { @@ -55,7 +54,6 @@ def self.mapper() class_name: 'UserContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -63,7 +61,6 @@ def self.mapper() } }, first_name: { - client_side_validation: true, required: false, serialized_name: 'firstName', type: { @@ -71,7 +68,6 @@ def self.mapper() } }, last_name: { - client_side_validation: true, required: false, serialized_name: 'lastName', type: { @@ -79,7 +75,6 @@ def self.mapper() } }, email: { - client_side_validation: true, required: false, serialized_name: 'email', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -96,7 +90,6 @@ def self.mapper() } }, registration_date: { - client_side_validation: true, required: false, serialized_name: 'registrationDate', type: { @@ -104,7 +97,6 @@ def self.mapper() } }, note: { - client_side_validation: true, required: false, serialized_name: 'note', type: { @@ -112,14 +104,12 @@ def self.mapper() } }, identities: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'identities', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserIdentityContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_create_parameters.rb index 6ff20ac697..79da3ab7bb 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_create_parameters.rb @@ -42,7 +42,6 @@ class UserCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserCreateParameters', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'UserCreateParameters', model_properties: { email: { - client_side_validation: true, required: true, serialized_name: 'email', constraints: { @@ -62,7 +60,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: true, serialized_name: 'password', type: { @@ -70,7 +67,6 @@ def self.mapper() } }, first_name: { - client_side_validation: true, required: true, serialized_name: 'firstName', constraints: { @@ -82,7 +78,6 @@ def self.mapper() } }, last_name: { - client_side_validation: true, required: true, serialized_name: 'lastName', constraints: { @@ -94,7 +89,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', default_value: 'Active', @@ -104,7 +98,6 @@ def self.mapper() } }, note: { - client_side_validation: true, required: false, serialized_name: 'note', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_identity_contract.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_identity_contract.rb index 73220259e3..f43b96047b 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_identity_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_identity_contract.rb @@ -25,7 +25,6 @@ class UserIdentityContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserIdentityContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UserIdentityContract', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_update_parameters.rb index a231dfbb04..e0d91b02ea 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/user_update_parameters.rb @@ -38,7 +38,6 @@ class UserUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserUpdateParameters', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'UserUpdateParameters', model_properties: { email: { - client_side_validation: true, required: false, serialized_name: 'email', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, first_name: { - client_side_validation: true, required: false, serialized_name: 'firstName', constraints: { @@ -74,7 +70,6 @@ def self.mapper() } }, last_name: { - client_side_validation: true, required: false, serialized_name: 'lastName', constraints: { @@ -86,7 +81,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -95,7 +89,6 @@ def self.mapper() } }, note: { - client_side_validation: true, required: false, serialized_name: 'note', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb index fad906277b..7e46ded548 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb @@ -35,7 +35,6 @@ class VirtualNetworkConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkConfiguration', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'VirtualNetworkConfiguration', model_properties: { vnetid: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'vnetid', @@ -52,7 +50,6 @@ def self.mapper() } }, subnetname: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'subnetname', @@ -61,7 +58,6 @@ def self.mapper() } }, subnet_resource_id: { - client_side_validation: true, required: false, serialized_name: 'subnetResourceId', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/open_id_connect_providers.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/open_id_connect_providers.rb index 857e701256..54ed01ec9d 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/open_id_connect_providers.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/open_id_connect_providers.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -156,8 +150,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [OpenidConnectProviderContract] operation results. # - def get(resource_group_name, service_name, opid, custom_headers:nil) - response = get_async(resource_group_name, service_name, opid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, opid, custom_headers = nil) + response = get_async(resource_group_name, service_name, opid, custom_headers).value! response.body unless response.nil? end @@ -172,8 +166,8 @@ def get(resource_group_name, service_name, opid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, opid, custom_headers:nil) - get_async(resource_group_name, service_name, opid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, opid, custom_headers = nil) + get_async(resource_group_name, service_name, opid, custom_headers).value! end # @@ -187,19 +181,15 @@ def get_with_http_info(resource_group_name, service_name, opid, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, opid, custom_headers:nil) + def get_async(resource_group_name, service_name, opid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +245,8 @@ def get_async(resource_group_name, service_name, opid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, opid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, opid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers).value! nil end @@ -272,8 +262,8 @@ def create_or_update(resource_group_name, service_name, opid, parameters, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, opid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, opid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers).value! end # @@ -288,27 +278,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, opid, par # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? - fail ArgumentError, "'opid' should satisfy the constraint - 'MaxLength': '256'" if !opid.nil? && opid.length > 256 - fail ArgumentError, "'opid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !opid.nil? && opid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::OpenidConnectProviderCreateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -359,8 +345,8 @@ def create_or_update_async(resource_group_name, service_name, opid, parameters, # will be added to the HTTP request. # # - def update(resource_group_name, service_name, opid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! nil end @@ -379,8 +365,8 @@ def update(resource_group_name, service_name, opid, parameters, if_match, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, opid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! end # @@ -398,12 +384,9 @@ def update_with_http_info(resource_group_name, service_name, opid, parameters, i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -412,13 +395,14 @@ def update_async(resource_group_name, service_name, opid, parameters, if_match, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::OpenidConnectProviderUpdateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -470,8 +454,8 @@ def update_async(resource_group_name, service_name, opid, parameters, if_match, # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, opid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, opid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, opid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, opid, if_match, custom_headers).value! response.body unless response.nil? end @@ -490,8 +474,8 @@ def delete(resource_group_name, service_name, opid, if_match, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, opid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, opid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, opid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, opid, if_match, custom_headers).value! end # @@ -509,12 +493,9 @@ def delete_with_http_info(resource_group_name, service_name, opid, if_match, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, opid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, opid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -522,7 +503,6 @@ def delete_async(resource_group_name, service_name, opid, if_match, custom_heade request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -578,8 +558,8 @@ def delete_async(resource_group_name, service_name, opid, if_match, custom_heade # # @return [OpenIdConnectProviderCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -593,8 +573,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -607,12 +587,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,12 +655,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [OpenIdConnectProviderCollection] which provide lazy access to pages # of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/policy_snippets.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/policy_snippets.rb index 75fb2f62ba..ec4a7d1462 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/policy_snippets.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/policy_snippets.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, scope:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, scope:scope, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, scope = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def list_by_service(resource_group_name, service_name, scope:nil, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, scope:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, scope:scope, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, scope = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! end # @@ -66,18 +66,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, scope:nil, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, scope:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, scope = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -110,13 +106,11 @@ def list_by_service_async(resource_group_name, service_name, scope:nil, custom_h begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PolicySnippetContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_apis.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_apis.rb index 3761564ae0..02743e2a08 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_apis.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_apis.rb @@ -49,8 +49,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_product(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_product(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -82,8 +82,8 @@ def list_by_product(resource_group_name, service_name, product_id, filter:nil, t # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! end # @@ -114,24 +114,15 @@ def list_by_product_with_http_info(resource_group_name, service_name, product_id # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_product_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_product_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,8 +180,8 @@ def list_by_product_async(resource_group_name, service_name, product_id, filter: # will be added to the HTTP request. # # - def add(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - response = add_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def add(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = add_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! nil end @@ -208,8 +199,8 @@ def add(resource_group_name, service_name, product_id, api_id, custom_headers:ni # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - add_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def add_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + add_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! end # @@ -226,26 +217,16 @@ def add_with_http_info(resource_group_name, service_name, product_id, api_id, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_async(resource_group_name, service_name, product_id, api_id, custom_headers:nil) + def add_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -293,8 +274,8 @@ def add_async(resource_group_name, service_name, product_id, api_id, custom_head # will be added to the HTTP request. # # - def remove(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - response = remove_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def remove(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = remove_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! nil end @@ -312,8 +293,8 @@ def remove(resource_group_name, service_name, product_id, api_id, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def remove_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - remove_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def remove_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + remove_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! end # @@ -330,26 +311,16 @@ def remove_with_http_info(resource_group_name, service_name, product_id, api_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def remove_async(resource_group_name, service_name, product_id, api_id, custom_headers:nil) + def remove_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -394,8 +365,8 @@ def remove_async(resource_group_name, service_name, product_id, api_id, custom_h # # @return [ApiCollection] operation results. # - def list_by_product_next(next_page_link, custom_headers:nil) - response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -409,8 +380,8 @@ def list_by_product_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_product_next_with_http_info(next_page_link, custom_headers:nil) - list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! end # @@ -423,12 +394,11 @@ def list_by_product_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_product_next_async(next_page_link, custom_headers:nil) + def list_by_product_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,12 +470,12 @@ def list_by_product_next_async(next_page_link, custom_headers:nil) # # @return [ApiCollection] which provide lazy access to pages of the response. # - def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_product_next_async(next_page_link, custom_headers:custom_headers) + list_by_product_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb index 08667ef362..32e1d13fb9 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb @@ -47,8 +47,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_product(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_product(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -78,8 +78,8 @@ def list_by_product(resource_group_name, service_name, product_id, filter:nil, t # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! end # @@ -108,24 +108,15 @@ def list_by_product_with_http_info(resource_group_name, service_name, product_id # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_product_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_product_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -184,8 +175,8 @@ def list_by_product_async(resource_group_name, service_name, product_id, filter: # will be added to the HTTP request. # # - def add(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - response = add_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def add(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = add_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! nil end @@ -204,8 +195,8 @@ def add(resource_group_name, service_name, product_id, group_id, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - add_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def add_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + add_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! end # @@ -223,26 +214,16 @@ def add_with_http_info(resource_group_name, service_name, product_id, group_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_async(resource_group_name, service_name, product_id, group_id, custom_headers:nil) + def add_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +272,8 @@ def add_async(resource_group_name, service_name, product_id, group_id, custom_he # # @return [ErrorBodyContract] operation results. # - def remove(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - response = remove_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def remove(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = remove_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! response.body unless response.nil? end @@ -310,8 +291,8 @@ def remove(resource_group_name, service_name, product_id, group_id, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def remove_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - remove_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def remove_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + remove_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! end # @@ -328,26 +309,16 @@ def remove_with_http_info(resource_group_name, service_name, product_id, group_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def remove_async(resource_group_name, service_name, product_id, group_id, custom_headers:nil) + def remove_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -403,8 +374,8 @@ def remove_async(resource_group_name, service_name, product_id, group_id, custom # # @return [GroupCollection] operation results. # - def list_by_product_next(next_page_link, custom_headers:nil) - response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -419,8 +390,8 @@ def list_by_product_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_product_next_with_http_info(next_page_link, custom_headers:nil) - list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! end # @@ -434,12 +405,11 @@ def list_by_product_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_product_next_async(next_page_link, custom_headers:nil) + def list_by_product_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -509,12 +479,12 @@ def list_by_product_next_async(next_page_link, custom_headers:nil) # # @return [GroupCollection] which provide lazy access to pages of the response. # - def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_product_next_async(next_page_link, custom_headers:custom_headers) + list_by_product_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_subscriptions.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_subscriptions.rb index 4159babc73..4edc6251c5 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_subscriptions.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_subscriptions.rb @@ -50,8 +50,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_product(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_product(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -84,8 +84,8 @@ def list_by_product(resource_group_name, service_name, product_id, filter:nil, t # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! end # @@ -117,24 +117,15 @@ def list_by_product_with_http_info(resource_group_name, service_name, product_id # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_product_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_product_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,8 +180,8 @@ def list_by_product_async(resource_group_name, service_name, product_id, filter: # # @return [SubscriptionCollection] operation results. # - def list_by_product_next(next_page_link, custom_headers:nil) - response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -204,8 +195,8 @@ def list_by_product_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_product_next_with_http_info(next_page_link, custom_headers:nil) - list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! end # @@ -218,12 +209,11 @@ def list_by_product_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_product_next_async(next_page_link, custom_headers:nil) + def list_by_product_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,12 +287,12 @@ def list_by_product_next_async(next_page_link, custom_headers:nil) # @return [SubscriptionCollection] which provide lazy access to pages of the # response. # - def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_product_next_async(next_page_link, custom_headers:custom_headers) + list_by_product_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/products.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/products.rb index 70d013feb6..49fcbb993c 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/products.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/products.rb @@ -48,8 +48,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_groups:expand_groups, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers) first_page.get_all_items end @@ -80,8 +80,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_groups:expand_groups, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers).value! end # @@ -111,20 +111,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -181,8 +175,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [ProductContract] operation results. # - def get(resource_group_name, service_name, product_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, product_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, product_id, custom_headers).value! response.body unless response.nil? end @@ -198,8 +192,8 @@ def get(resource_group_name, service_name, product_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, product_id, custom_headers:nil) - get_async(resource_group_name, service_name, product_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_async(resource_group_name, service_name, product_id, custom_headers).value! end # @@ -214,22 +208,15 @@ def get_with_http_info(resource_group_name, service_name, product_id, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, product_id, custom_headers:nil) + def get_async(resource_group_name, service_name, product_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,8 +273,8 @@ def get_async(resource_group_name, service_name, product_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, product_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, product_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers).value! nil end @@ -304,8 +291,8 @@ def create_or_update(resource_group_name, service_name, product_id, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers).value! end # @@ -321,28 +308,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, product_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ProductContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -394,8 +376,8 @@ def create_or_update_async(resource_group_name, service_name, product_id, parame # will be added to the HTTP request. # # - def update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! nil end @@ -415,8 +397,8 @@ def update(resource_group_name, service_name, product_id, parameters, if_match, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! end # @@ -435,16 +417,10 @@ def update_with_http_info(resource_group_name, service_name, product_id, paramet # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -452,13 +428,14 @@ def update_async(resource_group_name, service_name, product_id, parameters, if_m request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::ProductUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -511,8 +488,8 @@ def update_async(resource_group_name, service_name, product_id, parameters, if_m # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, product_id, if_match, delete_subscriptions:nil, custom_headers:nil) - response = delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions, custom_headers).value! nil end @@ -533,8 +510,8 @@ def delete(resource_group_name, service_name, product_id, if_match, delete_subsc # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, product_id, if_match, delete_subscriptions:nil, custom_headers:nil) - delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions, custom_headers).value! end # @@ -554,23 +531,16 @@ def delete_with_http_info(resource_group_name, service_name, product_id, if_matc # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions:nil, custom_headers:nil) + def delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,8 +586,8 @@ def delete_async(resource_group_name, service_name, product_id, if_match, delete # # @return [ProductCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -631,8 +601,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -645,12 +615,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -722,12 +691,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [ProductCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_groups:expand_groups, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb index e18c32cdfb..c49daeeea6 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/property.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -156,8 +150,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [PropertyContract] operation results. # - def get(resource_group_name, service_name, prop_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, prop_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, prop_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, prop_id, custom_headers).value! response.body unless response.nil? end @@ -172,8 +166,8 @@ def get(resource_group_name, service_name, prop_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, prop_id, custom_headers:nil) - get_async(resource_group_name, service_name, prop_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, prop_id, custom_headers = nil) + get_async(resource_group_name, service_name, prop_id, custom_headers).value! end # @@ -187,19 +181,15 @@ def get_with_http_info(resource_group_name, service_name, prop_id, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, prop_id, custom_headers:nil) + def get_async(resource_group_name, service_name, prop_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +245,8 @@ def get_async(resource_group_name, service_name, prop_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, prop_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, prop_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers).value! nil end @@ -272,8 +262,8 @@ def create_or_update(resource_group_name, service_name, prop_id, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, prop_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, prop_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers).value! end # @@ -288,27 +278,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, prop_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? - fail ArgumentError, "'prop_id' should satisfy the constraint - 'MaxLength': '256'" if !prop_id.nil? && prop_id.length > 256 - fail ArgumentError, "'prop_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !prop_id.nil? && prop_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::PropertyCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -359,8 +345,8 @@ def create_or_update_async(resource_group_name, service_name, prop_id, parameter # will be added to the HTTP request. # # - def update(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! nil end @@ -379,8 +365,8 @@ def update(resource_group_name, service_name, prop_id, parameters, if_match, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! end # @@ -398,12 +384,9 @@ def update_with_http_info(resource_group_name, service_name, prop_id, parameters # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -412,13 +395,14 @@ def update_async(resource_group_name, service_name, prop_id, parameters, if_matc request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::PropertyUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -469,8 +453,8 @@ def update_async(resource_group_name, service_name, prop_id, parameters, if_matc # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, prop_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers).value! response.body unless response.nil? end @@ -488,8 +472,8 @@ def delete(resource_group_name, service_name, prop_id, if_match, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers).value! end # @@ -506,12 +490,9 @@ def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -519,7 +500,6 @@ def delete_async(resource_group_name, service_name, prop_id, if_match, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -575,8 +555,8 @@ def delete_async(resource_group_name, service_name, prop_id, if_match, custom_he # # @return [PropertyCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -590,8 +570,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -604,12 +584,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -673,12 +652,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [PropertyCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_counter_keys.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_counter_keys.rb index cbdaf95df1..647f16385d 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_counter_keys.rb @@ -34,8 +34,8 @@ def initialize(client) # # @return [QuotaCounterCollection] operation results. # - def list_by_service(resource_group_name, service_name, quota_counter_key, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ def list_by_service(resource_group_name, service_name, quota_counter_key, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, quota_counter_key, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers).value! end # @@ -69,19 +69,15 @@ def list_by_service_with_http_info(resource_group_name, service_name, quota_coun # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +136,8 @@ def list_by_service_async(resource_group_name, service_name, quota_counter_key, # will be added to the HTTP request. # # - def update(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:nil) - response = update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers).value! nil end @@ -160,8 +156,8 @@ def update(resource_group_name, service_name, quota_counter_key, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:nil) - update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers).value! end # @@ -179,12 +175,9 @@ def update_with_http_info(resource_group_name, service_name, quota_counter_key, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:nil) + def update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -192,12 +185,13 @@ def update_async(resource_group_name, service_name, quota_counter_key, parameter request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::QuotaCounterValueContract.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_period_keys.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_period_keys.rb index 07f0c39093..15389c1e73 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_period_keys.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/quota_by_period_keys.rb @@ -34,8 +34,8 @@ def initialize(client) # # @return [QuotaCounterContract] operation results. # - def get(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:nil) - response = get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + response = get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ def get(resource_group_name, service_name, quota_counter_key, quota_period_key, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:nil) - get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers).value! end # @@ -69,20 +69,16 @@ def get_with_http_info(resource_group_name, service_name, quota_counter_key, quo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:nil) + def get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, 'quota_period_key is nil' if quota_period_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +136,8 @@ def get_async(resource_group_name, service_name, quota_counter_key, quota_period # will be added to the HTTP request. # # - def update(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:nil) - response = update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers).value! nil end @@ -159,8 +155,8 @@ def update(resource_group_name, service_name, quota_counter_key, quota_period_ke # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:nil) - update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers).value! end # @@ -177,12 +173,9 @@ def update_with_http_info(resource_group_name, service_name, quota_counter_key, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:nil) + def update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, 'quota_period_key is nil' if quota_period_key.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -191,12 +184,13 @@ def update_async(resource_group_name, service_name, quota_counter_key, quota_per request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::QuotaCounterValueContract.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/regions.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/regions.rb index c37dac50ed..069447f558 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/regions.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/regions.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [RegionListResult] operation results. # - def list_by_service(resource_group_name, service_name, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def list_by_service(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb index cd1fc2e676..7356f53bd0 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/reports.rb @@ -43,8 +43,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter:filter, top:top, skip:skip, interval:interval, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter, top, skip, interval, custom_headers) first_page.get_all_items end @@ -70,8 +70,8 @@ def list_by_service(resource_group_name, service_name, aggregation, filter:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, aggregation, filter:filter, top:top, skip:skip, interval:interval, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, aggregation, filter, top, skip, interval, custom_headers).value! end # @@ -96,21 +96,15 @@ def list_by_service_with_http_info(resource_group_name, service_name, aggregatio # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'aggregation is nil' if aggregation.nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +159,8 @@ def list_by_service_async(resource_group_name, service_name, aggregation, filter # # @return [ReportCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -180,8 +174,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -194,12 +188,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -266,12 +259,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [ReportCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, aggregation, filter:filter, top:top, skip:skip, interval:interval, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, aggregation, filter, top, skip, interval, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb index 27a05c193e..03defef9cb 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/subscriptions.rb @@ -48,8 +48,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -80,8 +80,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -111,20 +111,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +174,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [SubscriptionContract] operation results. # - def get(resource_group_name, service_name, sid, custom_headers:nil) - response = get_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, sid, custom_headers = nil) + response = get_async(resource_group_name, service_name, sid, custom_headers).value! response.body unless response.nil? end @@ -196,8 +190,8 @@ def get(resource_group_name, service_name, sid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, sid, custom_headers:nil) - get_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + get_async(resource_group_name, service_name, sid, custom_headers).value! end # @@ -211,19 +205,15 @@ def get_with_http_info(resource_group_name, service_name, sid, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, sid, custom_headers:nil) + def get_async(resource_group_name, service_name, sid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -280,8 +270,8 @@ def get_async(resource_group_name, service_name, sid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, sid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, sid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers).value! nil end @@ -298,8 +288,8 @@ def create_or_update(resource_group_name, service_name, sid, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, sid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, sid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers).value! end # @@ -315,28 +305,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, sid, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'MinLength': '1'" if !sid.nil? && sid.length < 1 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::SubscriptionCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -387,8 +372,8 @@ def create_or_update_async(resource_group_name, service_name, sid, parameters, c # will be added to the HTTP request. # # - def update(resource_group_name, service_name, sid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, sid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers).value! nil end @@ -407,8 +392,8 @@ def update(resource_group_name, service_name, sid, parameters, if_match, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers).value! end # @@ -426,12 +411,9 @@ def update_with_http_info(resource_group_name, service_name, sid, parameters, if # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -440,13 +422,14 @@ def update_async(resource_group_name, service_name, sid, parameters, if_match, c request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::SubscriptionUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -496,8 +479,8 @@ def update_async(resource_group_name, service_name, sid, parameters, if_match, c # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, sid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, sid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, sid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, sid, if_match, custom_headers).value! nil end @@ -515,8 +498,8 @@ def delete(resource_group_name, service_name, sid, if_match, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, sid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, sid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, sid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, sid, if_match, custom_headers).value! end # @@ -533,12 +516,9 @@ def delete_with_http_info(resource_group_name, service_name, sid, if_match, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, sid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, sid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -546,7 +526,6 @@ def delete_async(resource_group_name, service_name, sid, if_match, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -593,8 +572,8 @@ def delete_async(resource_group_name, service_name, sid, if_match, custom_header # will be added to the HTTP request. # # - def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers:nil) - response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers).value! nil end @@ -610,8 +589,8 @@ def regenerate_primary_key(resource_group_name, service_name, sid, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid, custom_headers:nil) - regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers).value! end # @@ -626,19 +605,15 @@ def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:nil) + def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -684,8 +659,8 @@ def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_ # will be added to the HTTP request. # # - def regenerate_secondary_key(resource_group_name, service_name, sid, custom_headers:nil) - response = regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_secondary_key(resource_group_name, service_name, sid, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers).value! nil end @@ -701,8 +676,8 @@ def regenerate_secondary_key(resource_group_name, service_name, sid, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, service_name, sid, custom_headers:nil) - regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers).value! end # @@ -717,19 +692,15 @@ def regenerate_secondary_key_with_http_info(resource_group_name, service_name, s # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers:nil) + def regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -774,8 +745,8 @@ def regenerate_secondary_key_async(resource_group_name, service_name, sid, custo # # @return [SubscriptionCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -789,8 +760,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -803,12 +774,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -880,12 +850,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [SubscriptionCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access.rb index eef699977b..8e41763b65 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [AccessInformationContract] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +125,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # will be added to the HTTP request. # # - def update(resource_group_name, service_name, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! nil end @@ -148,8 +144,8 @@ def update(resource_group_name, service_name, parameters, if_match, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! end # @@ -166,12 +162,9 @@ def update_with_http_info(resource_group_name, service_name, parameters, if_matc # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -179,13 +172,14 @@ def update_async(resource_group_name, service_name, parameters, if_match, custom request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::AccessInformationUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -231,8 +225,8 @@ def update_async(resource_group_name, service_name, parameters, if_match, custom # will be added to the HTTP request. # # - def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -246,8 +240,8 @@ def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -260,18 +254,14 @@ def regenerate_primary_key_with_http_info(resource_group_name, service_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_primary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +305,8 @@ def regenerate_primary_key_async(resource_group_name, service_name, custom_heade # will be added to the HTTP request. # # - def regenerate_secondary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -330,8 +320,8 @@ def regenerate_secondary_key(resource_group_name, service_name, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -344,18 +334,14 @@ def regenerate_secondary_key_with_http_info(resource_group_name, service_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access_git.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access_git.rb index 4a76237671..3d18c89d76 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access_git.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_access_git.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [AccessInformationContract] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +121,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # will be added to the HTTP request. # # - def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -140,8 +136,8 @@ def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -154,18 +150,14 @@ def regenerate_primary_key_with_http_info(resource_group_name, service_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_primary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,8 +201,8 @@ def regenerate_primary_key_async(resource_group_name, service_name, custom_heade # will be added to the HTTP request. # # - def regenerate_secondary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -224,8 +216,8 @@ def regenerate_secondary_key(resource_group_name, service_name, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -238,18 +230,14 @@ def regenerate_secondary_key_with_http_info(resource_group_name, service_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration.rb index d0fcb52fd9..dd4744d4f4 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [OperationResultContract] operation results. # - def deploy(resource_group_name, service_name, parameters, custom_headers:nil) - response = deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def deploy(resource_group_name, service_name, parameters, custom_headers = nil) + response = deploy_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ def deploy(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deploy_async(resource_group_name, service_name, parameters, custom_headers:nil) + def deploy_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ def deploy_async(resource_group_name, service_name, parameters, custom_headers:n # # @return [OperationResultContract] operation results. # - def save(resource_group_name, service_name, parameters, custom_headers:nil) - response = save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def save(resource_group_name, service_name, parameters, custom_headers = nil) + response = save_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -97,9 +97,9 @@ def save(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def save_async(resource_group_name, service_name, parameters, custom_headers:nil) + def save_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_save_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -128,8 +128,8 @@ def save_async(resource_group_name, service_name, parameters, custom_headers:nil # # @return [OperationResultContract] operation results. # - def validate(resource_group_name, service_name, parameters, custom_headers:nil) - response = validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def validate(resource_group_name, service_name, parameters, custom_headers = nil) + response = validate_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -144,9 +144,9 @@ def validate(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def validate_async(resource_group_name, service_name, parameters, custom_headers:nil) + def validate_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_validate_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -176,8 +176,8 @@ def validate_async(resource_group_name, service_name, parameters, custom_headers # # @return [OperationResultContract] operation results. # - def begin_deploy(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_deploy(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -195,8 +195,8 @@ def begin_deploy(resource_group_name, service_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deploy_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_deploy_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_deploy_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -213,24 +213,22 @@ def begin_deploy_with_http_info(resource_group_name, service_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_deploy_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::DeployConfigurationParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -290,8 +288,8 @@ def begin_deploy_async(resource_group_name, service_name, parameters, custom_hea # # @return [OperationResultContract] operation results. # - def begin_save(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_save(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_save_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -308,8 +306,8 @@ def begin_save(resource_group_name, service_name, parameters, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_save_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_save_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_save_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -325,24 +323,22 @@ def begin_save_with_http_info(resource_group_name, service_name, parameters, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_save_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_save_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::SaveConfigurationParameter.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -402,8 +398,8 @@ def begin_save_async(resource_group_name, service_name, parameters, custom_heade # # @return [OperationResultContract] operation results. # - def begin_validate(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_validate(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_validate_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -420,8 +416,8 @@ def begin_validate(resource_group_name, service_name, parameters, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_validate_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_validate_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_validate_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -437,24 +433,22 @@ def begin_validate_with_http_info(resource_group_name, service_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_validate_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_validate_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::DeployConfigurationParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb index e72b64edde..cfbccecc0f 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [TenantConfigurationSyncStateContract] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -63,18 +63,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_groups.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_groups.rb index c615e5267d..cb53e54ef7 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_groups.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_groups.rb @@ -44,8 +44,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_user(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_user_as_lazy(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_user(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_user_as_lazy(resource_group_name, service_name, uid, filter, top, skip, custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ def list_by_user(resource_group_name, service_name, uid, filter:nil, top:nil, sk # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_user_with_http_info(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_user_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_user_with_http_info(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_user_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! end # @@ -99,24 +99,15 @@ def list_by_user_with_http_info(resource_group_name, service_name, uid, filter:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_user_async(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_user_async(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +162,8 @@ def list_by_user_async(resource_group_name, service_name, uid, filter:nil, top:n # # @return [GroupCollection] operation results. # - def list_by_user_next(next_page_link, custom_headers:nil) - response = list_by_user_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_user_next(next_page_link, custom_headers = nil) + response = list_by_user_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -186,8 +177,8 @@ def list_by_user_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_user_next_with_http_info(next_page_link, custom_headers:nil) - list_by_user_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_user_next_with_http_info(next_page_link, custom_headers = nil) + list_by_user_next_async(next_page_link, custom_headers).value! end # @@ -200,12 +191,11 @@ def list_by_user_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_user_next_async(next_page_link, custom_headers:nil) + def list_by_user_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -272,12 +262,12 @@ def list_by_user_next_async(next_page_link, custom_headers:nil) # # @return [GroupCollection] which provide lazy access to pages of the response. # - def list_by_user_as_lazy(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_user_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_user_as_lazy(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_user_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_user_next_async(next_page_link, custom_headers:custom_headers) + list_by_user_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_identities.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_identities.rb index ed5bb4d719..7219e52337 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_identities.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_identities.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_user(resource_group_name, service_name, uid, custom_headers:nil) - response = list_by_user_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def list_by_user(resource_group_name, service_name, uid, custom_headers = nil) + response = list_by_user_async(resource_group_name, service_name, uid, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def list_by_user(resource_group_name, service_name, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_user_with_http_info(resource_group_name, service_name, uid, custom_headers:nil) - list_by_user_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def list_by_user_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + list_by_user_async(resource_group_name, service_name, uid, custom_headers).value! end # @@ -66,22 +66,15 @@ def list_by_user_with_http_info(resource_group_name, service_name, uid, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_user_async(resource_group_name, service_name, uid, custom_headers:nil) + def list_by_user_async(resource_group_name, service_name, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,13 +107,11 @@ def list_by_user_async(resource_group_name, service_name, uid, custom_headers:ni begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserIdentityContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_subscriptions.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_subscriptions.rb index 8642382b5b..2f41cb2475 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_subscriptions.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/user_subscriptions.rb @@ -50,8 +50,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_user(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_user_as_lazy(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_user(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_user_as_lazy(resource_group_name, service_name, uid, filter, top, skip, custom_headers) first_page.get_all_items end @@ -84,8 +84,8 @@ def list_by_user(resource_group_name, service_name, uid, filter:nil, top:nil, sk # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_user_with_http_info(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_user_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_user_with_http_info(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_user_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! end # @@ -117,24 +117,15 @@ def list_by_user_with_http_info(resource_group_name, service_name, uid, filter:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_user_async(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_user_async(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,8 +180,8 @@ def list_by_user_async(resource_group_name, service_name, uid, filter:nil, top:n # # @return [SubscriptionCollection] operation results. # - def list_by_user_next(next_page_link, custom_headers:nil) - response = list_by_user_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_user_next(next_page_link, custom_headers = nil) + response = list_by_user_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -204,8 +195,8 @@ def list_by_user_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_user_next_with_http_info(next_page_link, custom_headers:nil) - list_by_user_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_user_next_with_http_info(next_page_link, custom_headers = nil) + list_by_user_next_async(next_page_link, custom_headers).value! end # @@ -218,12 +209,11 @@ def list_by_user_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_user_next_async(next_page_link, custom_headers:nil) + def list_by_user_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,12 +287,12 @@ def list_by_user_next_async(next_page_link, custom_headers:nil) # @return [SubscriptionCollection] which provide lazy access to pages of the # response. # - def list_by_user_as_lazy(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_user_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_user_as_lazy(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_user_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_user_next_async(next_page_link, custom_headers:custom_headers) + list_by_user_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/users.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/users.rb index 8927418202..8e08aa9346 100644 --- a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/users.rb +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/users.rb @@ -50,8 +50,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -84,8 +84,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -117,20 +117,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -187,8 +181,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [UserContract] operation results. # - def get(resource_group_name, service_name, uid, custom_headers:nil) - response = get_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, uid, custom_headers = nil) + response = get_async(resource_group_name, service_name, uid, custom_headers).value! response.body unless response.nil? end @@ -204,8 +198,8 @@ def get(resource_group_name, service_name, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, uid, custom_headers:nil) - get_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + get_async(resource_group_name, service_name, uid, custom_headers).value! end # @@ -220,22 +214,15 @@ def get_with_http_info(resource_group_name, service_name, uid, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, uid, custom_headers:nil) + def get_async(resource_group_name, service_name, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -292,8 +279,8 @@ def get_async(resource_group_name, service_name, uid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, uid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, uid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers).value! nil end @@ -310,8 +297,8 @@ def create_or_update(resource_group_name, service_name, uid, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers).value! end # @@ -327,28 +314,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, uid, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::UserCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -401,8 +383,8 @@ def create_or_update_async(resource_group_name, service_name, uid, parameters, c # # @return [ErrorBodyContract] operation results. # - def update(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! response.body unless response.nil? end @@ -422,8 +404,8 @@ def update(resource_group_name, service_name, uid, parameters, if_match, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! end # @@ -442,16 +424,10 @@ def update_with_http_info(resource_group_name, service_name, uid, parameters, if # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -459,13 +435,14 @@ def update_async(resource_group_name, service_name, uid, parameters, if_match, c request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_07_07::Models::UserUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -529,8 +506,8 @@ def update_async(resource_group_name, service_name, uid, parameters, if_match, c # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, custom_headers:nil) - response = delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions, custom_headers).value! response.body unless response.nil? end @@ -551,8 +528,8 @@ def delete(resource_group_name, service_name, uid, if_match, delete_subscription # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, custom_headers:nil) - delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions, custom_headers).value! end # @@ -572,23 +549,16 @@ def delete_with_http_info(resource_group_name, service_name, uid, if_match, dele # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, custom_headers:nil) + def delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -647,8 +617,8 @@ def delete_async(resource_group_name, service_name, uid, if_match, delete_subscr # # @return [GenerateSsoUrlResult] operation results. # - def generate_sso_url(resource_group_name, service_name, uid, custom_headers:nil) - response = generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def generate_sso_url(resource_group_name, service_name, uid, custom_headers = nil) + response = generate_sso_url_async(resource_group_name, service_name, uid, custom_headers).value! response.body unless response.nil? end @@ -665,8 +635,8 @@ def generate_sso_url(resource_group_name, service_name, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_url_with_http_info(resource_group_name, service_name, uid, custom_headers:nil) - generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def generate_sso_url_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + generate_sso_url_async(resource_group_name, service_name, uid, custom_headers).value! end # @@ -682,22 +652,15 @@ def generate_sso_url_with_http_info(resource_group_name, service_name, uid, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:nil) + def generate_sso_url_async(resource_group_name, service_name, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -752,8 +715,8 @@ def generate_sso_url_async(resource_group_name, service_name, uid, custom_header # # @return [UserCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -767,8 +730,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -781,12 +744,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -859,12 +821,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # # @return [UserCollection] which provide lazy access to pages of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/version.rb b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/version.rb new file mode 100644 index 0000000000..bc156d6133 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2016_07_07 + VERSION = '0.17.0' +end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_export.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_export.rb index dec2b9c718..bf58a6669f 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_export.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_export.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [ApiExportResult] operation results. # - def get(resource_group_name, service_name, api_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def get(resource_group_name, service_name, api_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, custom_headers).value! end # @@ -66,22 +66,15 @@ def get_with_http_info(resource_group_name, service_name, api_id, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb index a5d1789f55..743a4c5b8e 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_client.rb @@ -25,16 +25,15 @@ class ApiManagementClient < MsRestAzure::AzureServiceClient # for every service call. attr_accessor :subscription_id - # @return [String] The preferred language for the response. + # @return [String] Gets or sets the preferred language for the response. attr_accessor :accept_language - # @return [Integer] The retry timeout in seconds for Long Running - # Operations. Default value is 30. + # @return [Integer] Gets or sets the retry timeout in seconds for Long + # Running Operations. Default value is 30. attr_accessor :long_running_operation_retry_timeout - # @return [Boolean] Whether a unique x-ms-client-request-id should be - # generated. When set to true a unique x-ms-client-request-id value is - # generated and included in each request. Default is true. + # @return [Boolean] When set to true a unique x-ms-client-request-id value + # is generated and included in each request. Default is true. attr_accessor :generate_client_request_id # @return [PolicySnippets] policy_snippets @@ -259,9 +258,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -278,7 +274,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_api_management' - sdk_information = "#{sdk_information}/0.18.0" + if defined? Azure::ApiManagement::Mgmt::V2016_10_10::VERSION + sdk_information = "#{sdk_information}/#{Azure::ApiManagement::Mgmt::V2016_10_10::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_operations.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_operations.rb index 06c392510d..c57dbf42b6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_operations.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(custom_headers:nil) - first_page = list_as_lazy(custom_headers:custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,12 +57,11 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +116,8 @@ def list_async(custom_headers:nil) # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers:nil) - response = list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -133,8 +132,8 @@ def list_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers:nil) - list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! end # @@ -148,12 +147,11 @@ def list_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers:nil) + def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -207,12 +205,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers:custom_headers) + list_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb index 613f1d33c9..bdc5c5a077 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [ApiManagementServiceResource] operation results. # - def manage_deployments(resource_group_name, service_name, parameters, custom_headers:nil) - response = manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def manage_deployments(resource_group_name, service_name, parameters, custom_headers = nil) + response = manage_deployments_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -52,9 +52,9 @@ def manage_deployments(resource_group_name, service_name, parameters, custom_hea # @return [Concurrent::Promise] promise which provides async access to http # response. # - def manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:nil) + def manage_deployments_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ def manage_deployments_async(resource_group_name, service_name, parameters, cust # # @return [ApiManagementServiceResource] operation results. # - def restore(resource_group_name, service_name, parameters, custom_headers:nil) - response = restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def restore(resource_group_name, service_name, parameters, custom_headers = nil) + response = restore_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -100,9 +100,9 @@ def restore(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restore_async(resource_group_name, service_name, parameters, custom_headers:nil) + def restore_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_restore_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -132,8 +132,8 @@ def restore_async(resource_group_name, service_name, parameters, custom_headers: # # @return [ApiManagementServiceResource] operation results. # - def backup(resource_group_name, service_name, parameters, custom_headers:nil) - response = backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def backup(resource_group_name, service_name, parameters, custom_headers = nil) + response = backup_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -148,9 +148,9 @@ def backup(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backup_async(resource_group_name, service_name, parameters, custom_headers:nil) + def backup_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_backup_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -179,8 +179,8 @@ def backup_async(resource_group_name, service_name, parameters, custom_headers:n # # @return [ApiManagementServiceResource] operation results. # - def create_or_update(resource_group_name, service_name, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -197,8 +197,8 @@ def create_or_update(resource_group_name, service_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -214,24 +214,22 @@ def create_or_update_with_http_info(resource_group_name, service_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceResource.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -300,8 +298,8 @@ def create_or_update_async(resource_group_name, service_name, parameters, custom # # @return [ApiManagementServiceResource] operation results. # - def update(resource_group_name, service_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -316,9 +314,9 @@ def update(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, service_name, parameters, custom_headers:nil) + def update_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -344,8 +342,8 @@ def update_async(resource_group_name, service_name, parameters, custom_headers:n # # @return [ApiManagementServiceResource] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -359,8 +357,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -373,18 +371,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -438,8 +432,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, custom_headers:nil) - response = delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, custom_headers = nil) + response = delete_async(resource_group_name, service_name, custom_headers).value! nil end @@ -453,8 +447,8 @@ def delete(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, custom_headers:nil) - delete_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, custom_headers = nil) + delete_async(resource_group_name, service_name, custom_headers).value! end # @@ -467,18 +461,14 @@ def delete_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, custom_headers:nil) + def delete_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -522,8 +512,8 @@ def delete_async(resource_group_name, service_name, custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -536,8 +526,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -549,14 +539,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -609,8 +598,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Array] operation results. # - def list(custom_headers:nil) - first_page = list_as_lazy(custom_headers:custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end @@ -622,8 +611,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -634,13 +623,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -696,8 +684,8 @@ def list_async(custom_headers:nil) # # @return [ApiManagementServiceGetSsoTokenResult] operation results. # - def get_sso_token(resource_group_name, service_name, custom_headers:nil) - response = get_sso_token_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_sso_token(resource_group_name, service_name, custom_headers = nil) + response = get_sso_token_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -712,8 +700,8 @@ def get_sso_token(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_sso_token_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_sso_token_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_sso_token_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_sso_token_async(resource_group_name, service_name, custom_headers).value! end # @@ -727,18 +715,14 @@ def get_sso_token_with_http_info(resource_group_name, service_name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_sso_token_async(resource_group_name, service_name, custom_headers:nil) + def get_sso_token_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -793,8 +777,8 @@ def get_sso_token_async(resource_group_name, service_name, custom_headers:nil) # # @return [ApiManagementServiceNameAvailabilityResult] operation results. # - def check_name_availability(parameters, custom_headers:nil) - response = check_name_availability_async(parameters, custom_headers:custom_headers).value! + def check_name_availability(parameters, custom_headers = nil) + response = check_name_availability_async(parameters, custom_headers).value! response.body unless response.nil? end @@ -808,8 +792,8 @@ def check_name_availability(parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers:nil) - check_name_availability_async(parameters, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers = nil) + check_name_availability_async(parameters, custom_headers).value! end # @@ -822,19 +806,20 @@ def check_name_availability_with_http_info(parameters, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers:nil) + def check_name_availability_async(parameters, custom_headers = nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -894,8 +879,8 @@ def check_name_availability_async(parameters, custom_headers:nil) # # @return [CertificateInformation] operation results. # - def upload_certificate(resource_group_name, service_name, parameters, custom_headers:nil) - response = upload_certificate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def upload_certificate(resource_group_name, service_name, parameters, custom_headers = nil) + response = upload_certificate_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -912,8 +897,8 @@ def upload_certificate(resource_group_name, service_name, parameters, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def upload_certificate_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - upload_certificate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def upload_certificate_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + upload_certificate_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -929,24 +914,22 @@ def upload_certificate_with_http_info(resource_group_name, service_name, paramet # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def upload_certificate_async(resource_group_name, service_name, parameters, custom_headers:nil) + def upload_certificate_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceUploadCertificateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1007,8 +990,8 @@ def upload_certificate_async(resource_group_name, service_name, parameters, cust # # @return [ApiManagementServiceResource] operation results. # - def update_hostname(resource_group_name, service_name, parameters, custom_headers:nil) - response = update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def update_hostname(resource_group_name, service_name, parameters, custom_headers = nil) + response = update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1023,9 +1006,9 @@ def update_hostname(resource_group_name, service_name, parameters, custom_header # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_hostname_async(resource_group_name, service_name, parameters, custom_headers:nil) + def update_hostname_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1052,8 +1035,8 @@ def update_hostname_async(resource_group_name, service_name, parameters, custom_ # # @return [ApiManagementServiceResource] operation results. # - def apply_network_configuration_updates(resource_group_name, service_name, custom_headers:nil) - response = apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def apply_network_configuration_updates(resource_group_name, service_name, custom_headers = nil) + response = apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -1066,9 +1049,9 @@ def apply_network_configuration_updates(resource_group_name, service_name, custo # @return [Concurrent::Promise] promise which provides async access to http # response. # - def apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers:nil) + def apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers = nil) # Send request - promise = begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers:custom_headers) + promise = begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1099,8 +1082,8 @@ def apply_network_configuration_updates_async(resource_group_name, service_name, # # @return [ApiManagementServiceResource] operation results. # - def begin_manage_deployments(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_manage_deployments(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1119,8 +1102,8 @@ def begin_manage_deployments(resource_group_name, service_name, parameters, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_manage_deployments_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_manage_deployments_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1138,24 +1121,22 @@ def begin_manage_deployments_with_http_info(resource_group_name, service_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_manage_deployments_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceManageDeploymentsParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1226,8 +1207,8 @@ def begin_manage_deployments_async(resource_group_name, service_name, parameters # # @return [ApiManagementServiceResource] operation results. # - def begin_restore(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_restore(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_restore_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1245,8 +1226,8 @@ def begin_restore(resource_group_name, service_name, parameters, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restore_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_restore_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_restore_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_restore_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1263,24 +1244,22 @@ def begin_restore_with_http_info(resource_group_name, service_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restore_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_restore_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceBackupRestoreParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1341,8 +1320,8 @@ def begin_restore_async(resource_group_name, service_name, parameters, custom_he # # @return [ApiManagementServiceResource] operation results. # - def begin_backup(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_backup(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_backup_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1360,8 +1339,8 @@ def begin_backup(resource_group_name, service_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_backup_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1378,24 +1357,22 @@ def begin_backup_with_http_info(resource_group_name, service_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backup_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_backup_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceBackupRestoreParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1454,8 +1431,8 @@ def begin_backup_async(resource_group_name, service_name, parameters, custom_hea # # @return [ApiManagementServiceResource] operation results. # - def begin_update(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_update_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1471,8 +1448,8 @@ def begin_update(resource_group_name, service_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_update_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_update_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1487,24 +1464,22 @@ def begin_update_with_http_info(resource_group_name, service_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_update_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1565,8 +1540,8 @@ def begin_update_async(resource_group_name, service_name, parameters, custom_hea # # @return [ApiManagementServiceResource] operation results. # - def begin_update_hostname(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update_hostname(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1584,8 +1559,8 @@ def begin_update_hostname(resource_group_name, service_name, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_hostname_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_update_hostname_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -1602,24 +1577,22 @@ def begin_update_hostname_with_http_info(resource_group_name, service_name, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiManagementServiceUpdateHostnameParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1687,8 +1660,8 @@ def begin_update_hostname_async(resource_group_name, service_name, parameters, c # # @return [ApiManagementServiceResource] operation results. # - def begin_apply_network_configuration_updates(resource_group_name, service_name, custom_headers:nil) - response = begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def begin_apply_network_configuration_updates(resource_group_name, service_name, custom_headers = nil) + response = begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -1703,8 +1676,8 @@ def begin_apply_network_configuration_updates(resource_group_name, service_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_apply_network_configuration_updates_with_http_info(resource_group_name, service_name, custom_headers:nil) - begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def begin_apply_network_configuration_updates_with_http_info(resource_group_name, service_name, custom_headers = nil) + begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers).value! end # @@ -1718,18 +1691,14 @@ def begin_apply_network_configuration_updates_with_http_info(resource_group_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers:nil) + def begin_apply_network_configuration_updates_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1784,8 +1753,8 @@ def begin_apply_network_configuration_updates_async(resource_group_name, service # # @return [ApiManagementServiceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers:nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers = nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1799,8 +1768,8 @@ def list_by_resource_group_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_resource_group_next_async(next_page_link, custom_headers).value! end # @@ -1813,12 +1782,11 @@ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers:nil) + def list_by_resource_group_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1872,8 +1840,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [ApiManagementServiceListResult] operation results. # - def list_next(next_page_link, custom_headers:nil) - response = list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1887,8 +1855,8 @@ def list_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers:nil) - list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! end # @@ -1901,12 +1869,11 @@ def list_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers:nil) + def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1960,12 +1927,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ApiManagementServiceListResult] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end @@ -1980,12 +1947,12 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) # @return [ApiManagementServiceListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers:custom_headers) + list_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations.rb index d1faa05c57..47ad4901d6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations.rb @@ -42,8 +42,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_apis(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_apis(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -68,8 +68,8 @@ def list_by_apis(resource_group_name, service_name, api_id, filter:nil, top:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_apis_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_apis_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! end # @@ -93,24 +93,15 @@ def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filte # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_apis_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_apis_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +160,8 @@ def list_by_apis_async(resource_group_name, service_name, api_id, filter:nil, to # # @return [OperationContract] operation results. # - def get(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! response.body unless response.nil? end @@ -188,8 +179,8 @@ def get(resource_group_name, service_name, api_id, operation_id, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! end # @@ -206,26 +197,16 @@ def get_with_http_info(resource_group_name, service_name, api_id, operation_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -284,8 +265,8 @@ def get_async(resource_group_name, service_name, api_id, operation_id, custom_he # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers).value! nil end @@ -304,8 +285,8 @@ def create_or_update(resource_group_name, service_name, api_id, operation_id, pa # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers).value! end # @@ -323,32 +304,24 @@ def create_or_update_with_http_info(resource_group_name, service_name, api_id, o # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::OperationContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -402,8 +375,8 @@ def create_or_update_async(resource_group_name, service_name, api_id, operation_ # will be added to the HTTP request. # # - def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! nil end @@ -425,8 +398,8 @@ def update(resource_group_name, service_name, api_id, operation_id, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! end # @@ -447,20 +420,11 @@ def update_with_http_info(resource_group_name, service_name, api_id, operation_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -468,13 +432,14 @@ def update_async(resource_group_name, service_name, api_id, operation_id, parame request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::OperationUpdateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -527,8 +492,8 @@ def update_async(resource_group_name, service_name, api_id, operation_id, parame # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! nil end @@ -549,8 +514,8 @@ def delete(resource_group_name, service_name, api_id, operation_id, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! end # @@ -570,27 +535,17 @@ def delete_with_http_info(resource_group_name, service_name, api_id, operation_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -636,8 +591,8 @@ def delete_async(resource_group_name, service_name, api_id, operation_id, if_mat # # @return [OperationCollection] operation results. # - def list_by_apis_next(next_page_link, custom_headers:nil) - response = list_by_apis_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_apis_next(next_page_link, custom_headers = nil) + response = list_by_apis_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -651,8 +606,8 @@ def list_by_apis_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_apis_next_with_http_info(next_page_link, custom_headers:nil) - list_by_apis_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_apis_next_with_http_info(next_page_link, custom_headers = nil) + list_by_apis_next_async(next_page_link, custom_headers).value! end # @@ -665,12 +620,11 @@ def list_by_apis_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_apis_next_async(next_page_link, custom_headers:nil) + def list_by_apis_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -736,12 +690,12 @@ def list_by_apis_next_async(next_page_link, custom_headers:nil) # @return [OperationCollection] which provide lazy access to pages of the # response. # - def list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_apis_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_apis_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_apis_next_async(next_page_link, custom_headers:custom_headers) + list_by_apis_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations_policy.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations_policy.rb index a056847ec4..e5a6c87938 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations_policy.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_operations_policy.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ def get(resource_group_name, service_name, api_id, operation_id, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! end # @@ -72,26 +72,16 @@ def get_with_http_info(resource_group_name, service_name, api_id, operation_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -124,7 +114,6 @@ def get_async(resource_group_name, service_name, api_id, operation_id, custom_he begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -160,8 +149,8 @@ def get_async(resource_group_name, service_name, api_id, operation_id, custom_he # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! nil end @@ -183,8 +172,8 @@ def create_or_update(resource_group_name, service_name, api_id, operation_id, pa # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! end # @@ -205,20 +194,11 @@ def create_or_update_with_http_info(resource_group_name, service_name, api_id, o # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -226,16 +206,16 @@ def create_or_update_async(resource_group_name, service_name, api_id, operation_ request_headers = {} - request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' + # Serialize Request request_mapper = { - client_side_validation: true, required: true, serialized_name: 'parameters', type: { @@ -243,6 +223,7 @@ def create_or_update_async(resource_group_name, service_name, api_id, operation_ } } request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policy' @@ -291,8 +272,8 @@ def create_or_update_async(resource_group_name, service_name, api_id, operation_ # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! nil end @@ -313,8 +294,8 @@ def delete(resource_group_name, service_name, api_id, operation_id, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! end # @@ -334,27 +315,17 @@ def delete_with_http_info(resource_group_name, service_name, api_id, operation_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MaxLength': '256'" if !operation_id.nil? && operation_id.length > 256 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'MinLength': '1'" if !operation_id.nil? && operation_id.length < 1 - fail ArgumentError, "'operation_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !operation_id.nil? && operation_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_policy.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_policy.rb index fc5de512dc..b7c903c3a6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_policy.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_policy.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get(resource_group_name, service_name, api_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def get(resource_group_name, service_name, api_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, custom_headers).value! end # @@ -66,22 +66,15 @@ def get_with_http_info(resource_group_name, service_name, api_id, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,7 +107,6 @@ def get_async(resource_group_name, service_name, api_id, custom_headers:nil) begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -148,8 +140,8 @@ def get_async(resource_group_name, service_name, api_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! nil end @@ -169,8 +161,8 @@ def create_or_update(resource_group_name, service_name, api_id, parameters, if_m # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! end # @@ -189,16 +181,10 @@ def create_or_update_with_http_info(resource_group_name, service_name, api_id, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -206,16 +192,16 @@ def create_or_update_async(resource_group_name, service_name, api_id, parameters request_headers = {} - request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' + # Serialize Request request_mapper = { - client_side_validation: true, required: true, serialized_name: 'parameters', type: { @@ -223,6 +209,7 @@ def create_or_update_async(resource_group_name, service_name, api_id, parameters } } request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policy' @@ -269,8 +256,8 @@ def create_or_update_async(resource_group_name, service_name, api_id, parameters # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, api_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! nil end @@ -289,8 +276,8 @@ def delete(resource_group_name, service_name, api_id, if_match, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! end # @@ -308,23 +295,16 @@ def delete_with_http_info(resource_group_name, service_name, api_id, if_match, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_products.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_products.rb index 04b07cc3d6..78b43018e2 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_products.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_products.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_apis(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_apis(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_apis(resource_group_name, service_name, api_id, filter:nil, top:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_apis_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_apis_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! end # @@ -87,24 +87,15 @@ def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filte # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_apis_async(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_apis_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -159,8 +150,8 @@ def list_by_apis_async(resource_group_name, service_name, api_id, filter:nil, to # # @return [ProductCollection] operation results. # - def list_by_apis_next(next_page_link, custom_headers:nil) - response = list_by_apis_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_apis_next(next_page_link, custom_headers = nil) + response = list_by_apis_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -174,8 +165,8 @@ def list_by_apis_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_apis_next_with_http_info(next_page_link, custom_headers:nil) - list_by_apis_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_apis_next_with_http_info(next_page_link, custom_headers = nil) + list_by_apis_next_async(next_page_link, custom_headers).value! end # @@ -188,12 +179,11 @@ def list_by_apis_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_apis_next_async(next_page_link, custom_headers:nil) + def list_by_apis_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,12 +247,12 @@ def list_by_apis_next_async(next_page_link, custom_headers:nil) # @return [ProductCollection] which provide lazy access to pages of the # response. # - def list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_apis_async(resource_group_name, service_name, api_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_apis_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_apis_next_async(next_page_link, custom_headers:custom_headers) + list_by_apis_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/apis.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/apis.rb index 6dac50e136..495e729b30 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/apis.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/apis.rb @@ -41,8 +41,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -66,8 +66,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -90,20 +90,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -160,8 +154,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [ApiContract] operation results. # - def get(resource_group_name, service_name, api_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, custom_headers).value! response.body unless response.nil? end @@ -177,8 +171,8 @@ def get(resource_group_name, service_name, api_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, api_id, custom_headers:nil) - get_async(resource_group_name, service_name, api_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, custom_headers).value! end # @@ -193,22 +187,15 @@ def get_with_http_info(resource_group_name, service_name, api_id, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, api_id, custom_headers:nil) + def get_async(resource_group_name, service_name, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -269,8 +256,8 @@ def get_async(resource_group_name, service_name, api_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! nil end @@ -291,8 +278,8 @@ def create_or_update(resource_group_name, service_name, api_id, parameters, if_m # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! end # @@ -312,29 +299,24 @@ def create_or_update_with_http_info(resource_group_name, service_name, api_id, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match:nil, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -386,8 +368,8 @@ def create_or_update_async(resource_group_name, service_name, api_id, parameters # will be added to the HTTP request. # # - def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! nil end @@ -407,8 +389,8 @@ def update(resource_group_name, service_name, api_id, parameters, if_match, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! end # @@ -427,16 +409,10 @@ def update_with_http_info(resource_group_name, service_name, api_id, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -444,13 +420,14 @@ def update_async(resource_group_name, service_name, api_id, parameters, if_match request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ApiUpdateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -501,8 +478,8 @@ def update_async(resource_group_name, service_name, api_id, parameters, if_match # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, api_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! nil end @@ -521,8 +498,8 @@ def delete(resource_group_name, service_name, api_id, if_match, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! end # @@ -540,23 +517,16 @@ def delete_with_http_info(resource_group_name, service_name, api_id, if_match, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -602,8 +572,8 @@ def delete_async(resource_group_name, service_name, api_id, if_match, custom_hea # # @return [ApiCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -617,8 +587,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -631,12 +601,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -700,12 +669,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # # @return [ApiCollection] which provide lazy access to pages of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/authorization_servers.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/authorization_servers.rb index 2de59429c1..72e857efee 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/authorization_servers.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/authorization_servers.rb @@ -41,8 +41,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -66,8 +66,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -90,20 +90,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -159,8 +153,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [OAuth2AuthorizationServerContract] operation results. # - def get(resource_group_name, service_name, authsid, custom_headers:nil) - response = get_async(resource_group_name, service_name, authsid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, authsid, custom_headers = nil) + response = get_async(resource_group_name, service_name, authsid, custom_headers).value! response.body unless response.nil? end @@ -175,8 +169,8 @@ def get(resource_group_name, service_name, authsid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, authsid, custom_headers:nil) - get_async(resource_group_name, service_name, authsid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, authsid, custom_headers = nil) + get_async(resource_group_name, service_name, authsid, custom_headers).value! end # @@ -190,21 +184,15 @@ def get_with_http_info(resource_group_name, service_name, authsid, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, authsid, custom_headers:nil) + def get_async(resource_group_name, service_name, authsid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? - fail ArgumentError, "'authsid' should satisfy the constraint - 'MaxLength': '256'" if !authsid.nil? && authsid.length > 256 - fail ArgumentError, "'authsid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !authsid.nil? && authsid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +249,8 @@ def get_async(resource_group_name, service_name, authsid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, authsid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, authsid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers).value! nil end @@ -279,8 +267,8 @@ def create_or_update(resource_group_name, service_name, authsid, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, authsid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, authsid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers).value! end # @@ -296,27 +284,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, authsid, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, authsid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? - fail ArgumentError, "'authsid' should satisfy the constraint - 'MaxLength': '256'" if !authsid.nil? && authsid.length > 256 - fail ArgumentError, "'authsid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !authsid.nil? && authsid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::OAuth2AuthorizationServerContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -368,8 +352,8 @@ def create_or_update_async(resource_group_name, service_name, authsid, parameter # will be added to the HTTP request. # # - def update(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! nil end @@ -389,8 +373,8 @@ def update(resource_group_name, service_name, authsid, parameters, if_match, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! end # @@ -409,15 +393,10 @@ def update_with_http_info(resource_group_name, service_name, authsid, parameters # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? - fail ArgumentError, "'authsid' should satisfy the constraint - 'MaxLength': '256'" if !authsid.nil? && authsid.length > 256 - fail ArgumentError, "'authsid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !authsid.nil? && authsid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,13 +404,14 @@ def update_async(resource_group_name, service_name, authsid, parameters, if_matc request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::OAuth2AuthorizationServerUpdateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -481,8 +461,8 @@ def update_async(resource_group_name, service_name, authsid, parameters, if_matc # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, authsid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, authsid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, authsid, if_match, custom_headers).value! nil end @@ -500,8 +480,8 @@ def delete(resource_group_name, service_name, authsid, if_match, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, authsid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, authsid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, authsid, if_match, custom_headers).value! end # @@ -518,22 +498,16 @@ def delete_with_http_info(resource_group_name, service_name, authsid, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, authsid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, authsid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'authsid is nil' if authsid.nil? - fail ArgumentError, "'authsid' should satisfy the constraint - 'MaxLength': '256'" if !authsid.nil? && authsid.length > 256 - fail ArgumentError, "'authsid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !authsid.nil? && authsid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -580,8 +554,8 @@ def delete_async(resource_group_name, service_name, authsid, if_match, custom_he # # @return [AuthorizationServerCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -596,8 +570,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -611,12 +585,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,12 +654,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [AuthorizationServerCollection] which provide lazy access to pages of # the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/backends.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/backends.rb index 6ca4fda2c3..467f053062 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/backends.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/backends.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -157,8 +151,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [BackendResponse] operation results. # - def get(resource_group_name, service_name, backendid, custom_headers:nil) - response = get_async(resource_group_name, service_name, backendid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, backendid, custom_headers = nil) + response = get_async(resource_group_name, service_name, backendid, custom_headers).value! response.body unless response.nil? end @@ -174,8 +168,8 @@ def get(resource_group_name, service_name, backendid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, backendid, custom_headers:nil) - get_async(resource_group_name, service_name, backendid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, backendid, custom_headers = nil) + get_async(resource_group_name, service_name, backendid, custom_headers).value! end # @@ -190,22 +184,15 @@ def get_with_http_info(resource_group_name, service_name, backendid, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, backendid, custom_headers:nil) + def get_async(resource_group_name, service_name, backendid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +249,8 @@ def get_async(resource_group_name, service_name, backendid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, backendid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, backendid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers).value! nil end @@ -280,8 +267,8 @@ def create_or_update(resource_group_name, service_name, backendid, parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, backendid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, backendid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers).value! end # @@ -297,28 +284,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, backendid # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, backendid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::BackendContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -370,8 +352,8 @@ def create_or_update_async(resource_group_name, service_name, backendid, paramet # will be added to the HTTP request. # # - def update(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! nil end @@ -391,8 +373,8 @@ def update(resource_group_name, service_name, backendid, parameters, if_match, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! end # @@ -411,16 +393,10 @@ def update_with_http_info(resource_group_name, service_name, backendid, paramete # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -428,13 +404,14 @@ def update_async(resource_group_name, service_name, backendid, parameters, if_ma request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::BackendUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -485,8 +462,8 @@ def update_async(resource_group_name, service_name, backendid, parameters, if_ma # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, backendid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, backendid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, backendid, if_match, custom_headers).value! nil end @@ -505,8 +482,8 @@ def delete(resource_group_name, service_name, backendid, if_match, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, backendid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, backendid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, backendid, if_match, custom_headers).value! end # @@ -524,23 +501,16 @@ def delete_with_http_info(resource_group_name, service_name, backendid, if_match # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, backendid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, backendid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'backendid is nil' if backendid.nil? - fail ArgumentError, "'backendid' should satisfy the constraint - 'MaxLength': '255'" if !backendid.nil? && backendid.length > 255 - fail ArgumentError, "'backendid' should satisfy the constraint - 'MinLength': '1'" if !backendid.nil? && backendid.length < 1 - fail ArgumentError, "'backendid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !backendid.nil? && backendid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -586,8 +556,8 @@ def delete_async(resource_group_name, service_name, backendid, if_match, custom_ # # @return [BackendCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -601,8 +571,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -615,12 +585,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -684,12 +653,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [BackendCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/certificates.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/certificates.rb index 0ecd850d7e..c7adaf32ef 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/certificates.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/certificates.rb @@ -44,8 +44,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -99,20 +99,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +163,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [CertificateContract] operation results. # - def get(resource_group_name, service_name, certificate_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, certificate_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, certificate_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, certificate_id, custom_headers).value! response.body unless response.nil? end @@ -186,8 +180,8 @@ def get(resource_group_name, service_name, certificate_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, certificate_id, custom_headers:nil) - get_async(resource_group_name, service_name, certificate_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, certificate_id, custom_headers = nil) + get_async(resource_group_name, service_name, certificate_id, custom_headers).value! end # @@ -202,22 +196,15 @@ def get_with_http_info(resource_group_name, service_name, certificate_id, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, certificate_id, custom_headers:nil) + def get_async(resource_group_name, service_name, certificate_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MaxLength': '256'" if !certificate_id.nil? && certificate_id.length > 256 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MinLength': '1'" if !certificate_id.nil? && certificate_id.length < 1 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !certificate_id.nil? && certificate_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -278,8 +265,8 @@ def get_async(resource_group_name, service_name, certificate_id, custom_headers: # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, certificate_id, parameters, if_match:nil, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match, custom_headers).value! nil end @@ -300,8 +287,8 @@ def create_or_update(resource_group_name, service_name, certificate_id, paramete # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, certificate_id, parameters, if_match:nil, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match, custom_headers).value! end # @@ -321,29 +308,24 @@ def create_or_update_with_http_info(resource_group_name, service_name, certifica # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match:nil, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MaxLength': '256'" if !certificate_id.nil? && certificate_id.length > 256 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MinLength': '1'" if !certificate_id.nil? && certificate_id.length < 1 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !certificate_id.nil? && certificate_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::CertificateCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -394,8 +376,8 @@ def create_or_update_async(resource_group_name, service_name, certificate_id, pa # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, certificate_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers).value! nil end @@ -414,8 +396,8 @@ def delete(resource_group_name, service_name, certificate_id, if_match, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, certificate_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers).value! end # @@ -433,23 +415,16 @@ def delete_with_http_info(resource_group_name, service_name, certificate_id, if_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MaxLength': '256'" if !certificate_id.nil? && certificate_id.length > 256 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'MinLength': '1'" if !certificate_id.nil? && certificate_id.length < 1 - fail ArgumentError, "'certificate_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !certificate_id.nil? && certificate_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -495,8 +470,8 @@ def delete_async(resource_group_name, service_name, certificate_id, if_match, cu # # @return [CertificateCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -510,8 +485,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -524,12 +499,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,12 +571,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [CertificateCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/group_users.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/group_users.rb index 4830bca61c..9739764943 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/group_users.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/group_users.rb @@ -52,8 +52,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_groups(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_groups_as_lazy(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_groups(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_groups_as_lazy(resource_group_name, service_name, group_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -88,8 +88,8 @@ def list_by_groups(resource_group_name, service_name, group_id, filter:nil, top: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_groups_with_http_info(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_groups_async(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_groups_with_http_info(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_groups_async(resource_group_name, service_name, group_id, filter, top, skip, custom_headers).value! end # @@ -123,24 +123,15 @@ def list_by_groups_with_http_info(resource_group_name, service_name, group_id, f # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_groups_async(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_groups_async(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -199,8 +190,8 @@ def list_by_groups_async(resource_group_name, service_name, group_id, filter:nil # # @return [ErrorBodyContract] operation results. # - def create(resource_group_name, service_name, group_id, uid, custom_headers:nil) - response = create_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def create(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = create_async(resource_group_name, service_name, group_id, uid, custom_headers).value! response.body unless response.nil? end @@ -218,8 +209,8 @@ def create(resource_group_name, service_name, group_id, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers:nil) - create_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def create_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + create_async(resource_group_name, service_name, group_id, uid, custom_headers).value! end # @@ -236,26 +227,16 @@ def create_with_http_info(resource_group_name, service_name, group_id, uid, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, service_name, group_id, uid, custom_headers:nil) + def create_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +295,8 @@ def create_async(resource_group_name, service_name, group_id, uid, custom_header # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, group_id, uid, custom_headers:nil) - response = delete_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = delete_async(resource_group_name, service_name, group_id, uid, custom_headers).value! response.body unless response.nil? end @@ -333,8 +314,8 @@ def delete(resource_group_name, service_name, group_id, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers:nil) - delete_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + delete_async(resource_group_name, service_name, group_id, uid, custom_headers).value! end # @@ -351,26 +332,16 @@ def delete_with_http_info(resource_group_name, service_name, group_id, uid, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, group_id, uid, custom_headers:nil) + def delete_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +396,8 @@ def delete_async(resource_group_name, service_name, group_id, uid, custom_header # # @return [UserCollection] operation results. # - def list_by_groups_next(next_page_link, custom_headers:nil) - response = list_by_groups_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_groups_next(next_page_link, custom_headers = nil) + response = list_by_groups_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -440,8 +411,8 @@ def list_by_groups_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_groups_next_with_http_info(next_page_link, custom_headers:nil) - list_by_groups_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_groups_next_with_http_info(next_page_link, custom_headers = nil) + list_by_groups_next_async(next_page_link, custom_headers).value! end # @@ -454,12 +425,11 @@ def list_by_groups_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_groups_next_async(next_page_link, custom_headers:nil) + def list_by_groups_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -534,12 +504,12 @@ def list_by_groups_next_async(next_page_link, custom_headers:nil) # # @return [UserCollection] which provide lazy access to pages of the response. # - def list_by_groups_as_lazy(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_groups_async(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_groups_as_lazy(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_groups_async(resource_group_name, service_name, group_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_groups_next_async(next_page_link, custom_headers:custom_headers) + list_by_groups_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/groups.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/groups.rb index 64418e305f..528e082441 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/groups.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/groups.rb @@ -44,8 +44,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -99,20 +99,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +163,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [GroupContract] operation results. # - def get(resource_group_name, service_name, group_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, group_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, group_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, group_id, custom_headers).value! response.body unless response.nil? end @@ -186,8 +180,8 @@ def get(resource_group_name, service_name, group_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, group_id, custom_headers:nil) - get_async(resource_group_name, service_name, group_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, group_id, custom_headers = nil) + get_async(resource_group_name, service_name, group_id, custom_headers).value! end # @@ -202,22 +196,15 @@ def get_with_http_info(resource_group_name, service_name, group_id, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, group_id, custom_headers:nil) + def get_async(resource_group_name, service_name, group_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -274,8 +261,8 @@ def get_async(resource_group_name, service_name, group_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, group_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, group_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers).value! nil end @@ -292,8 +279,8 @@ def create_or_update(resource_group_name, service_name, group_id, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, group_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, group_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers).value! end # @@ -309,28 +296,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, group_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, group_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::GroupCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -383,8 +365,8 @@ def create_or_update_async(resource_group_name, service_name, group_id, paramete # # @return [ErrorBodyContract] operation results. # - def update(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! response.body unless response.nil? end @@ -404,8 +386,8 @@ def update(resource_group_name, service_name, group_id, parameters, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! end # @@ -424,16 +406,10 @@ def update_with_http_info(resource_group_name, service_name, group_id, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -441,13 +417,14 @@ def update_async(resource_group_name, service_name, group_id, parameters, if_mat request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::GroupUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -509,8 +486,8 @@ def update_async(resource_group_name, service_name, group_id, parameters, if_mat # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, group_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, group_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, group_id, if_match, custom_headers).value! response.body unless response.nil? end @@ -529,8 +506,8 @@ def delete(resource_group_name, service_name, group_id, if_match, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, group_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, group_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, group_id, if_match, custom_headers).value! end # @@ -548,23 +525,16 @@ def delete_with_http_info(resource_group_name, service_name, group_id, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, group_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, group_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +590,8 @@ def delete_async(resource_group_name, service_name, group_id, if_match, custom_h # # @return [GroupCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -635,8 +605,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -649,12 +619,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -721,12 +690,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # # @return [GroupCollection] which provide lazy access to pages of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/identity_providers.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/identity_providers.rb index f848aa05ba..249c7d1c04 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/identity_providers.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/identity_providers.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [IdentityProviderList] operation results. # - def list_by_service(resource_group_name, service_name, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ def list_by_service(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! end # @@ -63,18 +63,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +129,8 @@ def list_by_service_async(resource_group_name, service_name, custom_headers:nil) # # @return [IdentityProviderContract] operation results. # - def get(resource_group_name, service_name, identity_provider_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, identity_provider_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! response.body unless response.nil? end @@ -152,8 +148,8 @@ def get(resource_group_name, service_name, identity_provider_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, identity_provider_name, custom_headers:nil) - get_async(resource_group_name, service_name, identity_provider_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + get_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! end # @@ -170,19 +166,15 @@ def get_with_http_info(resource_group_name, service_name, identity_provider_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, identity_provider_name, custom_headers:nil) + def get_async(resource_group_name, service_name, identity_provider_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -240,8 +232,8 @@ def get_async(resource_group_name, service_name, identity_provider_name, custom_ # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, identity_provider_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers).value! nil end @@ -259,8 +251,8 @@ def create_or_update(resource_group_name, service_name, identity_provider_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers).value! end # @@ -277,12 +269,9 @@ def create_or_update_with_http_info(resource_group_name, service_name, identity_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -290,12 +279,13 @@ def create_or_update_async(resource_group_name, service_name, identity_provider_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::IdentityProviderContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -348,8 +338,8 @@ def create_or_update_async(resource_group_name, service_name, identity_provider_ # will be added to the HTTP request. # # - def update(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! nil end @@ -370,8 +360,8 @@ def update(resource_group_name, service_name, identity_provider_name, parameters # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! end # @@ -391,12 +381,9 @@ def update_with_http_info(resource_group_name, service_name, identity_provider_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? @@ -405,13 +392,14 @@ def update_async(resource_group_name, service_name, identity_provider_name, para request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::IdentityProviderUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -463,8 +451,8 @@ def update_async(resource_group_name, service_name, identity_provider_name, para # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers).value! nil end @@ -484,8 +472,8 @@ def delete(resource_group_name, service_name, identity_provider_name, if_match, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers).value! end # @@ -504,12 +492,9 @@ def delete_with_http_info(resource_group_name, service_name, identity_provider_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -517,7 +502,6 @@ def delete_async(resource_group_name, service_name, identity_provider_name, if_m request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/loggers.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/loggers.rb index e010cd8167..a47a277bd8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/loggers.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/loggers.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -157,8 +151,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [LoggerResponse] operation results. # - def get(resource_group_name, service_name, loggerid, custom_headers:nil) - response = get_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, loggerid, custom_headers = nil) + response = get_async(resource_group_name, service_name, loggerid, custom_headers).value! response.body unless response.nil? end @@ -174,8 +168,8 @@ def get(resource_group_name, service_name, loggerid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, loggerid, custom_headers:nil) - get_async(resource_group_name, service_name, loggerid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, loggerid, custom_headers = nil) + get_async(resource_group_name, service_name, loggerid, custom_headers).value! end # @@ -190,21 +184,15 @@ def get_with_http_info(resource_group_name, service_name, loggerid, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, loggerid, custom_headers:nil) + def get_async(resource_group_name, service_name, loggerid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? - fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '256'" if !loggerid.nil? && loggerid.length > 256 - fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !loggerid.nil? && loggerid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +249,8 @@ def get_async(resource_group_name, service_name, loggerid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, loggerid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, loggerid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers).value! nil end @@ -279,8 +267,8 @@ def create_or_update(resource_group_name, service_name, loggerid, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, loggerid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, loggerid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers).value! end # @@ -296,27 +284,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, loggerid, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, loggerid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? - fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '256'" if !loggerid.nil? && loggerid.length > 256 - fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !loggerid.nil? && loggerid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::LoggerCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -368,8 +352,8 @@ def create_or_update_async(resource_group_name, service_name, loggerid, paramete # will be added to the HTTP request. # # - def update(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! nil end @@ -389,8 +373,8 @@ def update(resource_group_name, service_name, loggerid, parameters, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! end # @@ -409,15 +393,10 @@ def update_with_http_info(resource_group_name, service_name, loggerid, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? - fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '256'" if !loggerid.nil? && loggerid.length > 256 - fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !loggerid.nil? && loggerid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,13 +404,14 @@ def update_async(resource_group_name, service_name, loggerid, parameters, if_mat request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::LoggerUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -482,8 +462,8 @@ def update_async(resource_group_name, service_name, loggerid, parameters, if_mat # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, loggerid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers).value! nil end @@ -502,8 +482,8 @@ def delete(resource_group_name, service_name, loggerid, if_match, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers).value! end # @@ -521,22 +501,16 @@ def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'loggerid is nil' if loggerid.nil? - fail ArgumentError, "'loggerid' should satisfy the constraint - 'MaxLength': '256'" if !loggerid.nil? && loggerid.length > 256 - fail ArgumentError, "'loggerid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !loggerid.nil? && loggerid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -582,8 +556,8 @@ def delete_async(resource_group_name, service_name, loggerid, if_match, custom_h # # @return [LoggerCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -597,8 +571,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -611,12 +585,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -680,12 +653,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [LoggerCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_contract.rb index f9ab63c250..7305ddc833 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_contract.rb @@ -32,7 +32,6 @@ class AccessInformationContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccessInformationContract', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'AccessInformationContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb index f1525f8fcb..364030c0e8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb @@ -24,7 +24,6 @@ class AccessInformationUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccessInformationUpdateParameters', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'AccessInformationUpdateParameters', model_properties: { enabled: { - client_side_validation: true, required: true, serialized_name: 'enabled', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/additional_region.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/additional_region.rb index a903d30ae1..1f2e3dd3f1 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/additional_region.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/additional_region.rb @@ -41,7 +41,6 @@ class AdditionalRegion # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegion', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'AdditionalRegion', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -57,7 +55,6 @@ def self.mapper() } }, sku_type: { - client_side_validation: true, required: true, serialized_name: 'skuType', type: { @@ -66,7 +63,6 @@ def self.mapper() } }, sku_unit_count: { - client_side_validation: true, required: false, serialized_name: 'skuUnitCount', default_value: 1, @@ -78,14 +74,12 @@ def self.mapper() } }, static_ips: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'staticIPs', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -95,7 +89,6 @@ def self.mapper() } }, vpnconfiguration: { - client_side_validation: true, required: false, serialized_name: 'vpnconfiguration', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_collection.rb index 0f73c57ce2..8075162e23 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'ApiCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_contract.rb index 0c8ff8eb0e..b0a5e415c5 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_contract.rb @@ -39,7 +39,6 @@ class ApiContract < ApiEntityBaseContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiContract', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'ApiContract', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, authentication_settings: { - client_side_validation: true, required: false, serialized_name: 'authenticationSettings', type: { @@ -64,7 +61,6 @@ def self.mapper() } }, subscription_key_parameter_names: { - client_side_validation: true, required: false, serialized_name: 'subscriptionKeyParameterNames', type: { @@ -73,7 +69,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -91,7 +85,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -103,7 +96,6 @@ def self.mapper() } }, service_url: { - client_side_validation: true, required: true, serialized_name: 'serviceUrl', constraints: { @@ -115,7 +107,6 @@ def self.mapper() } }, path: { - client_side_validation: true, required: true, serialized_name: 'path', constraints: { @@ -127,13 +118,11 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: true, serialized_name: 'protocols', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiProtocolContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb index 2bac534f65..8d7955320f 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb @@ -35,7 +35,6 @@ class ApiEntityBaseContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiEntityBaseContract', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'ApiEntityBaseContract', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -51,7 +49,6 @@ def self.mapper() } }, authentication_settings: { - client_side_validation: true, required: false, serialized_name: 'authenticationSettings', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, subscription_key_parameter_names: { - client_side_validation: true, required: false, serialized_name: 'subscriptionKeyParameterNames', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_export_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_export_result.rb index 1edc0c079f..6553761abe 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_export_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_export_result.rb @@ -29,7 +29,6 @@ class ApiExportResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiExportResult', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ApiExportResult', model_properties: { content: { - client_side_validation: true, required: false, serialized_name: 'content', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, status_code: { - client_side_validation: true, required: false, serialized_name: 'statusCode', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, request_id: { - client_side_validation: true, required: false, serialized_name: 'requestId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb index c81297e071..c78bc06d25 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb @@ -36,7 +36,6 @@ class ApiManagementServiceBackupRestoreParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceBackupRestoreParameters', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'ApiManagementServiceBackupRestoreParameters', model_properties: { storage_account: { - client_side_validation: true, required: true, serialized_name: 'storageAccount', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, access_key: { - client_side_validation: true, required: true, serialized_name: 'accessKey', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, container_name: { - client_side_validation: true, required: true, serialized_name: 'containerName', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, backup_name: { - client_side_validation: true, required: true, serialized_name: 'backupName', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb index a452da0ef2..ae749483b5 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb @@ -23,7 +23,6 @@ class ApiManagementServiceCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceCheckNameAvailabilityParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ApiManagementServiceCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb index 99fbb9ad02..a3c138bed4 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb @@ -22,7 +22,6 @@ class ApiManagementServiceGetSsoTokenResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceGetSsoTokenResult', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ApiManagementServiceGetSsoTokenResult', model_properties: { redirect_uri: { - client_side_validation: true, required: false, serialized_name: 'redirect_uri', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb index efa20bf28b..cc46100322 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceListResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'ApiManagementServiceListResult', model_properties: { value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceResourceElementType', type: { @@ -84,7 +81,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb index a869ceb71a..22cae317f6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_manage_deployments_parameters.rb @@ -50,7 +50,6 @@ class ApiManagementServiceManageDeploymentsParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceManageDeploymentsParameters', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'ApiManagementServiceManageDeploymentsParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, sku_type: { - client_side_validation: true, required: true, serialized_name: 'skuType', type: { @@ -75,7 +72,6 @@ def self.mapper() } }, sku_unit_count: { - client_side_validation: true, required: false, serialized_name: 'skuUnitCount', default_value: 1, @@ -84,13 +80,11 @@ def self.mapper() } }, additional_locations: { - client_side_validation: true, required: false, serialized_name: 'additionalLocations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegionElementType', type: { @@ -101,7 +95,6 @@ def self.mapper() } }, vpn_configuration: { - client_side_validation: true, required: false, serialized_name: 'vpnConfiguration', type: { @@ -110,7 +103,6 @@ def self.mapper() } }, vpn_type: { - client_side_validation: true, required: false, serialized_name: 'vpnType', default_value: 'None', diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb index deeff392c8..dab4618dc7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb @@ -38,7 +38,6 @@ class ApiManagementServiceNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceNameAvailabilityResult', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'ApiManagementServiceNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: true, serialized_name: 'nameAvailable', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb index 3300139e4c..0f3fca2156 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_resource.rb @@ -93,7 +93,6 @@ class ApiManagementServiceResource < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceResource', type: { @@ -101,7 +100,6 @@ def self.mapper() class_name: 'ApiManagementServiceResource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -110,7 +108,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -118,7 +115,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -127,7 +123,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -135,13 +130,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -151,7 +144,6 @@ def self.mapper() } }, publisher_email: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherEmail', constraints: { @@ -162,7 +154,6 @@ def self.mapper() } }, publisher_name: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherName', type: { @@ -170,7 +161,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -179,7 +169,6 @@ def self.mapper() } }, target_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.targetProvisioningState', @@ -188,7 +177,6 @@ def self.mapper() } }, created_at_utc: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdAtUtc', @@ -197,7 +185,6 @@ def self.mapper() } }, runtime_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.runtimeUrl', @@ -206,7 +193,6 @@ def self.mapper() } }, portal_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.portalUrl', @@ -215,7 +201,6 @@ def self.mapper() } }, management_api_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.managementApiUrl', @@ -224,7 +209,6 @@ def self.mapper() } }, scm_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.scmUrl', @@ -233,7 +217,6 @@ def self.mapper() } }, addresser_email: { - client_side_validation: true, required: false, serialized_name: 'properties.addresserEmail', type: { @@ -241,13 +224,11 @@ def self.mapper() } }, hostname_configurations: { - client_side_validation: true, required: false, serialized_name: 'properties.hostnameConfigurations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameConfigurationElementType', type: { @@ -258,14 +239,12 @@ def self.mapper() } }, static_ips: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.staticIPs', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -275,7 +254,6 @@ def self.mapper() } }, vpnconfiguration: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnconfiguration', type: { @@ -284,13 +262,11 @@ def self.mapper() } }, additional_locations: { - client_side_validation: true, required: false, serialized_name: 'properties.additionalLocations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegionElementType', type: { @@ -301,13 +277,11 @@ def self.mapper() } }, custom_properties: { - client_side_validation: true, required: false, serialized_name: 'properties.customProperties', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -317,7 +291,6 @@ def self.mapper() } }, vpn_type: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnType', default_value: 'None', @@ -327,7 +300,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -336,7 +308,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb index d17d47c024..ab981ef275 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb @@ -27,7 +27,6 @@ class ApiManagementServiceSkuProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceSkuProperties', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ApiManagementServiceSkuProperties', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, capacity: { - client_side_validation: true, required: false, serialized_name: 'capacity', default_value: 1, diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb index 358e7f31b1..7ca0573503 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb @@ -26,7 +26,6 @@ class ApiManagementServiceUpdateHostnameParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceUpdateHostnameParameters', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'ApiManagementServiceUpdateHostnameParameters', model_properties: { update: { - client_side_validation: true, required: false, serialized_name: 'update', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameConfigurationElementType', type: { @@ -51,13 +48,11 @@ def self.mapper() } }, delete: { - client_side_validation: true, required: false, serialized_name: 'delete', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameTypeElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb index 5fbb55049b..4efe27864f 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb @@ -93,7 +93,6 @@ class ApiManagementServiceUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceUpdateParameters', type: { @@ -101,7 +100,6 @@ def self.mapper() class_name: 'ApiManagementServiceUpdateParameters', model_properties: { publisher_email: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherEmail', constraints: { @@ -112,7 +110,6 @@ def self.mapper() } }, publisher_name: { - client_side_validation: true, required: true, serialized_name: 'properties.publisherName', type: { @@ -120,7 +117,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -129,7 +125,6 @@ def self.mapper() } }, target_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.targetProvisioningState', @@ -138,7 +133,6 @@ def self.mapper() } }, created_at_utc: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.createdAtUtc', @@ -147,7 +141,6 @@ def self.mapper() } }, runtime_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.runtimeUrl', @@ -156,7 +149,6 @@ def self.mapper() } }, portal_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.portalUrl', @@ -165,7 +157,6 @@ def self.mapper() } }, management_api_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.managementApiUrl', @@ -174,7 +165,6 @@ def self.mapper() } }, scm_url: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.scmUrl', @@ -183,7 +173,6 @@ def self.mapper() } }, addresser_email: { - client_side_validation: true, required: false, serialized_name: 'properties.addresserEmail', type: { @@ -191,13 +180,11 @@ def self.mapper() } }, hostname_configurations: { - client_side_validation: true, required: false, serialized_name: 'properties.hostnameConfigurations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HostnameConfigurationElementType', type: { @@ -208,14 +195,12 @@ def self.mapper() } }, static_ips: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.staticIPs', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -225,7 +210,6 @@ def self.mapper() } }, vpnconfiguration: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnconfiguration', type: { @@ -234,13 +218,11 @@ def self.mapper() } }, additional_locations: { - client_side_validation: true, required: false, serialized_name: 'properties.additionalLocations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdditionalRegionElementType', type: { @@ -251,13 +233,11 @@ def self.mapper() } }, custom_properties: { - client_side_validation: true, required: false, serialized_name: 'properties.customProperties', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -267,7 +247,6 @@ def self.mapper() } }, vpn_type: { - client_side_validation: true, required: false, serialized_name: 'properties.vpnType', default_value: 'None', @@ -277,7 +256,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -286,13 +264,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb index 7a2d8d5c17..d61d2fbdb5 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb @@ -31,7 +31,6 @@ class ApiManagementServiceUploadCertificateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiManagementServiceUploadCertificateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ApiManagementServiceUploadCertificateParameters', model_properties: { type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, certificate: { - client_side_validation: true, required: true, serialized_name: 'certificate', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, certificate_password: { - client_side_validation: true, required: true, serialized_name: 'certificate_password', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_update_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_update_contract.rb index b3b39e3536..f8e52fa611 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_update_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/api_update_contract.rb @@ -39,7 +39,6 @@ class ApiUpdateContract < ApiEntityBaseContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ApiUpdateContract', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'ApiUpdateContract', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, authentication_settings: { - client_side_validation: true, required: false, serialized_name: 'authenticationSettings', type: { @@ -64,7 +61,6 @@ def self.mapper() } }, subscription_key_parameter_names: { - client_side_validation: true, required: false, serialized_name: 'subscriptionKeyParameterNames', type: { @@ -73,7 +69,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -91,7 +85,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -103,7 +96,6 @@ def self.mapper() } }, service_url: { - client_side_validation: true, required: false, serialized_name: 'serviceUrl', constraints: { @@ -115,7 +107,6 @@ def self.mapper() } }, path: { - client_side_validation: true, required: false, serialized_name: 'path', constraints: { @@ -127,13 +118,11 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'protocols', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ApiProtocolContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb index 5772b41fb6..912a4ecb04 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb @@ -22,7 +22,6 @@ class AuthenticationSettingsContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AuthenticationSettingsContract', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'AuthenticationSettingsContract', model_properties: { o_auth2: { - client_side_validation: true, required: false, serialized_name: 'oAuth2', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authorization_server_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authorization_server_collection.rb index 1d352c9492..18b7595c34 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authorization_server_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/authorization_server_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AuthorizationServerCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'AuthorizationServerCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthorizationServerContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb index 04ef331ce6..fb03fcfb46 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb @@ -25,7 +25,6 @@ class BackendAuthorizationHeaderCredentials # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendAuthorizationHeaderCredentials', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'BackendAuthorizationHeaderCredentials', model_properties: { scheme: { - client_side_validation: true, required: true, serialized_name: 'scheme', constraints: { @@ -45,7 +43,6 @@ def self.mapper() } }, parameter: { - client_side_validation: true, required: true, serialized_name: 'parameter', constraints: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_base_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_base_parameters.rb index 4883b135e9..63e4bfb0cd 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_base_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_base_parameters.rb @@ -60,7 +60,6 @@ class BackendBaseParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendBaseParameters', type: { @@ -68,7 +67,6 @@ def self.mapper() class_name: 'BackendBaseParameters', model_properties: { certificate: { - client_side_validation: true, required: false, serialized_name: 'certificate', constraints: { @@ -77,7 +75,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -87,19 +84,16 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -111,19 +105,16 @@ def self.mapper() } }, header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -135,7 +126,6 @@ def self.mapper() } }, url: { - client_side_validation: true, required: true, serialized_name: 'url', constraints: { @@ -147,7 +137,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: false, serialized_name: 'username', type: { @@ -155,7 +144,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { @@ -163,7 +151,6 @@ def self.mapper() } }, title: { - client_side_validation: true, required: false, serialized_name: 'title', constraints: { @@ -175,7 +162,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -187,7 +173,6 @@ def self.mapper() } }, resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', constraints: { @@ -199,7 +184,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateChainValidation', default_value: false, @@ -208,7 +192,6 @@ def self.mapper() } }, skip_certificate_name_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateNameValidation', default_value: false, diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_collection.rb index ab4486f5b1..80d7dad5e2 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'BackendCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'BackendResponseElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_contract.rb index c8ebc4b1ba..34e3cfc0d8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_contract.rb @@ -29,7 +29,6 @@ class BackendContract < BackendBaseParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendContract', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'BackendContract', model_properties: { certificate: { - client_side_validation: true, required: false, serialized_name: 'certificate', constraints: { @@ -46,7 +44,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -56,19 +53,16 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -80,19 +74,16 @@ def self.mapper() } }, header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -104,7 +95,6 @@ def self.mapper() } }, url: { - client_side_validation: true, required: true, serialized_name: 'url', constraints: { @@ -116,7 +106,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: false, serialized_name: 'username', type: { @@ -124,7 +113,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { @@ -132,7 +120,6 @@ def self.mapper() } }, title: { - client_side_validation: true, required: false, serialized_name: 'title', constraints: { @@ -144,7 +131,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -156,7 +142,6 @@ def self.mapper() } }, resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', constraints: { @@ -168,7 +153,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateChainValidation', default_value: false, @@ -177,7 +161,6 @@ def self.mapper() } }, skip_certificate_name_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateNameValidation', default_value: false, @@ -186,7 +169,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -195,7 +177,6 @@ def self.mapper() } }, protocol: { - client_side_validation: true, required: true, serialized_name: 'protocol', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb index 823338b0e3..56e58564bb 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb @@ -28,7 +28,6 @@ class BackendCredentialsContract < BackendAuthorizationHeaderCredentials # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendCredentialsContract', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'BackendCredentialsContract', model_properties: { scheme: { - client_side_validation: true, required: true, serialized_name: 'scheme', constraints: { @@ -48,7 +46,6 @@ def self.mapper() } }, parameter: { - client_side_validation: true, required: true, serialized_name: 'parameter', constraints: { @@ -60,7 +57,6 @@ def self.mapper() } }, certificate: { - client_side_validation: true, required: false, serialized_name: 'certificate', constraints: { @@ -69,7 +65,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -79,19 +74,16 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -103,19 +95,16 @@ def self.mapper() } }, header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb index a4b94aa5f1..8e2a571ee8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb @@ -30,7 +30,6 @@ class BackendProxyContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendProxyContract', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'BackendProxyContract', model_properties: { url: { - client_side_validation: true, required: true, serialized_name: 'url', constraints: { @@ -50,7 +48,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: false, serialized_name: 'username', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_response.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_response.rb index ef5177a235..a1cef3bdf7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_response.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_response.rb @@ -21,7 +21,6 @@ class BackendResponse < BackendContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendResponse', type: { @@ -29,7 +28,6 @@ def self.mapper() class_name: 'BackendResponse', model_properties: { certificate: { - client_side_validation: true, required: false, serialized_name: 'certificate', constraints: { @@ -38,7 +36,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -48,19 +45,16 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -72,19 +66,16 @@ def self.mapper() } }, header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -96,7 +87,6 @@ def self.mapper() } }, url: { - client_side_validation: true, required: true, serialized_name: 'url', constraints: { @@ -108,7 +98,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: false, serialized_name: 'username', type: { @@ -116,7 +105,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { @@ -124,7 +112,6 @@ def self.mapper() } }, title: { - client_side_validation: true, required: false, serialized_name: 'title', constraints: { @@ -136,7 +123,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -148,7 +134,6 @@ def self.mapper() } }, resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', constraints: { @@ -160,7 +145,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateChainValidation', default_value: false, @@ -169,7 +153,6 @@ def self.mapper() } }, skip_certificate_name_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateNameValidation', default_value: false, @@ -178,7 +161,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -187,7 +169,6 @@ def self.mapper() } }, protocol: { - client_side_validation: true, required: true, serialized_name: 'protocol', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_update_parameters.rb index b94f9270ac..80d1f23c56 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/backend_update_parameters.rb @@ -23,7 +23,6 @@ class BackendUpdateParameters < BackendBaseParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BackendUpdateParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'BackendUpdateParameters', model_properties: { certificate: { - client_side_validation: true, required: false, serialized_name: 'certificate', constraints: { @@ -40,7 +38,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -50,19 +47,16 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -74,19 +68,16 @@ def self.mapper() } }, header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ArrayElementType', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -98,7 +89,6 @@ def self.mapper() } }, url: { - client_side_validation: true, required: true, serialized_name: 'url', constraints: { @@ -110,7 +100,6 @@ def self.mapper() } }, username: { - client_side_validation: true, required: false, serialized_name: 'username', type: { @@ -118,7 +107,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { @@ -126,7 +114,6 @@ def self.mapper() } }, title: { - client_side_validation: true, required: false, serialized_name: 'title', constraints: { @@ -138,7 +125,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -150,7 +136,6 @@ def self.mapper() } }, resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', constraints: { @@ -162,7 +147,6 @@ def self.mapper() } }, skip_certificate_chain_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateChainValidation', default_value: false, @@ -171,7 +155,6 @@ def self.mapper() } }, skip_certificate_name_validation: { - client_side_validation: true, required: false, serialized_name: 'properties.skipCertificateNameValidation', default_value: false, @@ -180,7 +163,6 @@ def self.mapper() } }, protocol: { - client_side_validation: true, required: false, serialized_name: 'protocol', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_collection.rb index 25e15c76ff..56a9e6bbb6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'CertificateCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CertificateContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_contract.rb index 42dca016f5..651dc1f4c0 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_contract.rb @@ -35,7 +35,6 @@ class CertificateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateContract', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'CertificateContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, subject: { - client_side_validation: true, required: true, serialized_name: 'subject', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: true, serialized_name: 'thumbprint', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: true, serialized_name: 'expirationDate', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb index f0c5eacd3e..9db2994ccc 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb @@ -26,7 +26,6 @@ class CertificateCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateCreateOrUpdateParameters', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CertificateCreateOrUpdateParameters', model_properties: { data: { - client_side_validation: true, required: true, serialized_name: 'data', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: true, serialized_name: 'password', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_information.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_information.rb index 34c3ef5cc6..0ffac4851b 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_information.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/certificate_information.rb @@ -30,7 +30,6 @@ class CertificateInformation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateInformation', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'CertificateInformation', model_properties: { expiry: { - client_side_validation: true, required: true, serialized_name: 'expiry', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: true, serialized_name: 'thumbprint', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, subject: { - client_side_validation: true, required: true, serialized_name: 'subject', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb index f3cce4d4f2..b8dddd203e 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb @@ -45,7 +45,6 @@ class ConnectivityStatusContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectivityStatusContract', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'ConnectivityStatusContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -64,7 +62,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: true, serialized_name: 'status', type: { @@ -72,7 +69,6 @@ def self.mapper() } }, error: { - client_side_validation: true, required: false, serialized_name: 'error', type: { @@ -80,7 +76,6 @@ def self.mapper() } }, last_updated: { - client_side_validation: true, required: true, serialized_name: 'lastUpdated', type: { @@ -88,7 +83,6 @@ def self.mapper() } }, last_status_change: { - client_side_validation: true, required: true, serialized_name: 'lastStatusChange', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb index 31bf1e04a2..acb50f20d4 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb @@ -27,7 +27,6 @@ class DeployConfigurationParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeployConfigurationParameters', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'DeployConfigurationParameters', model_properties: { branch: { - client_side_validation: true, required: true, serialized_name: 'branch', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, force: { - client_side_validation: true, required: false, serialized_name: 'force', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_body_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_body_contract.rb index 18ad49051b..687b988bcf 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_body_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_body_contract.rb @@ -30,7 +30,6 @@ class ErrorBodyContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorBodyContract', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ErrorBodyContract', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -54,13 +51,11 @@ def self.mapper() } }, details: { - client_side_validation: true, required: false, serialized_name: 'details', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ErrorFieldContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_field_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_field_contract.rb index 10dae1d615..2f51a5e3e1 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_field_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_field_contract.rb @@ -28,7 +28,6 @@ class ErrorFieldContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorFieldContract', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ErrorFieldContract', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, target: { - client_side_validation: true, required: false, serialized_name: 'target', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_response.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_response.rb index d967515137..c3055ccb74 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_response.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/error_response.rb @@ -25,7 +25,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb index fcc1762c35..0116e21f59 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb @@ -22,7 +22,6 @@ class GenerateSsoUrlResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GenerateSsoUrlResult', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'GenerateSsoUrlResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_collection.rb index 408f56597a..1da1191d22 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'GroupCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GroupContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb index 9cb572d13c..265fb99ea7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_contract.rb @@ -44,7 +44,6 @@ class GroupContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupContract', type: { @@ -52,7 +51,6 @@ def self.mapper() class_name: 'GroupContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -61,7 +59,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -73,7 +70,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -84,7 +80,6 @@ def self.mapper() } }, built_in: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'builtIn', @@ -93,7 +88,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -103,7 +97,6 @@ def self.mapper() } }, external_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'externalId', diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_create_parameters.rb index 9b2da7bb10..e80190c2e2 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_create_parameters.rb @@ -35,7 +35,6 @@ class GroupCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupCreateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'GroupCreateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -55,7 +53,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, external_id: { - client_side_validation: true, required: false, serialized_name: 'externalId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_update_parameters.rb index e25e9b483b..cc6c6e63df 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/group_update_parameters.rb @@ -35,7 +35,6 @@ class GroupUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GroupUpdateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'GroupUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -55,7 +53,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, external_id: { - client_side_validation: true, required: false, serialized_name: 'externalId', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/hostname_configuration.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/hostname_configuration.rb index 3e4c5d9ad2..1cdddc2471 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/hostname_configuration.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/hostname_configuration.rb @@ -29,7 +29,6 @@ class HostnameConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HostnameConfiguration', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'HostnameConfiguration', model_properties: { type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, hostname: { - client_side_validation: true, required: true, serialized_name: 'hostname', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, certificate: { - client_side_validation: true, required: true, serialized_name: 'certificate', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_contract.rb index cb28dd91ca..c97ae7b171 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_contract.rb @@ -41,7 +41,6 @@ class IdentityProviderContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderContract', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'IdentityProviderContract', model_properties: { client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', constraints: { @@ -60,7 +58,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: true, serialized_name: 'clientSecret', constraints: { @@ -71,7 +68,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -79,7 +75,6 @@ def self.mapper() } }, allowed_tenants: { - client_side_validation: true, required: false, serialized_name: 'allowedTenants', constraints: { @@ -88,7 +83,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_list.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_list.rb index 71b9595eda..d0b310d4a9 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_list.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_list.rb @@ -23,7 +23,6 @@ class IdentityProviderList # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderList', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'IdentityProviderList', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb index 7d95c9743b..72b54ad89c 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb @@ -34,7 +34,6 @@ class IdentityProviderUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IdentityProviderUpdateParameters', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'IdentityProviderUpdateParameters', model_properties: { client_id: { - client_side_validation: true, required: false, serialized_name: 'clientId', constraints: { @@ -53,7 +51,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', constraints: { @@ -64,7 +61,6 @@ def self.mapper() } }, allowed_tenants: { - client_side_validation: true, required: false, serialized_name: 'allowedTenants', constraints: { @@ -73,7 +69,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_collection.rb index 119f620721..8c81b951f7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'LoggerCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'LoggerResponseElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_create_parameters.rb index c7965cc6f0..119296a1c2 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_create_parameters.rb @@ -33,7 +33,6 @@ class LoggerCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerCreateParameters', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'LoggerCreateParameters', model_properties: { type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -51,7 +49,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -59,13 +56,11 @@ def self.mapper() } }, credentials: { - client_side_validation: true, required: true, serialized_name: 'credentials', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -75,7 +70,6 @@ def self.mapper() } }, is_buffered: { - client_side_validation: true, required: false, serialized_name: 'isBuffered', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_response.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_response.rb index fffd45c114..cd158ff6c8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_response.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_response.rb @@ -40,7 +40,6 @@ class LoggerResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerResponse', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'LoggerResponse', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -57,7 +55,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -67,7 +64,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -78,13 +74,11 @@ def self.mapper() } }, credentials: { - client_side_validation: true, required: true, serialized_name: 'credentials', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -94,7 +88,6 @@ def self.mapper() } }, is_buffered: { - client_side_validation: true, required: false, serialized_name: 'isBuffered', default_value: true, diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_update_parameters.rb index f46ec41ce4..866deb0a39 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/logger_update_parameters.rb @@ -32,7 +32,6 @@ class LoggerUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoggerUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'LoggerUpdateParameters', model_properties: { type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', @@ -50,7 +48,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -58,13 +55,11 @@ def self.mapper() } }, credentials: { - client_side_validation: true, required: false, serialized_name: 'credentials', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, is_buffered: { - client_side_validation: true, required: false, serialized_name: 'isBuffered', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/network_status_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/network_status_contract.rb index aeddb395b7..27c0574568 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/network_status_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/network_status_contract.rb @@ -26,7 +26,6 @@ class NetworkStatusContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NetworkStatusContract', type: { @@ -34,13 +33,11 @@ def self.mapper() class_name: 'NetworkStatusContract', model_properties: { dns_servers: { - client_side_validation: true, required: true, serialized_name: 'dnsServers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -50,13 +47,11 @@ def self.mapper() } }, connectivity_status: { - client_side_validation: true, required: true, serialized_name: 'connectivityStatus', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ConnectivityStatusContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb index 65de73ff5c..694120e29c 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb @@ -25,7 +25,6 @@ class OAuth2AuthenticationSettingsContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthenticationSettingsContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'OAuth2AuthenticationSettingsContract', model_properties: { authorization_server_id: { - client_side_validation: true, required: false, serialized_name: 'authorizationServerId', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, scope: { - client_side_validation: true, required: false, serialized_name: 'scope', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb index 50e6aeda0e..3a32fdbeb5 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_contract.rb @@ -98,7 +98,6 @@ class OAuth2AuthorizationServerContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthorizationServerContract', type: { @@ -106,7 +105,6 @@ def self.mapper() class_name: 'OAuth2AuthorizationServerContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -115,7 +113,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -127,7 +124,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -135,7 +131,6 @@ def self.mapper() } }, client_registration_endpoint: { - client_side_validation: true, required: true, serialized_name: 'clientRegistrationEndpoint', type: { @@ -143,7 +138,6 @@ def self.mapper() } }, authorization_endpoint: { - client_side_validation: true, required: true, serialized_name: 'authorizationEndpoint', type: { @@ -151,13 +145,11 @@ def self.mapper() } }, authorization_methods: { - client_side_validation: true, required: false, serialized_name: 'authorizationMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MethodContractElementType', type: { @@ -168,13 +160,11 @@ def self.mapper() } }, client_authentication_method: { - client_side_validation: true, required: false, serialized_name: 'clientAuthenticationMethod', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ClientAuthenticationMethodContractElementType', type: { @@ -185,13 +175,11 @@ def self.mapper() } }, token_body_parameters: { - client_side_validation: true, required: false, serialized_name: 'tokenBodyParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'TokenBodyParameterContractElementType', type: { @@ -202,7 +190,6 @@ def self.mapper() } }, token_endpoint: { - client_side_validation: true, required: false, serialized_name: 'tokenEndpoint', type: { @@ -210,7 +197,6 @@ def self.mapper() } }, support_state: { - client_side_validation: true, required: false, serialized_name: 'supportState', type: { @@ -218,7 +204,6 @@ def self.mapper() } }, default_scope: { - client_side_validation: true, required: false, serialized_name: 'defaultScope', type: { @@ -226,13 +211,11 @@ def self.mapper() } }, grant_types: { - client_side_validation: true, required: true, serialized_name: 'grantTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GrantTypesContractElementType', type: { @@ -243,13 +226,11 @@ def self.mapper() } }, bearer_token_sending_methods: { - client_side_validation: true, required: false, serialized_name: 'bearerTokenSendingMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'BearerTokenSendingMethodsContractElementType', type: { @@ -260,7 +241,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', type: { @@ -268,7 +248,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { @@ -276,7 +255,6 @@ def self.mapper() } }, resource_owner_username: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerUsername', type: { @@ -284,7 +262,6 @@ def self.mapper() } }, resource_owner_password: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerPassword', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb index 325a6f06c5..43090f0c96 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/oauth2authorization_server_update_contract.rb @@ -92,7 +92,6 @@ class OAuth2AuthorizationServerUpdateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OAuth2AuthorizationServerUpdateContract', type: { @@ -100,7 +99,6 @@ def self.mapper() class_name: 'OAuth2AuthorizationServerUpdateContract', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -112,7 +110,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -120,7 +117,6 @@ def self.mapper() } }, client_registration_endpoint: { - client_side_validation: true, required: false, serialized_name: 'clientRegistrationEndpoint', type: { @@ -128,7 +124,6 @@ def self.mapper() } }, authorization_endpoint: { - client_side_validation: true, required: false, serialized_name: 'authorizationEndpoint', type: { @@ -136,13 +131,11 @@ def self.mapper() } }, authorization_methods: { - client_side_validation: true, required: false, serialized_name: 'authorizationMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MethodContractElementType', type: { @@ -153,13 +146,11 @@ def self.mapper() } }, client_authentication_method: { - client_side_validation: true, required: false, serialized_name: 'clientAuthenticationMethod', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ClientAuthenticationMethodContractElementType', type: { @@ -170,13 +161,11 @@ def self.mapper() } }, token_body_parameters: { - client_side_validation: true, required: false, serialized_name: 'tokenBodyParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'TokenBodyParameterContractElementType', type: { @@ -187,7 +176,6 @@ def self.mapper() } }, token_endpoint: { - client_side_validation: true, required: false, serialized_name: 'tokenEndpoint', type: { @@ -195,7 +183,6 @@ def self.mapper() } }, support_state: { - client_side_validation: true, required: false, serialized_name: 'supportState', type: { @@ -203,7 +190,6 @@ def self.mapper() } }, default_scope: { - client_side_validation: true, required: false, serialized_name: 'defaultScope', type: { @@ -211,13 +197,11 @@ def self.mapper() } }, grant_types: { - client_side_validation: true, required: false, serialized_name: 'grantTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GrantTypesContractElementType', type: { @@ -228,13 +212,11 @@ def self.mapper() } }, bearer_token_sending_methods: { - client_side_validation: true, required: false, serialized_name: 'bearerTokenSendingMethods', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'BearerTokenSendingMethodsContractElementType', type: { @@ -245,7 +227,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: false, serialized_name: 'clientId', type: { @@ -253,7 +234,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { @@ -261,7 +241,6 @@ def self.mapper() } }, resource_owner_username: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerUsername', type: { @@ -269,7 +248,6 @@ def self.mapper() } }, resource_owner_password: { - client_side_validation: true, required: false, serialized_name: 'resourceOwnerPassword', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb index 6ef9a89b07..714cf2f7af 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenIdConnectProviderCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'OpenIdConnectProviderCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb index 42f79be715..a913fff85e 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb @@ -39,7 +39,6 @@ class OpenidConnectProviderContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderContract', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'OpenidConnectProviderContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -66,7 +63,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -74,7 +70,6 @@ def self.mapper() } }, metadata_endpoint: { - client_side_validation: true, required: true, serialized_name: 'metadataEndpoint', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', type: { @@ -90,7 +84,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb index 60cbb99015..1c09f4486a 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_create_contract.rb @@ -36,7 +36,6 @@ class OpenidConnectProviderCreateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderCreateContract', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'OpenidConnectProviderCreateContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -55,7 +53,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, metadata_endpoint: { - client_side_validation: true, required: true, serialized_name: 'metadataEndpoint', type: { @@ -71,7 +67,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: true, serialized_name: 'clientId', type: { @@ -79,7 +74,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb index 7246456ff3..8d56e7f431 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb @@ -36,7 +36,6 @@ class OpenidConnectProviderUpdateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OpenidConnectProviderUpdateContract', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'OpenidConnectProviderUpdateContract', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -55,7 +53,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, metadata_endpoint: { - client_side_validation: true, required: false, serialized_name: 'metadataEndpoint', type: { @@ -71,7 +67,6 @@ def self.mapper() } }, client_id: { - client_side_validation: true, required: false, serialized_name: 'clientId', type: { @@ -79,7 +74,6 @@ def self.mapper() } }, client_secret: { - client_side_validation: true, required: false, serialized_name: 'clientSecret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation.rb index ddf594af9f..0b9dd96d75 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_collection.rb index dee2536ec4..89942587e7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'OperationCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_contract.rb index d37f1c7dda..4ef579799e 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_contract.rb @@ -37,7 +37,6 @@ class OperationContract < OperationEntityBaseContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationContract', type: { @@ -45,13 +44,11 @@ def self.mapper() class_name: 'OperationContract', model_properties: { template_parameters: { - client_side_validation: true, required: false, serialized_name: 'templateParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -73,7 +69,6 @@ def self.mapper() } }, request: { - client_side_validation: true, required: false, serialized_name: 'request', type: { @@ -82,13 +77,11 @@ def self.mapper() } }, responses: { - client_side_validation: true, required: false, serialized_name: 'responses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResultContractElementType', type: { @@ -99,7 +92,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -108,7 +100,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -120,7 +111,6 @@ def self.mapper() } }, method: { - client_side_validation: true, required: true, serialized_name: 'method', type: { @@ -128,7 +118,6 @@ def self.mapper() } }, url_template: { - client_side_validation: true, required: true, serialized_name: 'urlTemplate', constraints: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_display.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_display.rb index 94d51b5c23..89c14ccee4 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_display.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_display.rb @@ -32,7 +32,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb index 978af98b7a..bbb117e751 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb @@ -33,7 +33,6 @@ class OperationEntityBaseContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationEntityBaseContract', type: { @@ -41,13 +40,11 @@ def self.mapper() class_name: 'OperationEntityBaseContract', model_properties: { template_parameters: { - client_side_validation: true, required: false, serialized_name: 'templateParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -69,7 +65,6 @@ def self.mapper() } }, request: { - client_side_validation: true, required: false, serialized_name: 'request', type: { @@ -78,13 +73,11 @@ def self.mapper() } }, responses: { - client_side_validation: true, required: false, serialized_name: 'responses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResultContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_list_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_list_result.rb index 9077ae0e13..45f25869fa 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_list_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_result_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_result_contract.rb index 9603a4f20a..cc6c7ebcf5 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_result_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_result_contract.rb @@ -44,7 +44,6 @@ class OperationResultContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationResultContract', type: { @@ -52,7 +51,6 @@ def self.mapper() class_name: 'OperationResultContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -60,7 +58,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -69,7 +66,6 @@ def self.mapper() } }, started: { - client_side_validation: true, required: false, serialized_name: 'started', type: { @@ -77,7 +73,6 @@ def self.mapper() } }, updated: { - client_side_validation: true, required: false, serialized_name: 'updated', type: { @@ -85,7 +80,6 @@ def self.mapper() } }, result_info: { - client_side_validation: true, required: false, serialized_name: 'resultInfo', type: { @@ -93,7 +87,6 @@ def self.mapper() } }, error: { - client_side_validation: true, required: false, serialized_name: 'error', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_update_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_update_contract.rb index aaad5651f2..17bd89bca6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_update_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/operation_update_contract.rb @@ -37,7 +37,6 @@ class OperationUpdateContract < OperationEntityBaseContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationUpdateContract', type: { @@ -45,13 +44,11 @@ def self.mapper() class_name: 'OperationUpdateContract', model_properties: { template_parameters: { - client_side_validation: true, required: false, serialized_name: 'templateParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -73,7 +69,6 @@ def self.mapper() } }, request: { - client_side_validation: true, required: false, serialized_name: 'request', type: { @@ -82,13 +77,11 @@ def self.mapper() } }, responses: { - client_side_validation: true, required: false, serialized_name: 'responses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResultContractElementType', type: { @@ -99,7 +92,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -108,7 +100,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -120,7 +111,6 @@ def self.mapper() } }, method: { - client_side_validation: true, required: false, serialized_name: 'method', type: { @@ -128,7 +118,6 @@ def self.mapper() } }, url_template: { - client_side_validation: true, required: false, serialized_name: 'urlTemplate', constraints: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/parameter_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/parameter_contract.rb index 04cd6fe8ba..d81326788e 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/parameter_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/parameter_contract.rb @@ -37,7 +37,6 @@ class ParameterContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ParameterContract', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'ParameterContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, default_value: { - client_side_validation: true, required: false, serialized_name: 'defaultValue', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, required: { - client_side_validation: true, required: false, serialized_name: 'required', type: { @@ -85,13 +79,11 @@ def self.mapper() } }, values: { - client_side_validation: true, required: false, serialized_name: 'values', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb index 2836c3f8b4..aa82aa08b6 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb @@ -32,7 +32,6 @@ class PolicySnippetContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PolicySnippetContract', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'PolicySnippetContract', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -49,7 +47,6 @@ def self.mapper() } }, content: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'content', @@ -58,7 +55,6 @@ def self.mapper() } }, tool_tip: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'toolTip', @@ -67,7 +63,6 @@ def self.mapper() } }, scope: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'scope', diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb index 2923aa01c3..3494b98c47 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb @@ -22,7 +22,6 @@ class PolicySnippetsCollection # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PolicySnippetsCollection', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'PolicySnippetsCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PolicySnippetContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_collection.rb index 861912cdb6..acbf00f4f4 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProductCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'ProductCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ProductContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_contract.rb index bb6744e23e..cf0086ced4 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_contract.rb @@ -67,7 +67,6 @@ class ProductContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProductContract', type: { @@ -75,7 +74,6 @@ def self.mapper() class_name: 'ProductContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -84,7 +82,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -96,7 +93,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -108,7 +104,6 @@ def self.mapper() } }, terms: { - client_side_validation: true, required: false, serialized_name: 'terms', type: { @@ -116,7 +111,6 @@ def self.mapper() } }, subscription_required: { - client_side_validation: true, required: false, serialized_name: 'subscriptionRequired', default_value: true, @@ -125,7 +119,6 @@ def self.mapper() } }, approval_required: { - client_side_validation: true, required: false, serialized_name: 'approvalRequired', type: { @@ -133,7 +126,6 @@ def self.mapper() } }, subscriptions_limit: { - client_side_validation: true, required: false, serialized_name: 'subscriptionsLimit', type: { @@ -141,7 +133,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', default_value: 'NotPublished', diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_update_parameters.rb index fc446bdece..86824e8237 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/product_update_parameters.rb @@ -58,7 +58,6 @@ class ProductUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProductUpdateParameters', type: { @@ -66,7 +65,6 @@ def self.mapper() class_name: 'ProductUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -78,7 +76,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', constraints: { @@ -90,7 +87,6 @@ def self.mapper() } }, terms: { - client_side_validation: true, required: false, serialized_name: 'terms', type: { @@ -98,7 +94,6 @@ def self.mapper() } }, subscription_required: { - client_side_validation: true, required: false, serialized_name: 'subscriptionRequired', type: { @@ -106,7 +101,6 @@ def self.mapper() } }, approval_required: { - client_side_validation: true, required: false, serialized_name: 'approvalRequired', type: { @@ -114,7 +108,6 @@ def self.mapper() } }, subscriptions_limit: { - client_side_validation: true, required: false, serialized_name: 'subscriptionsLimit', type: { @@ -122,7 +115,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_collection.rb index 5baf397766..7861f1f413 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'PropertyCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'PropertyContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_contract.rb index 0f161d0a0f..c1141fb3ca 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_contract.rb @@ -41,7 +41,6 @@ class PropertyContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyContract', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'PropertyContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -71,7 +68,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', constraints: { @@ -83,7 +79,6 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', constraints: { @@ -92,7 +87,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -102,7 +96,6 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_create_parameters.rb index 60153975bc..28af2e8b74 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_create_parameters.rb @@ -35,7 +35,6 @@ class PropertyCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyCreateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'PropertyCreateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -56,7 +54,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', constraints: { @@ -68,7 +65,6 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', constraints: { @@ -77,7 +73,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_update_parameters.rb index 2ed7dfd3e6..66c7138ec7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/property_update_parameters.rb @@ -35,7 +35,6 @@ class PropertyUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PropertyUpdateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'PropertyUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -56,7 +54,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', constraints: { @@ -68,7 +65,6 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', constraints: { @@ -77,7 +73,6 @@ def self.mapper() type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, secret: { - client_side_validation: true, required: false, serialized_name: 'secret', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_collection.rb index bf1ef2a818..14f48b77f0 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_collection.rb @@ -28,7 +28,6 @@ class QuotaCounterCollection # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterCollection', type: { @@ -36,13 +35,11 @@ def self.mapper() class_name: 'QuotaCounterCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterContractElementType', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -61,7 +57,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_contract.rb index 66b34a38d0..c2f220105a 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_contract.rb @@ -38,7 +38,6 @@ class QuotaCounterContract < QuotaCounterValueContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterContract', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'QuotaCounterContract', model_properties: { calls_count: { - client_side_validation: true, required: false, serialized_name: 'callsCount', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, kb_transferred: { - client_side_validation: true, required: false, serialized_name: 'kbTransferred', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, counter_key: { - client_side_validation: true, required: true, serialized_name: 'counterKey', constraints: { @@ -73,7 +69,6 @@ def self.mapper() } }, period_key: { - client_side_validation: true, required: true, serialized_name: 'periodKey', constraints: { @@ -84,7 +79,6 @@ def self.mapper() } }, period_start_time: { - client_side_validation: true, required: true, serialized_name: 'periodStartTime', type: { @@ -92,7 +86,6 @@ def self.mapper() } }, period_end_time: { - client_side_validation: true, required: true, serialized_name: 'periodEndTime', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb index 7d623615b2..f8fbcfd706 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb @@ -25,7 +25,6 @@ class QuotaCounterValueContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'QuotaCounterValueContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'QuotaCounterValueContract', model_properties: { calls_count: { - client_side_validation: true, required: false, serialized_name: 'callsCount', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, kb_transferred: { - client_side_validation: true, required: false, serialized_name: 'kbTransferred', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_contract.rb index c2a01459ab..35f8d288d7 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_contract.rb @@ -25,7 +25,6 @@ class RegionContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RegionContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'RegionContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, is_master_region: { - client_side_validation: true, required: true, serialized_name: 'isMasterRegion', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_list_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_list_result.rb index c9d9124731..e822c0d74d 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_list_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/region_list_result.rb @@ -22,7 +22,6 @@ class RegionListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RegionListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'RegionListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RegionContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_collection.rb index 80368809e1..8ab1328d20 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ReportCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'ReportCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ReportRecordContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb index ffb50beeea..29eae9ab96 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/report_record_contract.rb @@ -110,7 +110,6 @@ class ReportRecordContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ReportRecordContract', type: { @@ -118,7 +117,6 @@ def self.mapper() class_name: 'ReportRecordContract', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -126,7 +124,6 @@ def self.mapper() } }, timestamp: { - client_side_validation: true, required: false, serialized_name: 'timestamp', type: { @@ -134,7 +131,6 @@ def self.mapper() } }, interval: { - client_side_validation: true, required: false, serialized_name: 'interval', type: { @@ -142,7 +138,6 @@ def self.mapper() } }, country: { - client_side_validation: true, required: false, serialized_name: 'country', type: { @@ -150,7 +145,6 @@ def self.mapper() } }, region: { - client_side_validation: true, required: false, serialized_name: 'region', type: { @@ -158,7 +152,6 @@ def self.mapper() } }, zip: { - client_side_validation: true, required: false, serialized_name: 'zip', type: { @@ -166,7 +159,6 @@ def self.mapper() } }, user_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'userId', @@ -175,7 +167,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'productId', @@ -184,7 +175,6 @@ def self.mapper() } }, api_id: { - client_side_validation: true, required: false, serialized_name: 'apiId', type: { @@ -192,7 +182,6 @@ def self.mapper() } }, operation_id: { - client_side_validation: true, required: false, serialized_name: 'operationId', type: { @@ -200,7 +189,6 @@ def self.mapper() } }, api_region: { - client_side_validation: true, required: false, serialized_name: 'apiRegion', type: { @@ -208,7 +196,6 @@ def self.mapper() } }, subscription_id: { - client_side_validation: true, required: false, serialized_name: 'subscriptionId', type: { @@ -216,7 +203,6 @@ def self.mapper() } }, call_count_success: { - client_side_validation: true, required: false, serialized_name: 'callCountSuccess', type: { @@ -224,7 +210,6 @@ def self.mapper() } }, call_count_blocked: { - client_side_validation: true, required: false, serialized_name: 'callCountBlocked', type: { @@ -232,7 +217,6 @@ def self.mapper() } }, call_count_failed: { - client_side_validation: true, required: false, serialized_name: 'callCountFailed', type: { @@ -240,7 +224,6 @@ def self.mapper() } }, call_count_other: { - client_side_validation: true, required: false, serialized_name: 'callCountOther', type: { @@ -248,7 +231,6 @@ def self.mapper() } }, call_count_total: { - client_side_validation: true, required: false, serialized_name: 'callCountTotal', type: { @@ -256,7 +238,6 @@ def self.mapper() } }, bandwidth: { - client_side_validation: true, required: false, serialized_name: 'bandwidth', type: { @@ -264,7 +245,6 @@ def self.mapper() } }, cache_hit_count: { - client_side_validation: true, required: false, serialized_name: 'cacheHitCount', type: { @@ -272,7 +252,6 @@ def self.mapper() } }, cache_miss_count: { - client_side_validation: true, required: false, serialized_name: 'cacheMissCount', type: { @@ -280,7 +259,6 @@ def self.mapper() } }, api_time_avg: { - client_side_validation: true, required: false, serialized_name: 'apiTimeAvg', type: { @@ -288,7 +266,6 @@ def self.mapper() } }, api_time_min: { - client_side_validation: true, required: false, serialized_name: 'apiTimeMin', type: { @@ -296,7 +273,6 @@ def self.mapper() } }, api_time_max: { - client_side_validation: true, required: false, serialized_name: 'apiTimeMax', type: { @@ -304,7 +280,6 @@ def self.mapper() } }, service_time_avg: { - client_side_validation: true, required: false, serialized_name: 'serviceTimeAvg', type: { @@ -312,7 +287,6 @@ def self.mapper() } }, service_time_min: { - client_side_validation: true, required: false, serialized_name: 'serviceTimeMin', type: { @@ -320,7 +294,6 @@ def self.mapper() } }, service_time_max: { - client_side_validation: true, required: false, serialized_name: 'serviceTimeMax', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/representation_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/representation_contract.rb index 70eb452ab0..657ee5df30 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/representation_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/representation_contract.rb @@ -26,7 +26,6 @@ class RepresentationContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RepresentationContract', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'RepresentationContract', model_properties: { content_type: { - client_side_validation: true, required: true, serialized_name: 'contentType', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, sample: { - client_side_validation: true, required: false, serialized_name: 'sample', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/request_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/request_contract.rb index 89fc1f1e51..862b827b62 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/request_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/request_contract.rb @@ -34,7 +34,6 @@ class RequestContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RequestContract', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'RequestContract', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -50,13 +48,11 @@ def self.mapper() } }, query_parameters: { - client_side_validation: true, required: false, serialized_name: 'queryParameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -67,13 +63,11 @@ def self.mapper() } }, headers: { - client_side_validation: true, required: false, serialized_name: 'headers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { @@ -84,13 +78,11 @@ def self.mapper() } }, representations: { - client_side_validation: true, required: false, serialized_name: 'representations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RepresentationContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/resource.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/resource.rb index 3c133d6c99..649edb1f41 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/resource.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/resource.rb @@ -35,7 +35,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -69,7 +65,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -77,13 +72,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/result_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/result_contract.rb index 46a1654ca2..38fe4bbbf8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/result_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/result_contract.rb @@ -29,7 +29,6 @@ class ResultContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResultContract', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ResultContract', model_properties: { status_code: { - client_side_validation: true, required: true, serialized_name: 'statusCode', constraints: { @@ -49,7 +47,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -57,13 +54,11 @@ def self.mapper() } }, representations: { - client_side_validation: true, required: false, serialized_name: 'representations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RepresentationContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb index bf0113e09d..e19802930e 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb @@ -28,7 +28,6 @@ class SaveConfigurationParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SaveConfigurationParameter', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'SaveConfigurationParameter', model_properties: { branch: { - client_side_validation: true, required: true, serialized_name: 'branch', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, force: { - client_side_validation: true, required: false, serialized_name: 'force', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_collection.rb index cd7c1ee4aa..7d96639f51 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'SubscriptionCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SubscriptionContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_contract.rb index ad79f37456..29226a0260 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_contract.rb @@ -91,7 +91,6 @@ class SubscriptionContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionContract', type: { @@ -99,7 +98,6 @@ def self.mapper() class_name: 'SubscriptionContract', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -108,7 +106,6 @@ def self.mapper() } }, user_id: { - client_side_validation: true, required: false, serialized_name: 'userId', type: { @@ -116,7 +113,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: false, serialized_name: 'productId', type: { @@ -124,7 +120,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', constraints: { @@ -136,7 +131,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -145,7 +139,6 @@ def self.mapper() } }, created_date: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'createdDate', @@ -154,7 +147,6 @@ def self.mapper() } }, start_date: { - client_side_validation: true, required: false, serialized_name: 'startDate', type: { @@ -162,7 +154,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'expirationDate', type: { @@ -170,7 +161,6 @@ def self.mapper() } }, end_date: { - client_side_validation: true, required: false, serialized_name: 'endDate', type: { @@ -178,7 +168,6 @@ def self.mapper() } }, notification_date: { - client_side_validation: true, required: false, serialized_name: 'notificationDate', type: { @@ -186,7 +175,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { @@ -198,7 +186,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { @@ -210,7 +197,6 @@ def self.mapper() } }, state_comment: { - client_side_validation: true, required: false, serialized_name: 'stateComment', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb index 483f14b7da..51725fff82 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb @@ -51,7 +51,6 @@ class SubscriptionCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionCreateParameters', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'SubscriptionCreateParameters', model_properties: { user_id: { - client_side_validation: true, required: true, serialized_name: 'userId', type: { @@ -67,7 +65,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: true, serialized_name: 'productId', type: { @@ -75,7 +72,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', constraints: { @@ -87,7 +83,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { @@ -99,7 +94,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { @@ -111,7 +105,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb index 19369231fa..1b9e8c3ec2 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb @@ -25,7 +25,6 @@ class SubscriptionKeyParameterNamesContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionKeyParameterNamesContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'SubscriptionKeyParameterNamesContract', model_properties: { header: { - client_side_validation: true, required: false, serialized_name: 'header', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, query: { - client_side_validation: true, required: false, serialized_name: 'query', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb index 46a29f3e08..b963321d24 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb @@ -53,7 +53,6 @@ class SubscriptionUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubscriptionUpdateParameters', type: { @@ -61,7 +60,6 @@ def self.mapper() class_name: 'SubscriptionUpdateParameters', model_properties: { user_id: { - client_side_validation: true, required: false, serialized_name: 'userId', type: { @@ -69,7 +67,6 @@ def self.mapper() } }, product_id: { - client_side_validation: true, required: false, serialized_name: 'productId', type: { @@ -77,7 +74,6 @@ def self.mapper() } }, expiration_date: { - client_side_validation: true, required: false, serialized_name: 'expirationDate', type: { @@ -85,7 +81,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -93,7 +88,6 @@ def self.mapper() } }, primary_key: { - client_side_validation: true, required: false, serialized_name: 'primaryKey', constraints: { @@ -105,7 +99,6 @@ def self.mapper() } }, secondary_key: { - client_side_validation: true, required: false, serialized_name: 'secondaryKey', constraints: { @@ -117,7 +110,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -126,7 +118,6 @@ def self.mapper() } }, state_comment: { - client_side_validation: true, required: false, serialized_name: 'stateComment', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb index 5a09d23a78..944426c6a0 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb @@ -49,7 +49,6 @@ class TenantConfigurationSyncStateContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TenantConfigurationSyncStateContract', type: { @@ -57,7 +56,6 @@ def self.mapper() class_name: 'TenantConfigurationSyncStateContract', model_properties: { branch: { - client_side_validation: true, required: false, serialized_name: 'branch', type: { @@ -65,7 +63,6 @@ def self.mapper() } }, commit_id: { - client_side_validation: true, required: false, serialized_name: 'commitId', type: { @@ -73,7 +70,6 @@ def self.mapper() } }, is_export: { - client_side_validation: true, required: false, serialized_name: 'isExport', type: { @@ -81,7 +77,6 @@ def self.mapper() } }, is_synced: { - client_side_validation: true, required: false, serialized_name: 'isSynced', type: { @@ -89,7 +84,6 @@ def self.mapper() } }, is_git_enabled: { - client_side_validation: true, required: false, serialized_name: 'isGitEnabled', type: { @@ -97,7 +91,6 @@ def self.mapper() } }, sync_date: { - client_side_validation: true, required: false, serialized_name: 'syncDate', type: { @@ -105,7 +98,6 @@ def self.mapper() } }, configuration_change_date: { - client_side_validation: true, required: false, serialized_name: 'configurationChangeDate', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb index 318f3b4a4f..d0c9436475 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb @@ -25,7 +25,6 @@ class TokenBodyParameterContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TokenBodyParameterContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'TokenBodyParameterContract', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_collection.rb index b066255f38..5e4a04d71d 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_collection.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserCollection', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'UserCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserContractElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, count: { - client_side_validation: true, required: false, serialized_name: 'count', type: { @@ -93,7 +89,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_contract.rb index f82f459b7c..8338db9327 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_contract.rb @@ -47,7 +47,6 @@ class UserContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserContract', type: { @@ -55,7 +54,6 @@ def self.mapper() class_name: 'UserContract', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -63,7 +61,6 @@ def self.mapper() } }, first_name: { - client_side_validation: true, required: false, serialized_name: 'firstName', type: { @@ -71,7 +68,6 @@ def self.mapper() } }, last_name: { - client_side_validation: true, required: false, serialized_name: 'lastName', type: { @@ -79,7 +75,6 @@ def self.mapper() } }, email: { - client_side_validation: true, required: false, serialized_name: 'email', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -96,7 +90,6 @@ def self.mapper() } }, registration_date: { - client_side_validation: true, required: false, serialized_name: 'registrationDate', type: { @@ -104,7 +97,6 @@ def self.mapper() } }, note: { - client_side_validation: true, required: false, serialized_name: 'note', type: { @@ -112,14 +104,12 @@ def self.mapper() } }, identities: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'identities', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserIdentityContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_create_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_create_parameters.rb index 64c75a6182..0cf8f586c0 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_create_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_create_parameters.rb @@ -42,7 +42,6 @@ class UserCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserCreateParameters', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'UserCreateParameters', model_properties: { email: { - client_side_validation: true, required: true, serialized_name: 'email', constraints: { @@ -62,7 +60,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: true, serialized_name: 'password', type: { @@ -70,7 +67,6 @@ def self.mapper() } }, first_name: { - client_side_validation: true, required: true, serialized_name: 'firstName', constraints: { @@ -82,7 +78,6 @@ def self.mapper() } }, last_name: { - client_side_validation: true, required: true, serialized_name: 'lastName', constraints: { @@ -94,7 +89,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', default_value: 'Active', @@ -104,7 +98,6 @@ def self.mapper() } }, note: { - client_side_validation: true, required: false, serialized_name: 'note', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_collection.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_collection.rb index 61d2cc1fc4..44733961ab 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_collection.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_collection.rb @@ -22,7 +22,6 @@ class UserIdentityCollection # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserIdentityCollection', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'UserIdentityCollection', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UserIdentityContractElementType', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_contract.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_contract.rb index b56fa43ea8..5690a80ecd 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_contract.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_identity_contract.rb @@ -25,7 +25,6 @@ class UserIdentityContract # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserIdentityContract', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UserIdentityContract', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_parameters.rb index dba0db0e27..2857fdc20c 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_parameters.rb @@ -30,7 +30,6 @@ class UserTokenParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserTokenParameters', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'UserTokenParameters', model_properties: { key_type: { - client_side_validation: true, required: true, serialized_name: 'keyType', default_value: 'primary', @@ -48,7 +46,6 @@ def self.mapper() } }, expiry: { - client_side_validation: true, required: true, serialized_name: 'expiry', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_result.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_result.rb index 1daf73d071..b72fce9aef 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_result.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_token_result.rb @@ -22,7 +22,6 @@ class UserTokenResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserTokenResult', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'UserTokenResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_update_parameters.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_update_parameters.rb index a418874e7c..337b3155d4 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_update_parameters.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/user_update_parameters.rb @@ -38,7 +38,6 @@ class UserUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UserUpdateParameters', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'UserUpdateParameters', model_properties: { email: { - client_side_validation: true, required: false, serialized_name: 'email', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'password', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, first_name: { - client_side_validation: true, required: false, serialized_name: 'firstName', constraints: { @@ -74,7 +70,6 @@ def self.mapper() } }, last_name: { - client_side_validation: true, required: false, serialized_name: 'lastName', constraints: { @@ -86,7 +81,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { @@ -95,7 +89,6 @@ def self.mapper() } }, note: { - client_side_validation: true, required: false, serialized_name: 'note', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb index 4b969e30fe..dbf3a8842d 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb @@ -34,7 +34,6 @@ class VirtualNetworkConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkConfiguration', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'VirtualNetworkConfiguration', model_properties: { vnetid: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'vnetid', @@ -51,7 +49,6 @@ def self.mapper() } }, subnetname: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'subnetname', @@ -60,7 +57,6 @@ def self.mapper() } }, subnet_resource_id: { - client_side_validation: true, required: false, serialized_name: 'subnetResourceId', constraints: { @@ -71,7 +67,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb index 04e0bf8efd..85ba5f74be 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [NetworkStatusContract] operation results. # - def get_by_service(resource_group_name, service_name, custom_headers:nil) - response = get_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_by_service(resource_group_name, service_name, custom_headers = nil) + response = get_by_service_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def get_by_service(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_by_service_async(resource_group_name, service_name, custom_headers).value! end # @@ -66,18 +66,14 @@ def get_by_service_with_http_info(resource_group_name, service_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_service_async(resource_group_name, service_name, custom_headers:nil) + def get_by_service_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/open_id_connect_providers.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/open_id_connect_providers.rb index af50dbf535..980ca68b67 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/open_id_connect_providers.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/open_id_connect_providers.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -156,8 +150,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [OpenidConnectProviderContract] operation results. # - def get(resource_group_name, service_name, opid, custom_headers:nil) - response = get_async(resource_group_name, service_name, opid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, opid, custom_headers = nil) + response = get_async(resource_group_name, service_name, opid, custom_headers).value! response.body unless response.nil? end @@ -172,8 +166,8 @@ def get(resource_group_name, service_name, opid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, opid, custom_headers:nil) - get_async(resource_group_name, service_name, opid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, opid, custom_headers = nil) + get_async(resource_group_name, service_name, opid, custom_headers).value! end # @@ -187,21 +181,15 @@ def get_with_http_info(resource_group_name, service_name, opid, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, opid, custom_headers:nil) + def get_async(resource_group_name, service_name, opid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? - fail ArgumentError, "'opid' should satisfy the constraint - 'MaxLength': '256'" if !opid.nil? && opid.length > 256 - fail ArgumentError, "'opid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !opid.nil? && opid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +245,8 @@ def get_async(resource_group_name, service_name, opid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, opid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, opid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers).value! nil end @@ -274,8 +262,8 @@ def create_or_update(resource_group_name, service_name, opid, parameters, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, opid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, opid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers).value! end # @@ -290,27 +278,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, opid, par # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, opid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? - fail ArgumentError, "'opid' should satisfy the constraint - 'MaxLength': '256'" if !opid.nil? && opid.length > 256 - fail ArgumentError, "'opid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !opid.nil? && opid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::OpenidConnectProviderCreateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -361,8 +345,8 @@ def create_or_update_async(resource_group_name, service_name, opid, parameters, # will be added to the HTTP request. # # - def update(resource_group_name, service_name, opid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! nil end @@ -381,8 +365,8 @@ def update(resource_group_name, service_name, opid, parameters, if_match, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, opid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! end # @@ -400,15 +384,10 @@ def update_with_http_info(resource_group_name, service_name, opid, parameters, i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? - fail ArgumentError, "'opid' should satisfy the constraint - 'MaxLength': '256'" if !opid.nil? && opid.length > 256 - fail ArgumentError, "'opid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !opid.nil? && opid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -416,13 +395,14 @@ def update_async(resource_group_name, service_name, opid, parameters, if_match, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::OpenidConnectProviderUpdateContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -474,8 +454,8 @@ def update_async(resource_group_name, service_name, opid, parameters, if_match, # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, opid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, opid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, opid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, opid, if_match, custom_headers).value! response.body unless response.nil? end @@ -494,8 +474,8 @@ def delete(resource_group_name, service_name, opid, if_match, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, opid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, opid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, opid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, opid, if_match, custom_headers).value! end # @@ -513,22 +493,16 @@ def delete_with_http_info(resource_group_name, service_name, opid, if_match, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, opid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, opid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'opid is nil' if opid.nil? - fail ArgumentError, "'opid' should satisfy the constraint - 'MaxLength': '256'" if !opid.nil? && opid.length > 256 - fail ArgumentError, "'opid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !opid.nil? && opid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -584,8 +558,8 @@ def delete_async(resource_group_name, service_name, opid, if_match, custom_heade # # @return [OpenIdConnectProviderCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -599,8 +573,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -613,12 +587,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -682,12 +655,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [OpenIdConnectProviderCollection] which provide lazy access to pages # of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/policy_snippets.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/policy_snippets.rb index f5ec88b6ba..e2d7bafd28 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/policy_snippets.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/policy_snippets.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [PolicySnippetsCollection] operation results. # - def list_by_service(resource_group_name, service_name, scope:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, scope:scope, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, scope = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def list_by_service(resource_group_name, service_name, scope:nil, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, scope:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, scope:scope, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, scope = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! end # @@ -66,18 +66,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, scope:nil, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, scope:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, scope = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb index 630e83f4f0..93af689fdb 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb @@ -49,8 +49,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_products(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_products(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_products_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -82,8 +82,8 @@ def list_by_products(resource_group_name, service_name, product_id, filter:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_products_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! end # @@ -114,24 +114,15 @@ def list_by_products_with_http_info(resource_group_name, service_name, product_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_products_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_products_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,8 +180,8 @@ def list_by_products_async(resource_group_name, service_name, product_id, filter # will be added to the HTTP request. # # - def create(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - response = create_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def create(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = create_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! nil end @@ -208,8 +199,8 @@ def create(resource_group_name, service_name, product_id, api_id, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - create_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def create_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + create_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! end # @@ -226,26 +217,16 @@ def create_with_http_info(resource_group_name, service_name, product_id, api_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, service_name, product_id, api_id, custom_headers:nil) + def create_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -293,8 +274,8 @@ def create_async(resource_group_name, service_name, product_id, api_id, custom_h # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - response = delete_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! nil end @@ -312,8 +293,8 @@ def delete(resource_group_name, service_name, product_id, api_id, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers:nil) - delete_async(resource_group_name, service_name, product_id, api_id, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! end # @@ -330,26 +311,16 @@ def delete_with_http_info(resource_group_name, service_name, product_id, api_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, product_id, api_id, custom_headers:nil) + def delete_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'api_id is nil' if api_id.nil? - fail ArgumentError, "'api_id' should satisfy the constraint - 'MaxLength': '256'" if !api_id.nil? && api_id.length > 256 - fail ArgumentError, "'api_id' should satisfy the constraint - 'MinLength': '1'" if !api_id.nil? && api_id.length < 1 - fail ArgumentError, "'api_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !api_id.nil? && api_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -394,8 +365,8 @@ def delete_async(resource_group_name, service_name, product_id, api_id, custom_h # # @return [ApiCollection] operation results. # - def list_by_products_next(next_page_link, custom_headers:nil) - response = list_by_products_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_products_next(next_page_link, custom_headers = nil) + response = list_by_products_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -409,8 +380,8 @@ def list_by_products_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_products_next_with_http_info(next_page_link, custom_headers:nil) - list_by_products_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_products_next_with_http_info(next_page_link, custom_headers = nil) + list_by_products_next_async(next_page_link, custom_headers).value! end # @@ -423,12 +394,11 @@ def list_by_products_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_products_next_async(next_page_link, custom_headers:nil) + def list_by_products_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,12 +470,12 @@ def list_by_products_next_async(next_page_link, custom_headers:nil) # # @return [ApiCollection] which provide lazy access to pages of the response. # - def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_products_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_products_next_async(next_page_link, custom_headers:custom_headers) + list_by_products_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_groups.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_groups.rb index 1c5068c67e..1c62c336a8 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_groups.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_groups.rb @@ -47,8 +47,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_products(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_products(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_products_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -78,8 +78,8 @@ def list_by_products(resource_group_name, service_name, product_id, filter:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_products_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! end # @@ -108,24 +108,15 @@ def list_by_products_with_http_info(resource_group_name, service_name, product_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_products_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_products_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -184,8 +175,8 @@ def list_by_products_async(resource_group_name, service_name, product_id, filter # will be added to the HTTP request. # # - def create(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - response = create_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def create(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = create_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! nil end @@ -204,8 +195,8 @@ def create(resource_group_name, service_name, product_id, group_id, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - create_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def create_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + create_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! end # @@ -223,26 +214,16 @@ def create_with_http_info(resource_group_name, service_name, product_id, group_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, service_name, product_id, group_id, custom_headers:nil) + def create_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +272,8 @@ def create_async(resource_group_name, service_name, product_id, group_id, custom # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - response = delete_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! response.body unless response.nil? end @@ -310,8 +291,8 @@ def delete(resource_group_name, service_name, product_id, group_id, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers:nil) - delete_async(resource_group_name, service_name, product_id, group_id, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! end # @@ -328,26 +309,16 @@ def delete_with_http_info(resource_group_name, service_name, product_id, group_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, product_id, group_id, custom_headers:nil) + def delete_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'group_id is nil' if group_id.nil? - fail ArgumentError, "'group_id' should satisfy the constraint - 'MaxLength': '256'" if !group_id.nil? && group_id.length > 256 - fail ArgumentError, "'group_id' should satisfy the constraint - 'MinLength': '1'" if !group_id.nil? && group_id.length < 1 - fail ArgumentError, "'group_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !group_id.nil? && group_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -403,8 +374,8 @@ def delete_async(resource_group_name, service_name, product_id, group_id, custom # # @return [GroupCollection] operation results. # - def list_by_products_next(next_page_link, custom_headers:nil) - response = list_by_products_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_products_next(next_page_link, custom_headers = nil) + response = list_by_products_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -419,8 +390,8 @@ def list_by_products_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_products_next_with_http_info(next_page_link, custom_headers:nil) - list_by_products_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_products_next_with_http_info(next_page_link, custom_headers = nil) + list_by_products_next_async(next_page_link, custom_headers).value! end # @@ -434,12 +405,11 @@ def list_by_products_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_products_next_async(next_page_link, custom_headers:nil) + def list_by_products_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -509,12 +479,12 @@ def list_by_products_next_async(next_page_link, custom_headers:nil) # # @return [GroupCollection] which provide lazy access to pages of the response. # - def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_products_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_products_next_async(next_page_link, custom_headers:custom_headers) + list_by_products_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_policy.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_policy.rb index 5c01929439..ea4e72b41d 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_policy.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_policy.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get(resource_group_name, service_name, product_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, product_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, product_id, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def get(resource_group_name, service_name, product_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, product_id, custom_headers:nil) - get_async(resource_group_name, service_name, product_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_async(resource_group_name, service_name, product_id, custom_headers).value! end # @@ -66,22 +66,15 @@ def get_with_http_info(resource_group_name, service_name, product_id, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, product_id, custom_headers:nil) + def get_async(resource_group_name, service_name, product_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,7 +107,6 @@ def get_async(resource_group_name, service_name, product_id, custom_headers:nil) begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -148,8 +140,8 @@ def get_async(resource_group_name, service_name, product_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! nil end @@ -169,8 +161,8 @@ def create_or_update(resource_group_name, service_name, product_id, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! end # @@ -189,16 +181,10 @@ def create_or_update_with_http_info(resource_group_name, service_name, product_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -206,16 +192,16 @@ def create_or_update_async(resource_group_name, service_name, product_id, parame request_headers = {} - request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' + # Serialize Request request_mapper = { - client_side_validation: true, required: true, serialized_name: 'parameters', type: { @@ -223,6 +209,7 @@ def create_or_update_async(resource_group_name, service_name, product_id, parame } } request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policy' @@ -269,8 +256,8 @@ def create_or_update_async(resource_group_name, service_name, product_id, parame # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, product_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, product_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, product_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, if_match, custom_headers).value! nil end @@ -289,8 +276,8 @@ def delete(resource_group_name, service_name, product_id, if_match, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, product_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, product_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, product_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, if_match, custom_headers).value! end # @@ -308,23 +295,16 @@ def delete_with_http_info(resource_group_name, service_name, product_id, if_matc # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, product_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, product_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_subscriptions.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_subscriptions.rb index d405e1276c..ab09e85102 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_subscriptions.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_subscriptions.rb @@ -50,8 +50,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_products(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_products(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_products_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) first_page.get_all_items end @@ -84,8 +84,8 @@ def list_by_products(resource_group_name, service_name, product_id, filter:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_products_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! end # @@ -117,24 +117,15 @@ def list_by_products_with_http_info(resource_group_name, service_name, product_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_products_async(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_products_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,8 +180,8 @@ def list_by_products_async(resource_group_name, service_name, product_id, filter # # @return [SubscriptionCollection] operation results. # - def list_by_products_next(next_page_link, custom_headers:nil) - response = list_by_products_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_products_next(next_page_link, custom_headers = nil) + response = list_by_products_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -204,8 +195,8 @@ def list_by_products_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_products_next_with_http_info(next_page_link, custom_headers:nil) - list_by_products_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_products_next_with_http_info(next_page_link, custom_headers = nil) + list_by_products_next_async(next_page_link, custom_headers).value! end # @@ -218,12 +209,11 @@ def list_by_products_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_products_next_async(next_page_link, custom_headers:nil) + def list_by_products_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,12 +287,12 @@ def list_by_products_next_async(next_page_link, custom_headers:nil) # @return [SubscriptionCollection] which provide lazy access to pages of the # response. # - def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_products_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_products_next_async(next_page_link, custom_headers:custom_headers) + list_by_products_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/products.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/products.rb index c47525eb90..3c1fe90deb 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/products.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/products.rb @@ -48,8 +48,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_groups:expand_groups, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers) first_page.get_all_items end @@ -80,8 +80,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_groups:expand_groups, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers).value! end # @@ -111,20 +111,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -181,8 +175,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [ProductContract] operation results. # - def get(resource_group_name, service_name, product_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, product_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, product_id, custom_headers).value! response.body unless response.nil? end @@ -198,8 +192,8 @@ def get(resource_group_name, service_name, product_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, product_id, custom_headers:nil) - get_async(resource_group_name, service_name, product_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_async(resource_group_name, service_name, product_id, custom_headers).value! end # @@ -214,22 +208,15 @@ def get_with_http_info(resource_group_name, service_name, product_id, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, product_id, custom_headers:nil) + def get_async(resource_group_name, service_name, product_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,8 +273,8 @@ def get_async(resource_group_name, service_name, product_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, product_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, product_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers).value! nil end @@ -304,8 +291,8 @@ def create_or_update(resource_group_name, service_name, product_id, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers).value! end # @@ -321,28 +308,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, product_i # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, product_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ProductContract.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -394,8 +376,8 @@ def create_or_update_async(resource_group_name, service_name, product_id, parame # will be added to the HTTP request. # # - def update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! nil end @@ -415,8 +397,8 @@ def update(resource_group_name, service_name, product_id, parameters, if_match, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! end # @@ -435,16 +417,10 @@ def update_with_http_info(resource_group_name, service_name, product_id, paramet # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -452,13 +428,14 @@ def update_async(resource_group_name, service_name, product_id, parameters, if_m request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::ProductUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -511,8 +488,8 @@ def update_async(resource_group_name, service_name, product_id, parameters, if_m # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, product_id, if_match, delete_subscriptions:nil, custom_headers:nil) - response = delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions, custom_headers).value! nil end @@ -533,8 +510,8 @@ def delete(resource_group_name, service_name, product_id, if_match, delete_subsc # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, product_id, if_match, delete_subscriptions:nil, custom_headers:nil) - delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions, custom_headers).value! end # @@ -554,23 +531,16 @@ def delete_with_http_info(resource_group_name, service_name, product_id, if_matc # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions:nil, custom_headers:nil) + def delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'product_id is nil' if product_id.nil? - fail ArgumentError, "'product_id' should satisfy the constraint - 'MaxLength': '256'" if !product_id.nil? && product_id.length > 256 - fail ArgumentError, "'product_id' should satisfy the constraint - 'MinLength': '1'" if !product_id.nil? && product_id.length < 1 - fail ArgumentError, "'product_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !product_id.nil? && product_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,8 +586,8 @@ def delete_async(resource_group_name, service_name, product_id, if_match, delete # # @return [ProductCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -631,8 +601,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -645,12 +615,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -722,12 +691,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [ProductCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, expand_groups:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, expand_groups:expand_groups, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/properties.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/properties.rb index 70b7622e1a..54a25b09b0 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/properties.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/properties.rb @@ -40,8 +40,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -87,20 +87,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -155,8 +149,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [PropertyCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -170,8 +164,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -184,12 +178,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -253,12 +246,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [PropertyCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb index 50948cc660..478e47b4de 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/property.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [PropertyContract] operation results. # - def get(resource_group_name, service_name, prop_id, custom_headers:nil) - response = get_async(resource_group_name, service_name, prop_id, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, prop_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, prop_id, custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ def get(resource_group_name, service_name, prop_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, prop_id, custom_headers:nil) - get_async(resource_group_name, service_name, prop_id, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, prop_id, custom_headers = nil) + get_async(resource_group_name, service_name, prop_id, custom_headers).value! end # @@ -63,21 +63,15 @@ def get_with_http_info(resource_group_name, service_name, prop_id, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, prop_id, custom_headers:nil) + def get_async(resource_group_name, service_name, prop_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? - fail ArgumentError, "'prop_id' should satisfy the constraint - 'MaxLength': '256'" if !prop_id.nil? && prop_id.length > 256 - fail ArgumentError, "'prop_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !prop_id.nil? && prop_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +127,8 @@ def get_async(resource_group_name, service_name, prop_id, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, prop_id, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, prop_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers).value! nil end @@ -150,8 +144,8 @@ def create_or_update(resource_group_name, service_name, prop_id, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, prop_id, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, prop_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers).value! end # @@ -166,27 +160,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, prop_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, prop_id, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? - fail ArgumentError, "'prop_id' should satisfy the constraint - 'MaxLength': '256'" if !prop_id.nil? && prop_id.length > 256 - fail ArgumentError, "'prop_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !prop_id.nil? && prop_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::PropertyCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -237,8 +227,8 @@ def create_or_update_async(resource_group_name, service_name, prop_id, parameter # will be added to the HTTP request. # # - def update(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! nil end @@ -257,8 +247,8 @@ def update(resource_group_name, service_name, prop_id, parameters, if_match, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! end # @@ -276,15 +266,10 @@ def update_with_http_info(resource_group_name, service_name, prop_id, parameters # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? - fail ArgumentError, "'prop_id' should satisfy the constraint - 'MaxLength': '256'" if !prop_id.nil? && prop_id.length > 256 - fail ArgumentError, "'prop_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !prop_id.nil? && prop_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -292,13 +277,14 @@ def update_async(resource_group_name, service_name, prop_id, parameters, if_matc request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::PropertyUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -349,8 +335,8 @@ def update_async(resource_group_name, service_name, prop_id, parameters, if_matc # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, prop_id, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers).value! response.body unless response.nil? end @@ -368,8 +354,8 @@ def delete(resource_group_name, service_name, prop_id, if_match, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers).value! end # @@ -386,22 +372,16 @@ def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'prop_id is nil' if prop_id.nil? - fail ArgumentError, "'prop_id' should satisfy the constraint - 'MaxLength': '256'" if !prop_id.nil? && prop_id.length > 256 - fail ArgumentError, "'prop_id' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !prop_id.nil? && prop_id.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_counter_keys.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_counter_keys.rb index 3d1ae8343b..236caa4be1 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_counter_keys.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_counter_keys.rb @@ -34,8 +34,8 @@ def initialize(client) # # @return [QuotaCounterCollection] operation results. # - def list_by_service(resource_group_name, service_name, quota_counter_key, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ def list_by_service(resource_group_name, service_name, quota_counter_key, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, quota_counter_key, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers).value! end # @@ -69,19 +69,15 @@ def list_by_service_with_http_info(resource_group_name, service_name, quota_coun # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +136,8 @@ def list_by_service_async(resource_group_name, service_name, quota_counter_key, # will be added to the HTTP request. # # - def update(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:nil) - response = update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers).value! nil end @@ -160,8 +156,8 @@ def update(resource_group_name, service_name, quota_counter_key, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:nil) - update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers).value! end # @@ -179,12 +175,9 @@ def update_with_http_info(resource_group_name, service_name, quota_counter_key, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers:nil) + def update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -192,12 +185,13 @@ def update_async(resource_group_name, service_name, quota_counter_key, parameter request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::QuotaCounterValueContract.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_period_keys.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_period_keys.rb index 2086cb52d4..3ef6886837 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_period_keys.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/quota_by_period_keys.rb @@ -34,8 +34,8 @@ def initialize(client) # # @return [QuotaCounterContract] operation results. # - def get(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:nil) - response = get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + response = get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ def get(resource_group_name, service_name, quota_counter_key, quota_period_key, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:nil) - get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers).value! end # @@ -69,20 +69,16 @@ def get_with_http_info(resource_group_name, service_name, quota_counter_key, quo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers:nil) + def get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, 'quota_period_key is nil' if quota_period_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +136,8 @@ def get_async(resource_group_name, service_name, quota_counter_key, quota_period # will be added to the HTTP request. # # - def update(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:nil) - response = update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers).value! nil end @@ -159,8 +155,8 @@ def update(resource_group_name, service_name, quota_counter_key, quota_period_ke # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:nil) - update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers).value! end # @@ -177,12 +173,9 @@ def update_with_http_info(resource_group_name, service_name, quota_counter_key, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers:nil) + def update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? fail ArgumentError, 'quota_period_key is nil' if quota_period_key.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -191,12 +184,13 @@ def update_async(resource_group_name, service_name, quota_counter_key, quota_per request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::QuotaCounterValueContract.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/regions.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/regions.rb index 57705c1e85..78e70262e2 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/regions.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/regions.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [RegionListResult] operation results. # - def list_by_service(resource_group_name, service_name, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def list_by_service(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb index 5119f2dbca..74fe4af141 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/reports.rb @@ -43,8 +43,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter:filter, top:top, skip:skip, interval:interval, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter, top, skip, interval, custom_headers) first_page.get_all_items end @@ -70,8 +70,8 @@ def list_by_service(resource_group_name, service_name, aggregation, filter:nil, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, aggregation, filter:filter, top:top, skip:skip, interval:interval, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, aggregation, filter, top, skip, interval, custom_headers).value! end # @@ -96,21 +96,15 @@ def list_by_service_with_http_info(resource_group_name, service_name, aggregatio # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'aggregation is nil' if aggregation.nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +159,8 @@ def list_by_service_async(resource_group_name, service_name, aggregation, filter # # @return [ReportCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -180,8 +174,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -194,12 +188,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -266,12 +259,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # @return [ReportCollection] which provide lazy access to pages of the # response. # - def list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter:nil, top:nil, skip:nil, interval:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, aggregation, filter:filter, top:top, skip:skip, interval:interval, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, aggregation, filter = nil, top = nil, skip = nil, interval = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, aggregation, filter, top, skip, interval, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb index bf09fb3b35..d1ad3f9055 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/subscriptions.rb @@ -48,8 +48,8 @@ def initialize(client) # # @return [Array] operation results. # - def list(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -80,8 +80,8 @@ def list(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -111,20 +111,14 @@ def list_with_http_info(resource_group_name, service_name, filter:nil, top:nil, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -181,8 +175,8 @@ def list_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, # # @return [SubscriptionContract] operation results. # - def get(resource_group_name, service_name, sid, custom_headers:nil) - response = get_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, sid, custom_headers = nil) + response = get_async(resource_group_name, service_name, sid, custom_headers).value! response.body unless response.nil? end @@ -198,8 +192,8 @@ def get(resource_group_name, service_name, sid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, sid, custom_headers:nil) - get_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + get_async(resource_group_name, service_name, sid, custom_headers).value! end # @@ -214,21 +208,15 @@ def get_with_http_info(resource_group_name, service_name, sid, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, sid, custom_headers:nil) + def get_async(resource_group_name, service_name, sid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,8 +274,8 @@ def get_async(resource_group_name, service_name, sid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, sid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, sid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers).value! nil end @@ -305,8 +293,8 @@ def create_or_update(resource_group_name, service_name, sid, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, sid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, sid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers).value! end # @@ -323,27 +311,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, sid, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, sid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::SubscriptionCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -395,8 +379,8 @@ def create_or_update_async(resource_group_name, service_name, sid, parameters, c # will be added to the HTTP request. # # - def update(resource_group_name, service_name, sid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, sid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers).value! nil end @@ -416,8 +400,8 @@ def update(resource_group_name, service_name, sid, parameters, if_match, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers).value! end # @@ -436,15 +420,10 @@ def update_with_http_info(resource_group_name, service_name, sid, parameters, if # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, sid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -452,13 +431,14 @@ def update_async(resource_group_name, service_name, sid, parameters, if_match, c request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::SubscriptionUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -509,8 +489,8 @@ def update_async(resource_group_name, service_name, sid, parameters, if_match, c # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, sid, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, sid, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, sid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, sid, if_match, custom_headers).value! nil end @@ -529,8 +509,8 @@ def delete(resource_group_name, service_name, sid, if_match, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, sid, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, sid, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, sid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, sid, if_match, custom_headers).value! end # @@ -548,22 +528,16 @@ def delete_with_http_info(resource_group_name, service_name, sid, if_match, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, sid, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, sid, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -611,8 +585,8 @@ def delete_async(resource_group_name, service_name, sid, if_match, custom_header # will be added to the HTTP request. # # - def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers:nil) - response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers).value! nil end @@ -629,8 +603,8 @@ def regenerate_primary_key(resource_group_name, service_name, sid, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid, custom_headers:nil) - regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers).value! end # @@ -646,21 +620,15 @@ def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:nil) + def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -707,8 +675,8 @@ def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_ # will be added to the HTTP request. # # - def regenerate_secondary_key(resource_group_name, service_name, sid, custom_headers:nil) - response = regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_secondary_key(resource_group_name, service_name, sid, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers).value! nil end @@ -725,8 +693,8 @@ def regenerate_secondary_key(resource_group_name, service_name, sid, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, service_name, sid, custom_headers:nil) - regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers).value! end # @@ -742,21 +710,15 @@ def regenerate_secondary_key_with_http_info(resource_group_name, service_name, s # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers:nil) + def regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'sid is nil' if sid.nil? - fail ArgumentError, "'sid' should satisfy the constraint - 'MaxLength': '256'" if !sid.nil? && sid.length > 256 - fail ArgumentError, "'sid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !sid.nil? && sid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -801,8 +763,8 @@ def regenerate_secondary_key_async(resource_group_name, service_name, sid, custo # # @return [SubscriptionCollection] operation results. # - def list_next(next_page_link, custom_headers:nil) - response = list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -816,8 +778,8 @@ def list_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers:nil) - list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! end # @@ -830,12 +792,11 @@ def list_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers:nil) + def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -907,12 +868,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [SubscriptionCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers:custom_headers) + list_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access.rb index 0c587b6a37..4f3cfd5b61 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [AccessInformationContract] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +125,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # will be added to the HTTP request. # # - def update(resource_group_name, service_name, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! nil end @@ -148,8 +144,8 @@ def update(resource_group_name, service_name, parameters, if_match, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! end # @@ -166,12 +162,9 @@ def update_with_http_info(resource_group_name, service_name, parameters, if_matc # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -179,13 +172,14 @@ def update_async(resource_group_name, service_name, parameters, if_match, custom request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::AccessInformationUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -231,8 +225,8 @@ def update_async(resource_group_name, service_name, parameters, if_match, custom # will be added to the HTTP request. # # - def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -246,8 +240,8 @@ def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -260,18 +254,14 @@ def regenerate_primary_key_with_http_info(resource_group_name, service_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_primary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +305,8 @@ def regenerate_primary_key_async(resource_group_name, service_name, custom_heade # will be added to the HTTP request. # # - def regenerate_secondary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -330,8 +320,8 @@ def regenerate_secondary_key(resource_group_name, service_name, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -344,18 +334,14 @@ def regenerate_secondary_key_with_http_info(resource_group_name, service_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access_git.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access_git.rb index 5e57170d38..124c02d6c5 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access_git.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_access_git.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [AccessInformationContract] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +121,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # will be added to the HTTP request. # # - def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -140,8 +136,8 @@ def regenerate_primary_key(resource_group_name, service_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_primary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -154,18 +150,14 @@ def regenerate_primary_key_with_http_info(resource_group_name, service_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_primary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,8 +201,8 @@ def regenerate_primary_key_async(resource_group_name, service_name, custom_heade # will be added to the HTTP request. # # - def regenerate_secondary_key(resource_group_name, service_name, custom_headers:nil) - response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! nil end @@ -224,8 +216,8 @@ def regenerate_secondary_key(resource_group_name, service_name, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers:nil) - regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! end # @@ -238,18 +230,14 @@ def regenerate_secondary_key_with_http_info(resource_group_name, service_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers:nil) + def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration.rb index a449a23a7b..88c33344fb 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [OperationResultContract] operation results. # - def deploy(resource_group_name, service_name, parameters, custom_headers:nil) - response = deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def deploy(resource_group_name, service_name, parameters, custom_headers = nil) + response = deploy_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ def deploy(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deploy_async(resource_group_name, service_name, parameters, custom_headers:nil) + def deploy_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ def deploy_async(resource_group_name, service_name, parameters, custom_headers:n # # @return [OperationResultContract] operation results. # - def save(resource_group_name, service_name, parameters, custom_headers:nil) - response = save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def save(resource_group_name, service_name, parameters, custom_headers = nil) + response = save_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -97,9 +97,9 @@ def save(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def save_async(resource_group_name, service_name, parameters, custom_headers:nil) + def save_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_save_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -128,8 +128,8 @@ def save_async(resource_group_name, service_name, parameters, custom_headers:nil # # @return [OperationResultContract] operation results. # - def validate(resource_group_name, service_name, parameters, custom_headers:nil) - response = validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def validate(resource_group_name, service_name, parameters, custom_headers = nil) + response = validate_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -144,9 +144,9 @@ def validate(resource_group_name, service_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def validate_async(resource_group_name, service_name, parameters, custom_headers:nil) + def validate_async(resource_group_name, service_name, parameters, custom_headers = nil) # Send request - promise = begin_validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers) + promise = begin_validate_async(resource_group_name, service_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -176,8 +176,8 @@ def validate_async(resource_group_name, service_name, parameters, custom_headers # # @return [OperationResultContract] operation results. # - def begin_deploy(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_deploy(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -195,8 +195,8 @@ def begin_deploy(resource_group_name, service_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deploy_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_deploy_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_deploy_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -213,24 +213,22 @@ def begin_deploy_with_http_info(resource_group_name, service_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deploy_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_deploy_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::DeployConfigurationParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -290,8 +288,8 @@ def begin_deploy_async(resource_group_name, service_name, parameters, custom_hea # # @return [OperationResultContract] operation results. # - def begin_save(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_save(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_save_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -308,8 +306,8 @@ def begin_save(resource_group_name, service_name, parameters, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_save_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_save_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_save_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_save_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -325,24 +323,22 @@ def begin_save_with_http_info(resource_group_name, service_name, parameters, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_save_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_save_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::SaveConfigurationParameter.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -402,8 +398,8 @@ def begin_save_async(resource_group_name, service_name, parameters, custom_heade # # @return [OperationResultContract] operation results. # - def begin_validate(resource_group_name, service_name, parameters, custom_headers:nil) - response = begin_validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_validate(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_validate_async(resource_group_name, service_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -420,8 +416,8 @@ def begin_validate(resource_group_name, service_name, parameters, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_validate_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) - begin_validate_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! + def begin_validate_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_validate_async(resource_group_name, service_name, parameters, custom_headers).value! end # @@ -437,24 +433,22 @@ def begin_validate_with_http_info(resource_group_name, service_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_validate_async(resource_group_name, service_name, parameters, custom_headers:nil) + def begin_validate_async(resource_group_name, service_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::DeployConfigurationParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb index a65c281f5e..a3953d9494 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_configuration_sync_state.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [TenantConfigurationSyncStateContract] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -63,18 +63,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_policy.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_policy.rb index 2371634f04..63604368ff 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_policy.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/tenant_policy.rb @@ -31,8 +31,8 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get(resource_group_name, service_name, custom_headers:nil) - response = get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def get(resource_group_name, service_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, custom_headers:nil) - get_async(resource_group_name, service_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! end # @@ -60,18 +60,14 @@ def get_with_http_info(resource_group_name, service_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, custom_headers:nil) + def get_async(resource_group_name, service_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -104,7 +100,6 @@ def get_async(resource_group_name, service_name, custom_headers:nil) begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -136,8 +131,8 @@ def get_async(resource_group_name, service_name, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, parameters, if_match, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! nil end @@ -155,8 +150,8 @@ def create_or_update(resource_group_name, service_name, parameters, if_match, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, parameters, if_match, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! end # @@ -173,12 +168,9 @@ def create_or_update_with_http_info(resource_group_name, service_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, parameters, if_match, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -186,16 +178,16 @@ def create_or_update_async(resource_group_name, service_name, parameters, if_mat request_headers = {} - request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/vnd.ms-azure-apim.policy+xml' + # Serialize Request request_mapper = { - client_side_validation: true, required: true, serialized_name: 'parameters', type: { @@ -203,6 +195,7 @@ def create_or_update_async(resource_group_name, service_name, parameters, if_mat } } request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/policy' @@ -247,8 +240,8 @@ def create_or_update_async(resource_group_name, service_name, parameters, if_mat # will be added to the HTTP request. # # - def delete(resource_group_name, service_name, if_match, custom_headers:nil) - response = delete_async(resource_group_name, service_name, if_match, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, if_match, custom_headers).value! nil end @@ -265,8 +258,8 @@ def delete(resource_group_name, service_name, if_match, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, if_match, custom_headers:nil) - delete_async(resource_group_name, service_name, if_match, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, if_match, custom_headers).value! end # @@ -282,19 +275,15 @@ def delete_with_http_info(resource_group_name, service_name, if_match, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, if_match, custom_headers:nil) + def delete_async(resource_group_name, service_name, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_groups.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_groups.rb index 8a1fb5c01c..a03e1f3584 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_groups.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_groups.rb @@ -44,8 +44,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_users(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_users_as_lazy(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_users(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_users_as_lazy(resource_group_name, service_name, uid, filter, top, skip, custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ def list_by_users(resource_group_name, service_name, uid, filter:nil, top:nil, s # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_users_with_http_info(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_users_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_users_with_http_info(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_users_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! end # @@ -99,24 +99,15 @@ def list_by_users_with_http_info(resource_group_name, service_name, uid, filter: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_users_async(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_users_async(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +162,8 @@ def list_by_users_async(resource_group_name, service_name, uid, filter:nil, top: # # @return [GroupCollection] operation results. # - def list_by_users_next(next_page_link, custom_headers:nil) - response = list_by_users_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_users_next(next_page_link, custom_headers = nil) + response = list_by_users_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -186,8 +177,8 @@ def list_by_users_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_users_next_with_http_info(next_page_link, custom_headers:nil) - list_by_users_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_users_next_with_http_info(next_page_link, custom_headers = nil) + list_by_users_next_async(next_page_link, custom_headers).value! end # @@ -200,12 +191,11 @@ def list_by_users_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_users_next_async(next_page_link, custom_headers:nil) + def list_by_users_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -272,12 +262,12 @@ def list_by_users_next_async(next_page_link, custom_headers:nil) # # @return [GroupCollection] which provide lazy access to pages of the response. # - def list_by_users_as_lazy(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_users_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_users_as_lazy(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_users_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_users_next_async(next_page_link, custom_headers:custom_headers) + list_by_users_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_identities.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_identities.rb index 65e044c836..1ad8839657 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_identities.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_identities.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [UserIdentityCollection] operation results. # - def list_by_users(resource_group_name, service_name, uid, custom_headers:nil) - response = list_by_users_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def list_by_users(resource_group_name, service_name, uid, custom_headers = nil) + response = list_by_users_async(resource_group_name, service_name, uid, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def list_by_users(resource_group_name, service_name, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_users_with_http_info(resource_group_name, service_name, uid, custom_headers:nil) - list_by_users_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def list_by_users_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + list_by_users_async(resource_group_name, service_name, uid, custom_headers).value! end # @@ -66,22 +66,15 @@ def list_by_users_with_http_info(resource_group_name, service_name, uid, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_users_async(resource_group_name, service_name, uid, custom_headers:nil) + def list_by_users_async(resource_group_name, service_name, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_subscriptions.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_subscriptions.rb index 7b880d377f..31f4f05812 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_subscriptions.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/user_subscriptions.rb @@ -50,8 +50,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_users(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_users_as_lazy(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_users(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_users_as_lazy(resource_group_name, service_name, uid, filter, top, skip, custom_headers) first_page.get_all_items end @@ -84,8 +84,8 @@ def list_by_users(resource_group_name, service_name, uid, filter:nil, top:nil, s # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_users_with_http_info(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_users_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_users_with_http_info(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_users_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! end # @@ -117,24 +117,15 @@ def list_by_users_with_http_info(resource_group_name, service_name, uid, filter: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_users_async(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_users_async(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,8 +180,8 @@ def list_by_users_async(resource_group_name, service_name, uid, filter:nil, top: # # @return [SubscriptionCollection] operation results. # - def list_by_users_next(next_page_link, custom_headers:nil) - response = list_by_users_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_users_next(next_page_link, custom_headers = nil) + response = list_by_users_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -204,8 +195,8 @@ def list_by_users_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_users_next_with_http_info(next_page_link, custom_headers:nil) - list_by_users_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_users_next_with_http_info(next_page_link, custom_headers = nil) + list_by_users_next_async(next_page_link, custom_headers).value! end # @@ -218,12 +209,11 @@ def list_by_users_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_users_next_async(next_page_link, custom_headers:nil) + def list_by_users_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,12 +287,12 @@ def list_by_users_next_async(next_page_link, custom_headers:nil) # @return [SubscriptionCollection] which provide lazy access to pages of the # response. # - def list_by_users_as_lazy(resource_group_name, service_name, uid, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_users_async(resource_group_name, service_name, uid, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_users_as_lazy(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_users_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_users_next_async(next_page_link, custom_headers:custom_headers) + list_by_users_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/users.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/users.rb index 8fa737b0d7..85cd961fed 100644 --- a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/users.rb +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/users.rb @@ -50,8 +50,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - first_page = list_by_service_as_lazy(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers) + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) first_page.get_all_items end @@ -84,8 +84,8 @@ def list_by_service(resource_group_name, service_name, filter:nil, top:nil, skip # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_with_http_info(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! end # @@ -117,20 +117,14 @@ def list_by_service_with_http_info(resource_group_name, service_name, filter:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? - fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 - fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -187,8 +181,8 @@ def list_by_service_async(resource_group_name, service_name, filter:nil, top:nil # # @return [UserContract] operation results. # - def get(resource_group_name, service_name, uid, custom_headers:nil) - response = get_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def get(resource_group_name, service_name, uid, custom_headers = nil) + response = get_async(resource_group_name, service_name, uid, custom_headers).value! response.body unless response.nil? end @@ -204,8 +198,8 @@ def get(resource_group_name, service_name, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, service_name, uid, custom_headers:nil) - get_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + get_async(resource_group_name, service_name, uid, custom_headers).value! end # @@ -220,22 +214,15 @@ def get_with_http_info(resource_group_name, service_name, uid, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, service_name, uid, custom_headers:nil) + def get_async(resource_group_name, service_name, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -292,8 +279,8 @@ def get_async(resource_group_name, service_name, uid, custom_headers:nil) # will be added to the HTTP request. # # - def create_or_update(resource_group_name, service_name, uid, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, service_name, uid, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers).value! nil end @@ -310,8 +297,8 @@ def create_or_update(resource_group_name, service_name, uid, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers).value! end # @@ -327,28 +314,23 @@ def create_or_update_with_http_info(resource_group_name, service_name, uid, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers:nil) + def create_or_update_async(resource_group_name, service_name, uid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::UserCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -401,8 +383,8 @@ def create_or_update_async(resource_group_name, service_name, uid, parameters, c # # @return [ErrorBodyContract] operation results. # - def update(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil) - response = update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:custom_headers).value! + def update(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! response.body unless response.nil? end @@ -422,8 +404,8 @@ def update(resource_group_name, service_name, uid, parameters, if_match, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil) - update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! end # @@ -442,16 +424,10 @@ def update_with_http_info(resource_group_name, service_name, uid, parameters, if # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers:nil) + def update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -459,13 +435,14 @@ def update_async(resource_group_name, service_name, uid, parameters, if_match, c request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::UserUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -529,8 +506,8 @@ def update_async(resource_group_name, service_name, uid, parameters, if_match, c # # @return [ErrorBodyContract] operation results. # - def delete(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, custom_headers:nil) - response = delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions, custom_headers).value! response.body unless response.nil? end @@ -551,8 +528,8 @@ def delete(resource_group_name, service_name, uid, if_match, delete_subscription # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, custom_headers:nil) - delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:delete_subscriptions, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions, custom_headers).value! end # @@ -572,23 +549,16 @@ def delete_with_http_info(resource_group_name, service_name, uid, if_match, dele # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions:nil, custom_headers:nil) + def delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'if_match is nil' if if_match.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -647,8 +617,8 @@ def delete_async(resource_group_name, service_name, uid, if_match, delete_subscr # # @return [GenerateSsoUrlResult] operation results. # - def generate_sso_url(resource_group_name, service_name, uid, custom_headers:nil) - response = generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def generate_sso_url(resource_group_name, service_name, uid, custom_headers = nil) + response = generate_sso_url_async(resource_group_name, service_name, uid, custom_headers).value! response.body unless response.nil? end @@ -665,8 +635,8 @@ def generate_sso_url(resource_group_name, service_name, uid, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_url_with_http_info(resource_group_name, service_name, uid, custom_headers:nil) - generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:custom_headers).value! + def generate_sso_url_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + generate_sso_url_async(resource_group_name, service_name, uid, custom_headers).value! end # @@ -682,22 +652,15 @@ def generate_sso_url_with_http_info(resource_group_name, service_name, uid, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_url_async(resource_group_name, service_name, uid, custom_headers:nil) + def generate_sso_url_async(resource_group_name, service_name, uid, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -756,8 +719,8 @@ def generate_sso_url_async(resource_group_name, service_name, uid, custom_header # # @return [UserTokenResult] operation results. # - def get_shared_access_token(resource_group_name, service_name, uid, parameters, custom_headers:nil) - response = get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value! + def get_shared_access_token(resource_group_name, service_name, uid, parameters, custom_headers = nil) + response = get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers).value! response.body unless response.nil? end @@ -775,8 +738,8 @@ def get_shared_access_token(resource_group_name, service_name, uid, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_access_token_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers:nil) - get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers:custom_headers).value! + def get_shared_access_token_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers = nil) + get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers).value! end # @@ -793,28 +756,23 @@ def get_shared_access_token_with_http_info(resource_group_name, service_name, ui # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers:nil) + def get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'service_name is nil' if service_name.nil? - fail ArgumentError, "'service_name' should satisfy the constraint - 'MaxLength': '50'" if !service_name.nil? && service_name.length > 50 - fail ArgumentError, "'service_name' should satisfy the constraint - 'MinLength': '1'" if !service_name.nil? && service_name.length < 1 - 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? fail ArgumentError, 'uid is nil' if uid.nil? - fail ArgumentError, "'uid' should satisfy the constraint - 'MaxLength': '256'" if !uid.nil? && uid.length > 256 - fail ArgumentError, "'uid' should satisfy the constraint - 'MinLength': '1'" if !uid.nil? && uid.length < 1 - fail ArgumentError, "'uid' should satisfy the constraint - 'Pattern': '^[^*#&+:<>?]+$'" if !uid.nil? && uid.match(Regexp.new('^^[^*#&+:<>?]+$$')).nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::ApiManagement::Mgmt::V2016_10_10::Models::UserTokenParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -871,8 +829,8 @@ def get_shared_access_token_async(resource_group_name, service_name, uid, parame # # @return [UserCollection] operation results. # - def list_by_service_next(next_page_link, custom_headers:nil) - response = list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -886,8 +844,8 @@ def list_by_service_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) - list_by_service_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! end # @@ -900,12 +858,11 @@ def list_by_service_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_service_next_async(next_page_link, custom_headers:nil) + def list_by_service_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -978,12 +935,12 @@ def list_by_service_next_async(next_page_link, custom_headers:nil) # # @return [UserCollection] which provide lazy access to pages of the response. # - def list_by_service_as_lazy(resource_group_name, service_name, filter:nil, top:nil, skip:nil, custom_headers:nil) - response = list_by_service_async(resource_group_name, service_name, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_service_next_async(next_page_link, custom_headers:custom_headers) + list_by_service_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/version.rb b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/version.rb new file mode 100644 index 0000000000..30548f0dda --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2016_10_10 + VERSION = '0.17.0' +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management.rb new file mode 100644 index 0000000000..14b912bfd0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management.rb @@ -0,0 +1,292 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +require 'uri' +require 'cgi' +require 'date' +require 'json' +require 'base64' +require 'erb' +require 'securerandom' +require 'time' +require 'timeliness' +require 'faraday' +require 'faraday-cookie_jar' +require 'concurrent' +require 'ms_rest' +require '2018-01-01/generated/azure_mgmt_api_management/module_definition' +require 'ms_rest_azure' + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + autoload :Policy, '2018-01-01/generated/azure_mgmt_api_management/policy.rb' + autoload :PolicySnippets, '2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb' + autoload :Regions, '2018-01-01/generated/azure_mgmt_api_management/regions.rb' + autoload :Api, '2018-01-01/generated/azure_mgmt_api_management/api.rb' + autoload :ApiRevisions, '2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb' + autoload :ApiRelease, '2018-01-01/generated/azure_mgmt_api_management/api_release.rb' + autoload :ApiOperation, '2018-01-01/generated/azure_mgmt_api_management/api_operation.rb' + autoload :ApiOperationPolicy, '2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb' + autoload :ApiProduct, '2018-01-01/generated/azure_mgmt_api_management/api_product.rb' + autoload :ApiPolicy, '2018-01-01/generated/azure_mgmt_api_management/api_policy.rb' + autoload :ApiSchema, '2018-01-01/generated/azure_mgmt_api_management/api_schema.rb' + autoload :ApiDiagnostic, '2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb' + autoload :ApiDiagnosticLogger, '2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb' + autoload :ApiIssue, '2018-01-01/generated/azure_mgmt_api_management/api_issue.rb' + autoload :ApiIssueComment, '2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb' + autoload :ApiIssueAttachment, '2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb' + autoload :AuthorizationServer, '2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb' + autoload :Backend, '2018-01-01/generated/azure_mgmt_api_management/backend.rb' + autoload :Certificate, '2018-01-01/generated/azure_mgmt_api_management/certificate.rb' + autoload :ApiManagementOperations, '2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb' + autoload :ApiManagementService, '2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb' + autoload :Diagnostic, '2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb' + autoload :DiagnosticLogger, '2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb' + autoload :EmailTemplate, '2018-01-01/generated/azure_mgmt_api_management/email_template.rb' + autoload :Group, '2018-01-01/generated/azure_mgmt_api_management/group.rb' + autoload :GroupUser, '2018-01-01/generated/azure_mgmt_api_management/group_user.rb' + autoload :IdentityProvider, '2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb' + autoload :Logger, '2018-01-01/generated/azure_mgmt_api_management/logger.rb' + autoload :Notification, '2018-01-01/generated/azure_mgmt_api_management/notification.rb' + autoload :NotificationRecipientUser, '2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb' + autoload :NotificationRecipientEmail, '2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb' + autoload :NetworkStatus, '2018-01-01/generated/azure_mgmt_api_management/network_status.rb' + autoload :OpenIdConnectProvider, '2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb' + autoload :SignInSettings, '2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb' + autoload :SignUpSettings, '2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb' + autoload :DelegationSettings, '2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb' + autoload :Product, '2018-01-01/generated/azure_mgmt_api_management/product.rb' + autoload :ProductApi, '2018-01-01/generated/azure_mgmt_api_management/product_api.rb' + autoload :ProductGroup, '2018-01-01/generated/azure_mgmt_api_management/product_group.rb' + autoload :ProductSubscriptions, '2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb' + autoload :ProductPolicy, '2018-01-01/generated/azure_mgmt_api_management/product_policy.rb' + autoload :Property, '2018-01-01/generated/azure_mgmt_api_management/property.rb' + autoload :QuotaByCounterKeys, '2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb' + autoload :QuotaByPeriodKeys, '2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb' + autoload :Reports, '2018-01-01/generated/azure_mgmt_api_management/reports.rb' + autoload :Subscription, '2018-01-01/generated/azure_mgmt_api_management/subscription.rb' + autoload :TagResource, '2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb' + autoload :Tag, '2018-01-01/generated/azure_mgmt_api_management/tag.rb' + autoload :TagDescription, '2018-01-01/generated/azure_mgmt_api_management/tag_description.rb' + autoload :OperationOperations, '2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb' + autoload :TenantAccess, '2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb' + autoload :TenantAccessGit, '2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb' + autoload :TenantConfiguration, '2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb' + autoload :User, '2018-01-01/generated/azure_mgmt_api_management/user.rb' + autoload :UserGroup, '2018-01-01/generated/azure_mgmt_api_management/user_group.rb' + autoload :UserSubscription, '2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb' + autoload :UserIdentities, '2018-01-01/generated/azure_mgmt_api_management/user_identities.rb' + autoload :ApiVersionSet, '2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb' + autoload :ApiExport, '2018-01-01/generated/azure_mgmt_api_management/api_export.rb' + autoload :ApiManagementClient, '2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb' + + module Models + autoload :ApiManagementServiceListResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb' + autoload :ErrorFieldContract, '2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb' + autoload :ApiManagementServiceGetSsoTokenResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb' + autoload :ErrorResponse, '2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb' + autoload :ApiManagementServiceCheckNameAvailabilityParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb' + autoload :PolicyCollection, '2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb' + autoload :ApiManagementServiceNameAvailabilityResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb' + autoload :PolicySnippetsCollection, '2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb' + autoload :ApiManagementServiceApplyNetworkConfigurationParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb' + autoload :RegionListResult, '2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb' + autoload :ApiManagementServiceUploadCertificateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb' + autoload :ApiExportResult, '2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb' + autoload :HostnameConfigurationOld, '2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb' + autoload :CertificateInformation, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb' + autoload :CertificateConfiguration, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb' + autoload :ApiCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb' + autoload :HostnameConfiguration, '2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb' + autoload :ApiCreateOrUpdateParameter, '2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb' + autoload :VirtualNetworkConfiguration, '2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb' + autoload :OAuth2AuthenticationSettingsContract, '2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb' + autoload :ApiManagementServiceSkuProperties, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb' + autoload :SubscriptionKeyParameterNamesContract, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb' + autoload :AdditionalLocation, '2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb' + autoload :ApiRevisionContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb' + autoload :ApiManagementServiceBackupRestoreParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb' + autoload :ApiRevisionInfoContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb' + autoload :ApiManagementServiceBaseProperties, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb' + autoload :ApiReleaseCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb' + autoload :ApiManagementServiceIdentity, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb' + autoload :OperationCollection, '2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb' + autoload :TagDescriptionCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb' + autoload :RepresentationContract, '2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb' + autoload :ApimResource, '2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb' + autoload :ResponseContract, '2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb' + autoload :TagDescriptionCollection, '2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb' + autoload :OperationUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb' + autoload :ErrorResponseBody, '2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb' + autoload :SchemaCollection, '2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb' + autoload :UserUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb' + autoload :PropertyCollection, '2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb' + autoload :UserTokenResult, '2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb' + autoload :PolicySnippetContract, '2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb' + autoload :UserTokenParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb' + autoload :RegionContract, '2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb' + autoload :UserIdentityCollection, '2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb' + autoload :Resource, '2018-01-01/generated/azure_mgmt_api_management/models/resource.rb' + autoload :UserCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb' + autoload :ApiVersionSetContractDetails, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb' + autoload :ProductEntityBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb' + autoload :TagCreateUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb' + autoload :OperationTagResourceContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb' + autoload :ApiManagementServiceUpdateHostnameParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb' + autoload :TagTagResourceContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb' + autoload :OperationDisplay, '2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb' + autoload :TagResourceCollection, '2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb' + autoload :Operation, '2018-01-01/generated/azure_mgmt_api_management/models/operation.rb' + autoload :ProductCollection, '2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb' + autoload :OperationListResult, '2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb' + autoload :AuthorizationServerCollection, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb' + autoload :EmailTemplateParametersContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb' + autoload :TokenBodyParameterContract, '2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb' + autoload :TagCollection, '2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb' + autoload :BackendAuthorizationHeaderCredentials, '2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb' + autoload :EmailTemplateCollection, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb' + autoload :BackendServiceFabricClusterProperties, '2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb' + autoload :EmailTemplateUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb' + autoload :BackendCredentialsContract, '2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb' + autoload :GroupContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb' + autoload :BackendTlsProperties, '2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb' + autoload :SubscriptionUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb' + autoload :DeployConfigurationParameters, '2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb' + autoload :GroupCollection, '2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb' + autoload :BackendUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb' + autoload :GroupCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb' + autoload :AccessInformationContract, '2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb' + autoload :GroupUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb' + autoload :CertificateCreateOrUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb' + autoload :UserIdentityContract, '2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb' + autoload :ApiCreateOrUpdatePropertiesWsdlSelector, '2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb' + autoload :UserEntityBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb' + autoload :AuthenticationSettingsContract, '2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb' + autoload :SubscriptionCreateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb' + autoload :ApiRevisionCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb' + autoload :UserCollection, '2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb' + autoload :ApiVersionSetEntityBase, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb' + autoload :RequestReportCollection, '2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb' + autoload :RequestContract, '2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb' + autoload :IdentityProviderList, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb' + autoload :ApiVersionSetCollection, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb' + autoload :IdentityProviderUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb' + autoload :IssueCommentCollection, '2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb' + autoload :IdentityProviderBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb' + autoload :LoggerCollection, '2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb' + autoload :LoggerUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb' + autoload :GenerateSsoUrlResult, '2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb' + autoload :RecipientsContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb' + autoload :TagResourceContract, '2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb' + autoload :RequestReportRecordContract, '2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb' + autoload :OperationResultContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb' + autoload :NotificationCollection, '2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb' + autoload :AuthorizationServerContractBaseProperties, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb' + autoload :ReportCollection, '2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb' + autoload :BackendProperties, '2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb' + autoload :RecipientUserCollection, '2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb' + autoload :BackendBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb' + autoload :ReportRecordContract, '2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb' + autoload :AccessInformationUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb' + autoload :RecipientEmailCollection, '2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb' + autoload :ConnectivityStatusContract, '2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb' + autoload :ApiEntityBaseContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb' + autoload :NetworkStatusContract, '2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb' + autoload :ParameterContract, '2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb' + autoload :NetworkStatusContractByLocation, '2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb' + autoload :IssueCollection, '2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb' + autoload :QuotaCounterValueContract, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb' + autoload :DiagnosticCollection, '2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb' + autoload :OpenIdConnectProviderCollection, '2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb' + autoload :SaveConfigurationParameter, '2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb' + autoload :OpenidConnectProviderUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb' + autoload :X509CertificateName, '2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb' + autoload :QuotaCounterCollection, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb' + autoload :BackendCollection, '2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb' + autoload :TermsOfServiceProperties, '2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb' + autoload :ApiUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb' + autoload :QuotaCounterContract, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb' + autoload :OperationEntityBaseContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb' + autoload :SubscriptionsDelegationSettingsProperties, '2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb' + autoload :TenantConfigurationSyncStateContract, '2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb' + autoload :RegistrationDelegationSettingsProperties, '2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb' + autoload :BackendProxyContract, '2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb' + autoload :QuotaCounterValueContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb' + autoload :ApiVersionSetUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb' + autoload :ProductUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb' + autoload :OperationResultLogItemContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb' + autoload :PropertyEntityBaseParameters, '2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb' + autoload :IssueAttachmentCollection, '2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb' + autoload :SubscriptionCollection, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb' + autoload :CertificateCollection, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb' + autoload :PropertyUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb' + autoload :PolicyContract, '2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb' + autoload :ApiContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb' + autoload :ApiContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb' + autoload :ApiReleaseContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb' + autoload :OperationContract, '2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb' + autoload :SchemaContract, '2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb' + autoload :IssueContract, '2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb' + autoload :IssueCommentContract, '2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb' + autoload :IssueAttachmentContract, '2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb' + autoload :LoggerContract, '2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb' + autoload :DiagnosticContract, '2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb' + autoload :ProductTagResourceContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb' + autoload :ApiTagResourceContractProperties, '2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb' + autoload :ProductContract, '2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb' + autoload :AuthorizationServerContract, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb' + autoload :AuthorizationServerUpdateContract, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb' + autoload :BackendContract, '2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb' + autoload :BackendReconnectContract, '2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb' + autoload :CertificateContract, '2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb' + autoload :ApiManagementServiceResource, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb' + autoload :ApiManagementServiceUpdateParameters, '2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb' + autoload :EmailTemplateContract, '2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb' + autoload :GroupContract, '2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb' + autoload :UserContract, '2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb' + autoload :IdentityProviderContract, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb' + autoload :NotificationContract, '2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb' + autoload :RecipientUserContract, '2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb' + autoload :RecipientEmailContract, '2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb' + autoload :OpenidConnectProviderContract, '2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb' + autoload :PortalSigninSettings, '2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb' + autoload :PortalSignupSettings, '2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb' + autoload :PortalDelegationSettings, '2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb' + autoload :SubscriptionContract, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb' + autoload :PropertyContract, '2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb' + autoload :TagContract, '2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb' + autoload :TagDescriptionContract, '2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb' + autoload :ApiVersionSetContract, '2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb' + autoload :PolicyContentFormat, '2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb' + autoload :Protocol, '2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb' + autoload :ContentFormat, '2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb' + autoload :SoapApiType, '2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb' + autoload :ApiType, '2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb' + autoload :State, '2018-01-01/generated/azure_mgmt_api_management/models/state.rb' + autoload :LoggerType, '2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb' + autoload :ProductState, '2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb' + autoload :GrantType, '2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb' + autoload :AuthorizationMethod, '2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb' + autoload :ClientAuthenticationMethod, '2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb' + autoload :BearerTokenSendingMethod, '2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb' + autoload :BackendProtocol, '2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb' + autoload :HostnameType, '2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb' + autoload :SkuType, '2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb' + autoload :VirtualNetworkType, '2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb' + autoload :NameAvailabilityReason, '2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb' + autoload :GroupType, '2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb' + autoload :Confirmation, '2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb' + autoload :UserState, '2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb' + autoload :IdentityProviderType, '2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb' + autoload :ConnectivityStatusType, '2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb' + autoload :SubscriptionState, '2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb' + autoload :AsyncOperationStatus, '2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb' + autoload :KeyType, '2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb' + autoload :VersioningScheme, '2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb' + autoload :TemplateName, '2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb' + autoload :NotificationName, '2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb' + autoload :PolicyScopeContract, '2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb' + autoload :ExportFormat, '2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb' + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb new file mode 100644 index 0000000000..be18ebe8bf --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api.rb @@ -0,0 +1,1099 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Api + include MsRestAzure + + # + # Creates and initializes a new instance of the Api class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all APIs of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource + # in response + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_api_version_set = false, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, expand_api_version_set, custom_headers) + first_page.get_all_items + end + + # + # Lists all APIs of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource + # in response + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_api_version_set = false, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_api_version_set, custom_headers).value! + end + + # + # Lists all APIs of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource + # in response + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_api_version_set = false, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version,'expandApiVersionSet' => expand_api_version_set}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiContract] operation results. + # + def get(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, custom_headers).value! + end + + # + # Gets the details of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates new or updates existing specified API of the API Management service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates new or updates existing specified API of the API Management service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! + end + + # + # Creates new or updates existing specified API of the API Management service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [ApiCreateOrUpdateParameter] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiCreateOrUpdateParameter.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the specified API of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [ApiUpdateContract] API Update Contract parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the specified API of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [ApiUpdateContract] API Update Contract parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the specified API of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [ApiUpdateContract] API Update Contract parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiUpdateContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified API of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_revisions [Boolean] Delete all revisions of the Api. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, if_match, delete_revisions = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, if_match, delete_revisions, custom_headers).value! + nil + end + + # + # Deletes the specified API of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_revisions [Boolean] Delete all revisions of the Api. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, if_match, delete_revisions = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, if_match, delete_revisions, custom_headers).value! + end + + # + # Deletes the specified API of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_revisions [Boolean] Delete all revisions of the Api. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, if_match, delete_revisions = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'deleteRevisions' => delete_revisions,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of apis associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | eq | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_tags(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_tags_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of apis associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | eq | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_tags_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_tags_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of apis associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | eq | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_tags_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all APIs of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all APIs of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all APIs of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of apis associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagResourceCollection] operation results. + # + def list_by_tags_next(next_page_link, custom_headers = nil) + response = list_by_tags_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of apis associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_tags_next_with_http_info(next_page_link, custom_headers = nil) + list_by_tags_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of apis associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_tags_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all APIs of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_api_version_set [Boolean] Include full ApiVersionSet resource + # in response + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiCollection] which provide lazy access to pages of the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_api_version_set = false, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_api_version_set, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists a collection of apis associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | eq | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagResourceCollection] which provide lazy access to pages of the + # response. + # + def list_by_tags_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_tags_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_tags_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb new file mode 100644 index 0000000000..16e77d7d7c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic.rb @@ -0,0 +1,818 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiDiagnostic + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiDiagnostic class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all diagnostics of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all diagnostics of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all diagnostics of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the Diagnostic for an API specified + # by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, diagnostic_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, diagnostic_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the Diagnostic for an API specified + # by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, diagnostic_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the Diagnostic for an API specified + # by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, diagnostic_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the Diagnostic for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticContract] operation results. + # + def get(resource_group_name, service_name, api_id, diagnostic_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, diagnostic_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the Diagnostic for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, diagnostic_id, custom_headers).value! + end + + # + # Gets the details of the Diagnostic for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, diagnostic_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new Diagnostic for an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new Diagnostic for an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers).value! + end + + # + # Creates a new Diagnostic for an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the Diagnostic for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Diagnostic Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the Diagnostic for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Diagnostic Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the Diagnostic for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Diagnostic Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, api_id, diagnostic_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified Diagnostic from an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, diagnostic_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, diagnostic_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified Diagnostic from an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, diagnostic_id, if_match, custom_headers).value! + end + + # + # Deletes the specified Diagnostic from an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, diagnostic_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all diagnostics of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all diagnostics of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all diagnostics of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all diagnostics of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb new file mode 100644 index 0000000000..edc4bd094b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb @@ -0,0 +1,600 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiDiagnosticLogger + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiDiagnosticLogger class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, api_id, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, api_id, diagnostic_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, api_id, diagnostic_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, api_id, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id,'diagnosticId' => diagnostic_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Checks that logger entity specified by identifier is associated with the + # diagnostics entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers).value! + response.body unless response.nil? + end + + # + # Checks that logger entity specified by identifier is associated with the + # diagnostics entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers).value! + end + + # + # Checks that logger entity specified by identifier is associated with the + # diagnostics entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Attaches a logger to a dignostic for an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers).value! + response.body unless response.nil? + end + + # + # Attaches a logger to a dignostic for an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers).value! + end + + # + # Attaches a logger to a dignostic for an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified Logger from Diagnostic for an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers).value! + nil + end + + # + # Deletes the specified Logger from Diagnostic for an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers).value! + end + + # + # Deletes the specified Logger from Diagnostic for an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'diagnosticId' => diagnostic_id,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all loggers assosiated with the specified Diagnostic of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, api_id, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, api_id, diagnostic_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb new file mode 100644 index 0000000000..17ea970102 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_export.rb @@ -0,0 +1,140 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiExport + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiExport class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the details of the API specified by its identifier in the format + # specified to the Storage Blob with SAS Key valid for 5 minutes. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param format [ExportFormat] Format in which to export the Api Details to the + # Storage Blob with Sas Key valid for 5 minutes. Possible values include: + # 'Swagger', 'Wsdl', 'Wadl' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiExportResult] operation results. + # + def get(resource_group_name, service_name, api_id, format, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, format, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the API specified by its identifier in the format + # specified to the Storage Blob with SAS Key valid for 5 minutes. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param format [ExportFormat] Format in which to export the Api Details to the + # Storage Blob with Sas Key valid for 5 minutes. Possible values include: + # 'Swagger', 'Wsdl', 'Wadl' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, format, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, format, custom_headers).value! + end + + # + # Gets the details of the API specified by its identifier in the format + # specified to the Storage Blob with SAS Key valid for 5 minutes. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param format [ExportFormat] Format in which to export the Api Details to the + # Storage Blob with Sas Key valid for 5 minutes. Possible values include: + # 'Swagger', 'Wsdl', 'Wadl' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, format, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'format is nil' if format.nil? + export = 'true' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'format' => format,'export' => export,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiExportResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb new file mode 100644 index 0000000000..d5b7dcffb3 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue.rb @@ -0,0 +1,714 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiIssue + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiIssue class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all issues assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | state | eq | | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all issues assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | state | eq | | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all issues assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | state | eq | | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the Issue for an API specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, issue_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the Issue for an API specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, issue_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the Issue for an API specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the Issue for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueContract] operation results. + # + def get(resource_group_name, service_name, api_id, issue_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, issue_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the Issue for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, issue_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, issue_id, custom_headers).value! + end + + # + # Gets the details of the Issue for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, issue_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new Issue for an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param parameters [IssueContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, issue_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, issue_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new Issue for an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param parameters [IssueContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, issue_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, issue_id, parameters, if_match, custom_headers).value! + end + + # + # Creates a new Issue for an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param parameters [IssueContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, issue_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified Issue from an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, issue_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, issue_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified Issue from an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, issue_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, issue_id, if_match, custom_headers).value! + end + + # + # Deletes the specified Issue from an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, issue_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all issues assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all issues assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all issues assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all issues assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | state | eq | | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueCollection] which provide lazy access to pages of the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb new file mode 100644 index 0000000000..4fdcf56969 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_attachment.rb @@ -0,0 +1,751 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiIssueAttachment + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiIssueAttachment class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, api_id, issue_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, api_id, issue_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueAttachmentCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the issue Attachment for an API + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the issue Attachment for an API + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the issue Attachment for an API + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'attachment_id is nil' if attachment_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'attachmentId' => attachment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the issue Attachment for an API specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueAttachmentContract] operation results. + # + def get(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the issue Attachment for an API specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers).value! + end + + # + # Gets the details of the issue Attachment for an API specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, issue_id, attachment_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'attachment_id is nil' if attachment_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'attachmentId' => attachment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueAttachmentContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new Attachment for the Issue in an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param parameters [IssueAttachmentContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueAttachmentContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, issue_id, attachment_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, issue_id, attachment_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new Attachment for the Issue in an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param parameters [IssueAttachmentContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, issue_id, attachment_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, issue_id, attachment_id, parameters, if_match, custom_headers).value! + end + + # + # Creates a new Attachment for the Issue in an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param parameters [IssueAttachmentContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, issue_id, attachment_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'attachment_id is nil' if attachment_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueAttachmentContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'attachmentId' => attachment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueAttachmentContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueAttachmentContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified comment from an Issue. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, issue_id, attachment_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, issue_id, attachment_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified comment from an Issue. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, issue_id, attachment_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, issue_id, attachment_id, if_match, custom_headers).value! + end + + # + # Deletes the specified comment from an Issue. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param attachment_id [String] Attachment identifier within an Issue. Must be + # unique in the current Issue. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, issue_id, attachment_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'attachment_id is nil' if attachment_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'attachmentId' => attachment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueAttachmentCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueAttachmentCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueAttachmentCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, api_id, issue_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb new file mode 100644 index 0000000000..aee3b4cbc7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_issue_comment.rb @@ -0,0 +1,748 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiIssueComment + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiIssueComment class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, api_id, issue_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, api_id, issue_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCommentCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the issue Comment for an API + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the issue Comment for an API + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the issue Comment for an API + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'comment_id is nil' if comment_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'commentId' => comment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the issue Comment for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueCommentContract] operation results. + # + def get(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the issue Comment for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers).value! + end + + # + # Gets the details of the issue Comment for an API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, issue_id, comment_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'comment_id is nil' if comment_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'commentId' => comment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCommentContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new Comment for the Issue in an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param parameters [IssueCommentContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueCommentContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, issue_id, comment_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, issue_id, comment_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new Comment for the Issue in an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param parameters [IssueCommentContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, issue_id, comment_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, issue_id, comment_id, parameters, if_match, custom_headers).value! + end + + # + # Creates a new Comment for the Issue in an API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param parameters [IssueCommentContract] Create parameters. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, issue_id, comment_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'comment_id is nil' if comment_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCommentContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'commentId' => comment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCommentContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCommentContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified comment from an Issue. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, issue_id, comment_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, issue_id, comment_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified comment from an Issue. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, issue_id, comment_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, issue_id, comment_id, if_match, custom_headers).value! + end + + # + # Deletes the specified comment from an Issue. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param comment_id [String] Comment identifier within an Issue. Must be unique + # in the current Issue. + # @param if_match [String] ETag of the Issue Entity. ETag should match the + # current entity state from the header response of the GET request or it should + # be * for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, issue_id, comment_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'issue_id is nil' if issue_id.nil? + fail ArgumentError, 'comment_id is nil' if comment_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'issueId' => issue_id,'commentId' => comment_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueCommentCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IssueCommentCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all comments for the Issue assosiated with the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param issue_id [String] Issue identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IssueCommentCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, api_id, issue_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, api_id, issue_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb new file mode 100644 index 0000000000..ccbfb6204d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_client.rb @@ -0,0 +1,363 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # A service client - single point of access to the REST API. + # + class ApiManagementClient < MsRestAzure::AzureServiceClient + include MsRestAzure + include MsRestAzure::Serialization + + # @return [String] the base URI of the service. + attr_accessor :base_url + + # @return Credentials needed for the client to connect to Azure. + attr_reader :credentials + + # @return [String] Version of the API to be used with the client request. + attr_reader :api_version + + # @return [String] Subscription credentials which uniquely identify + # Microsoft Azure subscription. The subscription ID forms part of the URI + # for every service call. + attr_accessor :subscription_id + + # @return [String] Gets or sets the preferred language for the response. + attr_accessor :accept_language + + # @return [Integer] Gets or sets the retry timeout in seconds for Long + # Running Operations. Default value is 30. + attr_accessor :long_running_operation_retry_timeout + + # @return [Boolean] When set to true a unique x-ms-client-request-id value + # is generated and included in each request. Default is true. + attr_accessor :generate_client_request_id + + # @return [Policy] policy + attr_reader :policy + + # @return [PolicySnippets] policy_snippets + attr_reader :policy_snippets + + # @return [Regions] regions + attr_reader :regions + + # @return [Api] api + attr_reader :api + + # @return [ApiRevisions] api_revisions + attr_reader :api_revisions + + # @return [ApiRelease] api_release + attr_reader :api_release + + # @return [ApiOperation] api_operation + attr_reader :api_operation + + # @return [ApiOperationPolicy] api_operation_policy + attr_reader :api_operation_policy + + # @return [ApiProduct] api_product + attr_reader :api_product + + # @return [ApiPolicy] api_policy + attr_reader :api_policy + + # @return [ApiSchema] api_schema + attr_reader :api_schema + + # @return [ApiDiagnostic] api_diagnostic + attr_reader :api_diagnostic + + # @return [ApiDiagnosticLogger] api_diagnostic_logger + attr_reader :api_diagnostic_logger + + # @return [ApiIssue] api_issue + attr_reader :api_issue + + # @return [ApiIssueComment] api_issue_comment + attr_reader :api_issue_comment + + # @return [ApiIssueAttachment] api_issue_attachment + attr_reader :api_issue_attachment + + # @return [AuthorizationServer] authorization_server + attr_reader :authorization_server + + # @return [Backend] backend + attr_reader :backend + + # @return [Certificate] certificate + attr_reader :certificate + + # @return [ApiManagementOperations] api_management_operations + attr_reader :api_management_operations + + # @return [ApiManagementService] api_management_service + attr_reader :api_management_service + + # @return [Diagnostic] diagnostic + attr_reader :diagnostic + + # @return [DiagnosticLogger] diagnostic_logger + attr_reader :diagnostic_logger + + # @return [EmailTemplate] email_template + attr_reader :email_template + + # @return [Group] group + attr_reader :group + + # @return [GroupUser] group_user + attr_reader :group_user + + # @return [IdentityProvider] identity_provider + attr_reader :identity_provider + + # @return [Logger] logger + attr_reader :logger + + # @return [Notification] notification + attr_reader :notification + + # @return [NotificationRecipientUser] notification_recipient_user + attr_reader :notification_recipient_user + + # @return [NotificationRecipientEmail] notification_recipient_email + attr_reader :notification_recipient_email + + # @return [NetworkStatus] network_status + attr_reader :network_status + + # @return [OpenIdConnectProvider] open_id_connect_provider + attr_reader :open_id_connect_provider + + # @return [SignInSettings] sign_in_settings + attr_reader :sign_in_settings + + # @return [SignUpSettings] sign_up_settings + attr_reader :sign_up_settings + + # @return [DelegationSettings] delegation_settings + attr_reader :delegation_settings + + # @return [Product] product + attr_reader :product + + # @return [ProductApi] product_api + attr_reader :product_api + + # @return [ProductGroup] product_group + attr_reader :product_group + + # @return [ProductSubscriptions] product_subscriptions + attr_reader :product_subscriptions + + # @return [ProductPolicy] product_policy + attr_reader :product_policy + + # @return [Property] property + attr_reader :property + + # @return [QuotaByCounterKeys] quota_by_counter_keys + attr_reader :quota_by_counter_keys + + # @return [QuotaByPeriodKeys] quota_by_period_keys + attr_reader :quota_by_period_keys + + # @return [Reports] reports + attr_reader :reports + + # @return [Subscription] subscription + attr_reader :subscription + + # @return [TagResource] tag_resource + attr_reader :tag_resource + + # @return [Tag] tag + attr_reader :tag + + # @return [TagDescription] tag_description + attr_reader :tag_description + + # @return [OperationOperations] operation_operations + attr_reader :operation_operations + + # @return [TenantAccess] tenant_access + attr_reader :tenant_access + + # @return [TenantAccessGit] tenant_access_git + attr_reader :tenant_access_git + + # @return [TenantConfiguration] tenant_configuration + attr_reader :tenant_configuration + + # @return [User] user + attr_reader :user + + # @return [UserGroup] user_group + attr_reader :user_group + + # @return [UserSubscription] user_subscription + attr_reader :user_subscription + + # @return [UserIdentities] user_identities + attr_reader :user_identities + + # @return [ApiVersionSet] api_version_set + attr_reader :api_version_set + + # @return [ApiExport] api_export + attr_reader :api_export + + # + # Creates initializes a new instance of the ApiManagementClient class. + # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client. + # @param base_url [String] the base URI of the service. + # @param options [Array] filters to be applied to the HTTP requests. + # + def initialize(credentials = nil, base_url = nil, options = nil) + super(credentials, options) + @base_url = base_url || 'https://management.azure.com' + + fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil? + @credentials = credentials + + @policy = Policy.new(self) + @policy_snippets = PolicySnippets.new(self) + @regions = Regions.new(self) + @api = Api.new(self) + @api_revisions = ApiRevisions.new(self) + @api_release = ApiRelease.new(self) + @api_operation = ApiOperation.new(self) + @api_operation_policy = ApiOperationPolicy.new(self) + @api_product = ApiProduct.new(self) + @api_policy = ApiPolicy.new(self) + @api_schema = ApiSchema.new(self) + @api_diagnostic = ApiDiagnostic.new(self) + @api_diagnostic_logger = ApiDiagnosticLogger.new(self) + @api_issue = ApiIssue.new(self) + @api_issue_comment = ApiIssueComment.new(self) + @api_issue_attachment = ApiIssueAttachment.new(self) + @authorization_server = AuthorizationServer.new(self) + @backend = Backend.new(self) + @certificate = Certificate.new(self) + @api_management_operations = ApiManagementOperations.new(self) + @api_management_service = ApiManagementService.new(self) + @diagnostic = Diagnostic.new(self) + @diagnostic_logger = DiagnosticLogger.new(self) + @email_template = EmailTemplate.new(self) + @group = Group.new(self) + @group_user = GroupUser.new(self) + @identity_provider = IdentityProvider.new(self) + @logger = Logger.new(self) + @notification = Notification.new(self) + @notification_recipient_user = NotificationRecipientUser.new(self) + @notification_recipient_email = NotificationRecipientEmail.new(self) + @network_status = NetworkStatus.new(self) + @open_id_connect_provider = OpenIdConnectProvider.new(self) + @sign_in_settings = SignInSettings.new(self) + @sign_up_settings = SignUpSettings.new(self) + @delegation_settings = DelegationSettings.new(self) + @product = Product.new(self) + @product_api = ProductApi.new(self) + @product_group = ProductGroup.new(self) + @product_subscriptions = ProductSubscriptions.new(self) + @product_policy = ProductPolicy.new(self) + @property = Property.new(self) + @quota_by_counter_keys = QuotaByCounterKeys.new(self) + @quota_by_period_keys = QuotaByPeriodKeys.new(self) + @reports = Reports.new(self) + @subscription = Subscription.new(self) + @tag_resource = TagResource.new(self) + @tag = Tag.new(self) + @tag_description = TagDescription.new(self) + @operation_operations = OperationOperations.new(self) + @tenant_access = TenantAccess.new(self) + @tenant_access_git = TenantAccessGit.new(self) + @tenant_configuration = TenantConfiguration.new(self) + @user = User.new(self) + @user_group = UserGroup.new(self) + @user_subscription = UserSubscription.new(self) + @user_identities = UserIdentities.new(self) + @api_version_set = ApiVersionSet.new(self) + @api_export = ApiExport.new(self) + @api_version = '2018-01-01' + @accept_language = 'en-US' + @long_running_operation_retry_timeout = 30 + @generate_client_request_id = true + add_telemetry + end + + # + # Makes a request and returns the body of the response. + # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. + # @param path [String] the path, relative to {base_url}. + # @param options [Hash{String=>String}] specifying any request options like :body. + # @return [Hash{String=>String}] containing the body of the response. + # Example: + # + # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}" + # path = "/path" + # options = { + # body: request_content, + # query_params: {'api-version' => '2016-02-01'} + # } + # result = @client.make_request(:put, path, options) + # + def make_request(method, path, options = {}) + result = make_request_with_http_info(method, path, options) + result.body unless result.nil? + end + + # + # Makes a request and returns the operation response. + # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. + # @param path [String] the path, relative to {base_url}. + # @param options [Hash{String=>String}] specifying any request options like :body. + # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status. + # + def make_request_with_http_info(method, path, options = {}) + result = make_request_async(method, path, options).value! + result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body) + result + end + + # + # Makes a request asynchronously. + # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. + # @param path [String] the path, relative to {base_url}. + # @param options [Hash{String=>String}] specifying any request options like :body. + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def make_request_async(method, path, options = {}) + fail ArgumentError, 'method is nil' if method.nil? + fail ArgumentError, 'path is nil' if path.nil? + + request_url = options[:base_url] || @base_url + + request_headers = @request_headers + request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? + options.merge!({headers: request_headers.merge(options[:headers] || {})}) + options.merge!({credentials: @credentials}) unless @credentials.nil? + + super(request_url, method, path, options) + end + + + private + # + # Adds telemetry information. + # + def add_telemetry + sdk_information = 'azure_mgmt_api_management' + if defined? Azure::ApiManagement::Mgmt::V2018_01_01_preview::VERSION + sdk_information = "#{sdk_information}/#{Azure::ApiManagement::Mgmt::V2018_01_01_preview::VERSION}" + end + add_user_agent_information(sdk_information) + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb new file mode 100644 index 0000000000..e16bba260c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_operations.rb @@ -0,0 +1,220 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiManagementOperations + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiManagementOperations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) + first_page.get_all_items + end + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! + end + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(custom_headers = nil) + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'providers/Microsoft.ApiManagement/operations' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all of the available REST API operations of the Microsoft.ApiManagement + # provider. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationListResult] which provide lazy access to pages of the + # response. + # + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb new file mode 100644 index 0000000000..550cd83fbe --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_management_service.rb @@ -0,0 +1,1885 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiManagementService + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiManagementService class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Restores a backup of an API Management service created using the + # ApiManagementService_Backup operation on the current service. This is a long + # running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the Restore API Management service from backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def restore(resource_group_name, service_name, parameters, custom_headers = nil) + response = restore_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the Restore API Management service from backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def restore_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_restore_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Creates a backup of the API Management service to the given Azure Storage + # Account. This is long running operation and could take several minutes to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the ApiManagementService_Backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def backup(resource_group_name, service_name, parameters, custom_headers = nil) + response = backup_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the ApiManagementService_Backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def backup_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_backup_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Creates or updates an API Management service. This is long running operation + # and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceResource] Parameters supplied to the + # CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceResource] Parameters supplied to the + # CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Updates an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateParameters] Parameters supplied + # to the CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def update(resource_group_name, service_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateParameters] Parameters supplied + # to the CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def update_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_update_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets an API Management service resource description. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets an API Management service resource description. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets an API Management service resource description. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, custom_headers = nil) + response = delete_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Deletes an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, custom_headers = nil) + delete_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Deletes an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # List all API Management services within a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + first_page.get_all_items + end + + # + # List all API Management services within a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! + end + + # + # List all API Management services within a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_resource_group_async(resource_group_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) + first_page.get_all_items + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(custom_headers = nil) + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the Single-Sign-On token for the API Management Service which is valid + # for 5 Minutes. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceGetSsoTokenResult] operation results. + # + def get_sso_token(resource_group_name, service_name, custom_headers = nil) + response = get_sso_token_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the Single-Sign-On token for the API Management Service which is valid + # for 5 Minutes. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_sso_token_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_sso_token_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the Single-Sign-On token for the API Management Service which is valid + # for 5 Minutes. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_sso_token_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceGetSsoTokenResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Checks availability and correctness of a name for an API Management service. + # + # @param parameters [ApiManagementServiceCheckNameAvailabilityParameters] + # Parameters supplied to the CheckNameAvailability operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceNameAvailabilityResult] operation results. + # + def check_name_availability(parameters, custom_headers = nil) + response = check_name_availability_async(parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Checks availability and correctness of a name for an API Management service. + # + # @param parameters [ApiManagementServiceCheckNameAvailabilityParameters] + # Parameters supplied to the CheckNameAvailability operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_name_availability_with_http_info(parameters, custom_headers = nil) + check_name_availability_async(parameters, custom_headers).value! + end + + # + # Checks availability and correctness of a name for an API Management service. + # + # @param parameters [ApiManagementServiceCheckNameAvailabilityParameters] + # Parameters supplied to the CheckNameAvailability operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_name_availability_async(parameters, custom_headers = nil) + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceCheckNameAvailabilityParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceNameAvailabilityResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the Microsoft.ApiManagement resource running in the Virtual network + # to pick the updated network settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceApplyNetworkConfigurationParameters] + # Parameters supplied to the Apply Network Configuration operation. If the + # parameters are empty, all the regions in which the Api Management service is + # deployed will be updated sequentially without incurring downtime in the + # region. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def apply_network_configuration_updates(resource_group_name, service_name, parameters = nil, custom_headers = nil) + response = apply_network_configuration_updates_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceApplyNetworkConfigurationParameters] + # Parameters supplied to the Apply Network Configuration operation. If the + # parameters are empty, all the regions in which the Api Management service is + # deployed will be updated sequentially without incurring downtime in the + # region. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def apply_network_configuration_updates_async(resource_group_name, service_name, parameters = nil, custom_headers = nil) + # Send request + promise = begin_apply_network_configuration_updates_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Upload Custom Domain SSL certificate for an API Management service. This + # operation will be deprecated in future releases. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUploadCertificateParameters] + # Parameters supplied to the Upload SSL certificate for an API Management + # service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CertificateInformation] operation results. + # + def upload_certificate(resource_group_name, service_name, parameters, custom_headers = nil) + response = upload_certificate_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Upload Custom Domain SSL certificate for an API Management service. This + # operation will be deprecated in future releases. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUploadCertificateParameters] + # Parameters supplied to the Upload SSL certificate for an API Management + # service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def upload_certificate_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + upload_certificate_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Upload Custom Domain SSL certificate for an API Management service. This + # operation will be deprecated in future releases. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUploadCertificateParameters] + # Parameters supplied to the Upload SSL certificate for an API Management + # service operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def upload_certificate_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceUploadCertificateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/updatecertificate' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateInformation.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates, updates, or deletes the custom hostnames for an API Management + # service. The custom hostname can be applied to the Proxy and Portal endpoint. + # This is a long running operation and could take several minutes to complete. + # This operation will be deprecated in the next version update. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateHostnameParameters] Parameters + # supplied to the UpdateHostname operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def update_hostname(resource_group_name, service_name, parameters, custom_headers = nil) + response = update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateHostnameParameters] Parameters + # supplied to the UpdateHostname operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def update_hostname_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Restores a backup of an API Management service created using the + # ApiManagementService_Backup operation on the current service. This is a long + # running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the Restore API Management service from backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def begin_restore(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_restore_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Restores a backup of an API Management service created using the + # ApiManagementService_Backup operation on the current service. This is a long + # running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the Restore API Management service from backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_restore_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_restore_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Restores a backup of an API Management service created using the + # ApiManagementService_Backup operation on the current service. This is a long + # running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the Restore API Management service from backup operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_restore_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceBackupRestoreParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a backup of the API Management service to the given Azure Storage + # Account. This is long running operation and could take several minutes to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the ApiManagementService_Backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def begin_backup(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_backup_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a backup of the API Management service to the given Azure Storage + # Account. This is long running operation and could take several minutes to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the ApiManagementService_Backup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_backup_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Creates a backup of the API Management service to the given Azure Storage + # Account. This is long running operation and could take several minutes to + # complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceBackupRestoreParameters] Parameters + # supplied to the ApiManagementService_Backup operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_backup_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceBackupRestoreParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates an API Management service. This is long running operation + # and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceResource] Parameters supplied to the + # CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def begin_create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates an API Management service. This is long running operation + # and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceResource] Parameters supplied to the + # CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Creates or updates an API Management service. This is long running operation + # and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceResource] Parameters supplied to the + # CreateOrUpdate API Management service operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateParameters] Parameters supplied + # to the CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def begin_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateParameters] Parameters supplied + # to the CreateOrUpdate API Management service operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_update_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Updates an existing API Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateParameters] Parameters supplied + # to the CreateOrUpdate API Management service operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the Microsoft.ApiManagement resource running in the Virtual network + # to pick the updated network settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceApplyNetworkConfigurationParameters] + # Parameters supplied to the Apply Network Configuration operation. If the + # parameters are empty, all the regions in which the Api Management service is + # deployed will be updated sequentially without incurring downtime in the + # region. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def begin_apply_network_configuration_updates(resource_group_name, service_name, parameters = nil, custom_headers = nil) + response = begin_apply_network_configuration_updates_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates the Microsoft.ApiManagement resource running in the Virtual network + # to pick the updated network settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceApplyNetworkConfigurationParameters] + # Parameters supplied to the Apply Network Configuration operation. If the + # parameters are empty, all the regions in which the Api Management service is + # deployed will be updated sequentially without incurring downtime in the + # region. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_apply_network_configuration_updates_with_http_info(resource_group_name, service_name, parameters = nil, custom_headers = nil) + begin_apply_network_configuration_updates_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Updates the Microsoft.ApiManagement resource running in the Virtual network + # to pick the updated network settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceApplyNetworkConfigurationParameters] + # Parameters supplied to the Apply Network Configuration operation. If the + # parameters are empty, all the regions in which the Api Management service is + # deployed will be updated sequentially without incurring downtime in the + # region. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_apply_network_configuration_updates_async(resource_group_name, service_name, parameters = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceApplyNetworkConfigurationParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates, updates, or deletes the custom hostnames for an API Management + # service. The custom hostname can be applied to the Proxy and Portal endpoint. + # This is a long running operation and could take several minutes to complete. + # This operation will be deprecated in the next version update. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateHostnameParameters] Parameters + # supplied to the UpdateHostname operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceResource] operation results. + # + def begin_update_hostname(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates, updates, or deletes the custom hostnames for an API Management + # service. The custom hostname can be applied to the Proxy and Portal endpoint. + # This is a long running operation and could take several minutes to complete. + # This operation will be deprecated in the next version update. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateHostnameParameters] Parameters + # supplied to the UpdateHostname operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_update_hostname_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Creates, updates, or deletes the custom hostnames for an API Management + # service. The custom hostname can be applied to the Proxy and Portal endpoint. + # This is a long running operation and could take several minutes to complete. + # This operation will be deprecated in the next version update. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [ApiManagementServiceUpdateHostnameParameters] Parameters + # supplied to the UpdateHostname operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_update_hostname_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceUpdateHostnameParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/updatehostname' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 202 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceResource.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # List all API Management services within a resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceListResult] operation results. + # + def list_by_resource_group_next(next_page_link, custom_headers = nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # List all API Management services within a resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_resource_group_next_async(next_page_link, custom_headers).value! + end + + # + # List all API Management services within a resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiManagementServiceListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # List all API Management services within a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceListResult] which provide lazy access to pages + # of the response. + # + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_resource_group_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists all API Management services within an Azure subscription. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiManagementServiceListResult] which provide lazy access to pages + # of the response. + # + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb new file mode 100644 index 0000000000..74e3042aa2 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation.rb @@ -0,0 +1,849 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiOperation + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiOperation class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of the operations for the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_api(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of the operations for the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of the operations for the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the API operation specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the API operation specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the API operation specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the API Operation specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationContract] operation results. + # + def get(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the API Operation specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + end + + # + # Gets the details of the API Operation specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new operation in the API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [OperationContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new operation in the API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [OperationContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! + end + + # + # Creates a new operation in the API or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [OperationContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the operation in the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [OperationUpdateContract] API Operation Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the operation in the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [OperationUpdateContract] API Operation Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the operation in the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [OperationUpdateContract] API Operation Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationUpdateContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified operation in the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified operation in the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! + end + + # + # Deletes the specified operation in the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of the operations for the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationCollection] operation results. + # + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of the operations for the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of the operations for the specified API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of the operations for the specified API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationCollection] which provide lazy access to pages of the + # response. + # + def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_api_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb new file mode 100644 index 0000000000..436a071a5e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_operation_policy.rb @@ -0,0 +1,591 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiOperationPolicy + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiOperationPolicy class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Get the list of policy configuration at the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyCollection] operation results. + # + def list_by_operation(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = list_by_operation_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the list of policy configuration at the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + list_by_operation_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + end + + # + # Get the list of policy configuration at the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_operation_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the API operation policy specified by + # its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the API operation policy specified by + # its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the API operation policy specified by + # its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get the policy configuration at the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def get(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the policy configuration at the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, operation_id, custom_headers).value! + end + + # + # Get the policy configuration at the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, operation_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates policy configuration for the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, operation_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates policy configuration for the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, operation_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates policy configuration for the API Operation level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, operation_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + policy_id = 'policy' + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the policy configuration at the Api Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the policy configuration at the Api Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers).value! + end + + # + # Deletes the policy configuration at the Api Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, operation_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb new file mode 100644 index 0000000000..d9981104e8 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_policy.rb @@ -0,0 +1,556 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiPolicy + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiPolicy class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Get the policy configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyCollection] operation results. + # + def list_by_api(resource_group_name, service_name, api_id, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the policy configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, custom_headers).value! + end + + # + # Get the policy configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_async(resource_group_name, service_name, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the API policy specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the API policy specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the API policy specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get the policy configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def get(resource_group_name, service_name, api_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the policy configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, custom_headers).value! + end + + # + # Get the policy configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates policy configuration for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates policy configuration for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates policy configuration for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + policy_id = 'policy' + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the policy configuration at the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the policy configuration at the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, if_match, custom_headers).value! + end + + # + # Deletes the policy configuration at the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + policy_id = 'policy' + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb new file mode 100644 index 0000000000..6c419032d0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_product.rb @@ -0,0 +1,262 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiProduct + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiProduct class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all Products, which the API is part of. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_apis(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all Products, which the API is part of. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_apis_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_apis_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all Products, which the API is part of. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_apis_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all Products, which the API is part of. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProductCollection] operation results. + # + def list_by_apis_next(next_page_link, custom_headers = nil) + response = list_by_apis_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all Products, which the API is part of. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_apis_next_with_http_info(next_page_link, custom_headers = nil) + list_by_apis_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all Products, which the API is part of. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_apis_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all Products, which the API is part of. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProductCollection] which provide lazy access to pages of the + # response. + # + def list_by_apis_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_apis_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_apis_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb new file mode 100644 index 0000000000..dc392377c9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_release.rb @@ -0,0 +1,837 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiRelease + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiRelease class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # |notes|ge le eq ne gt lt|substringof contains startswith endswith| + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # |notes|ge le eq ne gt lt|substringof contains startswith endswith| + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # |notes|ge le eq ne gt lt|substringof contains startswith endswith| + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Returns the etag of an API release. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, release_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, release_id, custom_headers).value! + nil + end + + # + # Returns the etag of an API release. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, release_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, release_id, custom_headers).value! + end + + # + # Returns the etag of an API release. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, release_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'release_id is nil' if release_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'apiId' => api_id,'releaseId' => release_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Returns the details of an API release. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiReleaseContract] operation results. + # + def get(resource_group_name, service_name, api_id, release_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, release_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Returns the details of an API release. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, release_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, release_id, custom_headers).value! + end + + # + # Returns the details of an API release. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, release_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'release_id is nil' if release_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'apiId' => api_id,'releaseId' => release_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new Release for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param parameters [ApiReleaseContract] Create parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiReleaseContract] operation results. + # + def create(resource_group_name, service_name, api_id, release_id, parameters, custom_headers = nil) + response = create_async(resource_group_name, service_name, api_id, release_id, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new Release for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param parameters [ApiReleaseContract] Create parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_with_http_info(resource_group_name, service_name, api_id, release_id, parameters, custom_headers = nil) + create_async(resource_group_name, service_name, api_id, release_id, parameters, custom_headers).value! + end + + # + # Creates a new Release for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param parameters [ApiReleaseContract] Create parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_async(resource_group_name, service_name, api_id, release_id, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'release_id is nil' if release_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'apiId' => api_id,'releaseId' => release_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the release of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param parameters [ApiReleaseContract] API Release Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, api_id, release_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, api_id, release_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the release of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param parameters [ApiReleaseContract] API Release Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, api_id, release_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, api_id, release_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the release of the API specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param parameters [ApiReleaseContract] API Release Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, api_id, release_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'release_id is nil' if release_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'apiId' => api_id,'releaseId' => release_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified release in the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, release_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, release_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified release in the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, release_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, release_id, if_match, custom_headers).value! + end + + # + # Deletes the specified release in the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param release_id [String] Release identifier within an API. Must be unique + # in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, release_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'release_id is nil' if release_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'apiId' => api_id,'releaseId' => release_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiReleaseCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiReleaseCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all releases of an API. An API release is created when making an API + # Revision current. Releases are also used to rollback to previous revisions. + # Results will be paged and can be constrained by the $top and $skip + # parameters. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # |notes|ge le eq ne gt lt|substringof contains startswith endswith| + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiReleaseCollection] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb new file mode 100644 index 0000000000..9c8ca64c9c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_revisions.rb @@ -0,0 +1,270 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiRevisions + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiRevisions class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all revisions of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # + # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith| + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all revisions of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # + # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith| + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all revisions of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # + # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith| + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'apiId' => api_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiRevisionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all revisions of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiRevisionCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all revisions of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all revisions of an API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiRevisionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all revisions of an API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # + # |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith| + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiRevisionCollection] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb new file mode 100644 index 0000000000..6001b3737b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_schema.rb @@ -0,0 +1,692 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiSchema + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiSchema class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_api(resource_group_name, service_name, api_id, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, custom_headers) + first_page.get_all_items + end + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_with_http_info(resource_group_name, service_name, api_id, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, custom_headers).value! + end + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_async(resource_group_name, service_name, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SchemaCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the schema specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, api_id, schema_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, api_id, schema_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the schema specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, api_id, schema_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, api_id, schema_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the schema specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, api_id, schema_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'schema_id is nil' if schema_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'schemaId' => schema_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SchemaContract] operation results. + # + def get(resource_group_name, service_name, api_id, schema_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, schema_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, schema_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, schema_id, custom_headers).value! + end + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, schema_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'schema_id is nil' if schema_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'schemaId' => schema_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SchemaContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates schema configuration for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param parameters [SchemaContract] The schema contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SchemaContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, schema_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, schema_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates schema configuration for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param parameters [SchemaContract] The schema contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, schema_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, schema_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates schema configuration for the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param parameters [SchemaContract] The schema contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, schema_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'schema_id is nil' if schema_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SchemaContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'schemaId' => schema_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SchemaContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SchemaContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the schema configuration at the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, schema_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, schema_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the schema configuration at the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, schema_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, schema_id, if_match, custom_headers).value! + end + + # + # Deletes the schema configuration at the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param schema_id [String] Schema identifier within an API. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, schema_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'schema_id is nil' if schema_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'schemaId' => schema_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get the schema configuration at the API level. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SchemaCollection] operation results. + # + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the schema configuration at the API level. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! + end + + # + # Get the schema configuration at the API level. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SchemaCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get the schema configuration at the API level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SchemaCollection] which provide lazy access to pages of the + # response. + # + def list_by_api_as_lazy(resource_group_name, service_name, api_id, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_api_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb new file mode 100644 index 0000000000..1bc514a2c9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_version_set.rb @@ -0,0 +1,826 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ApiVersionSet + include MsRestAzure + + # + # Creates and initializes a new instance of the ApiVersionSet class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the Api Version Set specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, version_set_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, version_set_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the Api Version Set specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, version_set_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, version_set_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the Api Version Set specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, version_set_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'version_set_id is nil' if version_set_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'versionSetId' => version_set_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the Api Version Set specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiVersionSetContract] operation results. + # + def get(resource_group_name, service_name, version_set_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, version_set_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the Api Version Set specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, version_set_id, custom_headers = nil) + get_async(resource_group_name, service_name, version_set_id, custom_headers).value! + end + + # + # Gets the details of the Api Version Set specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, version_set_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'version_set_id is nil' if version_set_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'versionSetId' => version_set_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates a Api Version Set. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param parameters [ApiVersionSetContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiVersionSetContract] operation results. + # + def create_or_update(resource_group_name, service_name, version_set_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates a Api Version Set. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param parameters [ApiVersionSetContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, version_set_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates a Api Version Set. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param parameters [ApiVersionSetContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, version_set_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'version_set_id is nil' if version_set_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'versionSetId' => version_set_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the Api VersionSet specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param parameters [ApiVersionSetUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the Api VersionSet specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param parameters [ApiVersionSetUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the Api VersionSet specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param parameters [ApiVersionSetUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, version_set_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'version_set_id is nil' if version_set_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'versionSetId' => version_set_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific Api Version Set. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, version_set_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, version_set_id, if_match, custom_headers).value! + nil + end + + # + # Deletes specific Api Version Set. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, version_set_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, version_set_id, if_match, custom_headers).value! + end + + # + # Deletes specific Api Version Set. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param version_set_id [String] Api Version Set identifier. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, version_set_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'version_set_id is nil' if version_set_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'versionSetId' => version_set_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiVersionSetCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiVersionSetCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of API Version Sets in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiVersionSetCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb new file mode 100644 index 0000000000..26e7654e88 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/authorization_server.rb @@ -0,0 +1,781 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class AuthorizationServer + include MsRestAzure + + # + # Creates and initializes a new instance of the AuthorizationServer class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the authorizationServer specified by + # its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, authsid, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, authsid, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the authorizationServer specified by + # its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, authsid, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, authsid, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the authorizationServer specified by + # its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, authsid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'authsid is nil' if authsid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'authsid' => authsid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the authorization server specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AuthorizationServerContract] operation results. + # + def get(resource_group_name, service_name, authsid, custom_headers = nil) + response = get_async(resource_group_name, service_name, authsid, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the authorization server specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, authsid, custom_headers = nil) + get_async(resource_group_name, service_name, authsid, custom_headers).value! + end + + # + # Gets the details of the authorization server specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, authsid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'authsid is nil' if authsid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'authsid' => authsid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates new authorization server or updates an existing authorization server. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param parameters [AuthorizationServerContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AuthorizationServerContract] operation results. + # + def create_or_update(resource_group_name, service_name, authsid, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates new authorization server or updates an existing authorization server. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param parameters [AuthorizationServerContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, authsid, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! + end + + # + # Creates new authorization server or updates an existing authorization server. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param parameters [AuthorizationServerContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, authsid, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'authsid is nil' if authsid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'authsid' => authsid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the authorization server specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param parameters [AuthorizationServerUpdateContract] OAuth2 Server settings + # Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the authorization server specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param parameters [AuthorizationServerUpdateContract] OAuth2 Server settings + # Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the authorization server specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param parameters [AuthorizationServerUpdateContract] OAuth2 Server settings + # Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, authsid, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'authsid is nil' if authsid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerUpdateContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'authsid' => authsid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific authorization server instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, authsid, if_match, custom_headers).value! + nil + end + + # + # Deletes specific authorization server instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, authsid, if_match, custom_headers).value! + end + + # + # Deletes specific authorization server instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param authsid [String] Identifier of the authorization server. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, authsid, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'authsid is nil' if authsid.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'authsid' => authsid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AuthorizationServerCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AuthorizationServerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of authorization servers defined within a service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AuthorizationServerCollection] which provide lazy access to pages of + # the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb new file mode 100644 index 0000000000..5356ae50bf --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/backend.rb @@ -0,0 +1,888 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Backend + include MsRestAzure + + # + # Creates and initializes a new instance of the Backend class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of backends in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of backends in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of backends in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the backend specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, backendid, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, backendid, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the backend specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, backendid, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, backendid, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the backend specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, backendid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'backendid is nil' if backendid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'backendid' => backendid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the backend specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [BackendContract] operation results. + # + def get(resource_group_name, service_name, backendid, custom_headers = nil) + response = get_async(resource_group_name, service_name, backendid, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the backend specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, backendid, custom_headers = nil) + get_async(resource_group_name, service_name, backendid, custom_headers).value! + end + + # + # Gets the details of the backend specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, backendid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'backendid is nil' if backendid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'backendid' => backendid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates a backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [BackendContract] operation results. + # + def create_or_update(resource_group_name, service_name, backendid, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates a backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, backendid, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates a backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, backendid, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'backendid is nil' if backendid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'backendid' => backendid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an existing backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates an existing backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers).value! + end + + # + # Updates an existing backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, backendid, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'backendid is nil' if backendid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'backendid' => backendid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, backendid, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, backendid, if_match, custom_headers).value! + end + + # + # Deletes the specified backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, backendid, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'backendid is nil' if backendid.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'backendid' => backendid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Notifies the APIM proxy to create a new connection to the backend after the + # specified timeout. If no timeout was specified, timeout of 2 minutes is used. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendReconnectContract] Reconnect request parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def reconnect(resource_group_name, service_name, backendid, parameters = nil, custom_headers = nil) + response = reconnect_async(resource_group_name, service_name, backendid, parameters, custom_headers).value! + nil + end + + # + # Notifies the APIM proxy to create a new connection to the backend after the + # specified timeout. If no timeout was specified, timeout of 2 minutes is used. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendReconnectContract] Reconnect request parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def reconnect_with_http_info(resource_group_name, service_name, backendid, parameters = nil, custom_headers = nil) + reconnect_async(resource_group_name, service_name, backendid, parameters, custom_headers).value! + end + + # + # Notifies the APIM proxy to create a new connection to the backend after the + # specified timeout. If no timeout was specified, timeout of 2 minutes is used. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param backendid [String] Identifier of the Backend entity. Must be unique in + # the current API Management service instance. + # @param parameters [BackendReconnectContract] Reconnect request parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def reconnect_async(resource_group_name, service_name, backendid, parameters = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'backendid is nil' if backendid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendReconnectContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}/reconnect' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'backendid' => backendid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 202 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of backends in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [BackendCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of backends in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of backends in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::BackendCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of backends in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [BackendCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb new file mode 100644 index 0000000000..531d830697 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/certificate.rb @@ -0,0 +1,697 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Certificate + include MsRestAzure + + # + # Creates and initializes a new instance of the Certificate class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |----------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | subject | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | expirationDate | ge, le, eq, ne, gt, lt | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |----------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | subject | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | expirationDate | ge, le, eq, ne, gt, lt | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |----------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | subject | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | expirationDate | ge, le, eq, ne, gt, lt | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the certificate specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, certificate_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, certificate_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the certificate specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, certificate_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, certificate_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the certificate specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, certificate_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'certificateId' => certificate_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the certificate specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CertificateContract] operation results. + # + def get(resource_group_name, service_name, certificate_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, certificate_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the certificate specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, certificate_id, custom_headers = nil) + get_async(resource_group_name, service_name, certificate_id, custom_headers).value! + end + + # + # Gets the details of the certificate specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, certificate_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'certificateId' => certificate_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates the certificate being used for authentication with the + # backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param parameters [CertificateCreateOrUpdateParameters] Create or Update + # parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CertificateContract] operation results. + # + def create_or_update(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates the certificate being used for authentication with the + # backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param parameters [CertificateCreateOrUpdateParameters] Create or Update + # parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates the certificate being used for authentication with the + # backend. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param parameters [CertificateCreateOrUpdateParameters] Create or Update + # parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, certificate_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateCreateOrUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'certificateId' => certificate_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes specific certificate. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers).value! + nil + end + + # + # Deletes specific certificate. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers).value! + end + + # + # Deletes specific certificate. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param certificate_id [String] Identifier of the certificate entity. Must be + # unique in the current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, certificate_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'certificate_id is nil' if certificate_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'certificateId' => certificate_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CertificateCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::CertificateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of all certificates in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |----------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | subject | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | expirationDate | ge, le, eq, ne, gt, lt | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CertificateCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb new file mode 100644 index 0000000000..f52ecaa252 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/delegation_settings.rb @@ -0,0 +1,404 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class DelegationSettings + include MsRestAzure + + # + # Creates and initializes a new instance of the DelegationSettings class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the entity state (Etag) version of the DelegationSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the DelegationSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the DelegationSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PortalDelegationSettings] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Get Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalDelegationSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Update Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalDelegationSettings] Update Delegation settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + nil + end + + # + # Update Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalDelegationSettings] Update Delegation settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + end + + # + # Update Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalDelegationSettings] Update Delegation settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalDelegationSettings.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Create or Update Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalDelegationSettings] Create or update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PortalDelegationSettings] operation results. + # + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or Update Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalDelegationSettings] Create or update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Create or Update Delegation settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalDelegationSettings] Create or update parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalDelegationSettings.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalDelegationSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb new file mode 100644 index 0000000000..a3a15f16c7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic.rb @@ -0,0 +1,774 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Diagnostic + include MsRestAzure + + # + # Creates and initializes a new instance of the Diagnostic class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all diagnostics of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all diagnostics of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists all diagnostics of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the Diagnostic specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, diagnostic_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, diagnostic_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the Diagnostic specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, diagnostic_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, diagnostic_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the Diagnostic specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, diagnostic_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the Diagnostic specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticContract] operation results. + # + def get(resource_group_name, service_name, diagnostic_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, diagnostic_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the Diagnostic specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, diagnostic_id, custom_headers = nil) + get_async(resource_group_name, service_name, diagnostic_id, custom_headers).value! + end + + # + # Gets the details of the Diagnostic specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, diagnostic_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a new Diagnostic or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticContract] operation results. + # + def create_or_update(resource_group_name, service_name, diagnostic_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a new Diagnostic or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, diagnostic_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers).value! + end + + # + # Creates a new Diagnostic or updates an existing one. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, diagnostic_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the Diagnostic specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Diagnostic Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the Diagnostic specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Diagnostic Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the Diagnostic specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param parameters [DiagnosticContract] Diagnostic Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, diagnostic_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified Diagnostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, diagnostic_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, diagnostic_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified Diagnostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, diagnostic_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, diagnostic_id, if_match, custom_headers).value! + end + + # + # Deletes the specified Diagnostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, diagnostic_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all diagnostics of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all diagnostics of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all diagnostics of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DiagnosticCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all diagnostics of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DiagnosticCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb new file mode 100644 index 0000000000..1c24a1cec8 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/diagnostic_logger.rb @@ -0,0 +1,577 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class DiagnosticLogger + include MsRestAzure + + # + # Creates and initializes a new instance of the DiagnosticLogger class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, diagnostic_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, diagnostic_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'diagnosticId' => diagnostic_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skip' => skip}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Checks that logger entity specified by identifier is associated with the + # diagnostics entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers).value! + response.body unless response.nil? + end + + # + # Checks that logger entity specified by identifier is associated with the + # diagnostics entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers).value! + end + + # + # Checks that logger entity specified by identifier is associated with the + # diagnostics entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Attaches a logger to a dignostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerContract] operation results. + # + def create_or_update(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers).value! + response.body unless response.nil? + end + + # + # Attaches a logger to a dignostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers).value! + end + + # + # Attaches a logger to a dignostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified Logger from Diagnostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + response = delete_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers).value! + nil + end + + # + # Deletes the specified Logger from Diagnostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + delete_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers).value! + end + + # + # Deletes the specified Logger from Diagnostic. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, diagnostic_id, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'diagnostic_id is nil' if diagnostic_id.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'diagnosticId' => diagnostic_id,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all loggers assosiated with the specified Diagnostic of the API + # Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param diagnostic_id [String] Diagnostic identifier. Must be unique in the + # current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + # | type | eq | | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, diagnostic_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, diagnostic_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb new file mode 100644 index 0000000000..16deb6aec6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/email_template.rb @@ -0,0 +1,873 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class EmailTemplate + include MsRestAzure + + # + # Creates and initializes a new instance of the EmailTemplate class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, top, skip, custom_headers).value! + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the email template specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, template_name, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, template_name, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the email template specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, template_name, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, template_name, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the email template specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, template_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'template_name is nil' if template_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'templateName' => template_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the email template specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EmailTemplateContract] operation results. + # + def get(resource_group_name, service_name, template_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, template_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the email template specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, template_name, custom_headers = nil) + get_async(resource_group_name, service_name, template_name, custom_headers).value! + end + + # + # Gets the details of the email template specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, template_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'template_name is nil' if template_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'templateName' => template_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an Email Template. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param parameters [EmailTemplateUpdateParameters] Email Template update + # parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EmailTemplateContract] operation results. + # + def create_or_update(resource_group_name, service_name, template_name, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, template_name, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates an Email Template. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param parameters [EmailTemplateUpdateParameters] Email Template update + # parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, template_name, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, template_name, parameters, if_match, custom_headers).value! + end + + # + # Updates an Email Template. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param parameters [EmailTemplateUpdateParameters] Email Template update + # parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, template_name, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'template_name is nil' if template_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'templateName' => template_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the specific Email Template. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param parameters [EmailTemplateUpdateParameters] Update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, template_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, template_name, parameters, custom_headers).value! + nil + end + + # + # Updates the specific Email Template. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param parameters [EmailTemplateUpdateParameters] Update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, template_name, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, template_name, parameters, custom_headers).value! + end + + # + # Updates the specific Email Template. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param parameters [EmailTemplateUpdateParameters] Update parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, template_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'template_name is nil' if template_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'templateName' => template_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Reset the Email Template to default template provided by the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, template_name, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, template_name, if_match, custom_headers).value! + nil + end + + # + # Reset the Email Template to default template provided by the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, template_name, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, template_name, if_match, custom_headers).value! + end + + # + # Reset the Email Template to default template provided by the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param template_name [TemplateName] Email Template Name Identifier. Possible + # values include: 'applicationApprovedNotificationMessage', + # 'accountClosedDeveloper', + # 'quotaLimitApproachingDeveloperNotificationMessage', + # 'newDeveloperNotificationMessage', 'emailChangeIdentityDefault', + # 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + # 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + # 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + # 'passwordResetByAdminNotificationMessage', + # 'rejectDeveloperNotificationMessage', 'requestDeveloperNotificationMessage' + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, template_name, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'template_name is nil' if template_name.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'templateName' => template_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EmailTemplateCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::EmailTemplateCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [EmailTemplateCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb new file mode 100644 index 0000000000..4806ece962 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group.rb @@ -0,0 +1,801 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Group + include MsRestAzure + + # + # Creates and initializes a new instance of the Group class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of groups defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of groups defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of groups defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the group specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, group_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, group_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the group specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, group_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, group_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the group specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, group_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the group specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupContract] operation results. + # + def get(resource_group_name, service_name, group_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, group_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the group specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, group_id, custom_headers = nil) + get_async(resource_group_name, service_name, group_id, custom_headers).value! + end + + # + # Gets the details of the group specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, group_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates a group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param parameters [GroupCreateParameters] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupContract] operation results. + # + def create_or_update(resource_group_name, service_name, group_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates a group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param parameters [GroupCreateParameters] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, group_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates a group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param parameters [GroupCreateParameters] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, group_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCreateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the group specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param parameters [GroupUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the group specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param parameters [GroupUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the group specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param parameters [GroupUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, group_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific group of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, group_id, if_match, custom_headers).value! + nil + end + + # + # Deletes specific group of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, group_id, if_match, custom_headers).value! + end + + # + # Deletes specific group of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, group_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of groups defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of groups defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of groups defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of groups defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupCollection] which provide lazy access to pages of the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb new file mode 100644 index 0000000000..a5f8870e4a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/group_user.rb @@ -0,0 +1,617 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class GroupUser + include MsRestAzure + + # + # Creates and initializes a new instance of the GroupUser class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, group_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, group_id, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Checks that user entity specified by identifier is associated with the group + # entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, group_id, uid, custom_headers).value! + response.body unless response.nil? + end + + # + # Checks that user entity specified by identifier is associated with the group + # entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, group_id, uid, custom_headers).value! + end + + # + # Checks that user entity specified by identifier is associated with the group + # entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Adds a user to the specified group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserContract] operation results. + # + def create(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = create_async(resource_group_name, service_name, group_id, uid, custom_headers).value! + response.body unless response.nil? + end + + # + # Adds a user to the specified group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + create_async(resource_group_name, service_name, group_id, uid, custom_headers).value! + end + + # + # Adds a user to the specified group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Remove existing user from existing group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, group_id, uid, custom_headers = nil) + response = delete_async(resource_group_name, service_name, group_id, uid, custom_headers).value! + nil + end + + # + # Remove existing user from existing group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers = nil) + delete_async(resource_group_name, service_name, group_id, uid, custom_headers).value! + end + + # + # Remove existing user from existing group. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, group_id, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'groupId' => group_id,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of the members of the group, specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserCollection] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, service_name, group_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, group_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb new file mode 100644 index 0000000000..506f1540d9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/identity_provider.rb @@ -0,0 +1,775 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class IdentityProvider + include MsRestAzure + + # + # Creates and initializes a new instance of the IdentityProvider class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the identityProvider specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the identityProvider specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the identityProvider specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name,'identityProviderName' => identity_provider_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the configuration details of the identity Provider configured in + # specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IdentityProviderContract] operation results. + # + def get(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the configuration details of the identity Provider configured in + # specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + get_async(resource_group_name, service_name, identity_provider_name, custom_headers).value! + end + + # + # Gets the configuration details of the identity Provider configured in + # specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, identity_provider_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name,'identityProviderName' => identity_provider_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates the IdentityProvider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param parameters [IdentityProviderContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IdentityProviderContract] operation results. + # + def create_or_update(resource_group_name, service_name, identity_provider_name, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates the IdentityProvider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param parameters [IdentityProviderContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates the IdentityProvider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param parameters [IdentityProviderContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'identityProviderName' => identity_provider_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an existing IdentityProvider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param parameters [IdentityProviderUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates an existing IdentityProvider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param parameters [IdentityProviderUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers).value! + end + + # + # Updates an existing IdentityProvider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param parameters [IdentityProviderUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, identity_provider_name, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'identityProviderName' => identity_provider_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified identity provider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified identity provider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers).value! + end + + # + # Deletes the specified identity provider configuration. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param identity_provider_name [IdentityProviderType] Identity Provider Type + # identifier. Possible values include: 'facebook', 'google', 'microsoft', + # 'twitter', 'aad', 'aadB2C' + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, identity_provider_name, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'identity_provider_name is nil' if identity_provider_name.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'identityProviderName' => identity_provider_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IdentityProviderList] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::IdentityProviderList.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of Identity Provider configured in the specified service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [IdentityProviderList] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb new file mode 100644 index 0000000000..a7df35bec4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/logger.rb @@ -0,0 +1,786 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Logger + include MsRestAzure + + # + # Creates and initializes a new instance of the Logger class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of loggers in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of loggers in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of loggers in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the logger specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, loggerid, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, loggerid, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the logger specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, loggerid, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, loggerid, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the logger specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the logger specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerContract] operation results. + # + def get(resource_group_name, service_name, loggerid, custom_headers = nil) + response = get_async(resource_group_name, service_name, loggerid, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the logger specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, loggerid, custom_headers = nil) + get_async(resource_group_name, service_name, loggerid, custom_headers).value! + end + + # + # Gets the details of the logger specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, loggerid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates a logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param parameters [LoggerContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerContract] operation results. + # + def create_or_update(resource_group_name, service_name, loggerid, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates a logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param parameters [LoggerContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates a logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param parameters [LoggerContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, loggerid, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an existing logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param parameters [LoggerUpdateContract] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates an existing logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param parameters [LoggerUpdateContract] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers).value! + end + + # + # Updates an existing logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param parameters [LoggerUpdateContract] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, loggerid, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerUpdateContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers).value! + end + + # + # Deletes the specified logger. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param loggerid [String] Logger identifier. Must be unique in the API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, loggerid, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'loggerid is nil' if loggerid.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'loggerid' => loggerid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of loggers in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of loggers in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of loggers in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::LoggerCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of loggers in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [LoggerCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb new file mode 100644 index 0000000000..81b7b5a5a6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_contract.rb @@ -0,0 +1,75 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Tenant access information contract of the API Management service. + # + class AccessInformationContract + + include MsRestAzure + + # @return [String] Identifier. + attr_accessor :id + + # @return [String] Primary access key. + attr_accessor :primary_key + + # @return [String] Secondary access key. + attr_accessor :secondary_key + + # @return [Boolean] Tenant access information of the API Management + # service. + attr_accessor :enabled + + + # + # Mapper for AccessInformationContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AccessInformationContract', + type: { + name: 'Composite', + class_name: 'AccessInformationContract', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + primary_key: { + required: false, + serialized_name: 'primaryKey', + type: { + name: 'String' + } + }, + secondary_key: { + required: false, + serialized_name: 'secondaryKey', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb new file mode 100644 index 0000000000..67a27fd9f6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/access_information_update_parameters.rb @@ -0,0 +1,46 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Tenant access information update parameters of the API Management + # service. + # + class AccessInformationUpdateParameters + + include MsRestAzure + + # @return [Boolean] Tenant access information of the API Management + # service. + attr_accessor :enabled + + + # + # Mapper for AccessInformationUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AccessInformationUpdateParameters', + type: { + name: 'Composite', + class_name: 'AccessInformationUpdateParameters', + model_properties: { + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb new file mode 100644 index 0000000000..32877a0f84 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/additional_location.rb @@ -0,0 +1,122 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Description of an additional API Management resource location. + # + class AdditionalLocation + + include MsRestAzure + + # @return [String] The location name of the additional region among Azure + # Data center regions. + attr_accessor :location + + # @return [ApiManagementServiceSkuProperties] SKU properties of the API + # Management service. + attr_accessor :sku + + # @return [Array] Public Static Load Balanced IP addresses of the + # API Management service in the additional location. Available only for + # Basic, Standard and Premium SKU. + attr_accessor :public_ipaddresses + + # @return [Array] Private Static Load Balanced IP addresses of + # the API Management service which is deployed in an Internal Virtual + # Network in a particular additional location. Available only for Basic, + # Standard and Premium SKU. + attr_accessor :private_ipaddresses + + # @return [VirtualNetworkConfiguration] Virtual network configuration for + # the location. + attr_accessor :virtual_network_configuration + + # @return [String] Gateway URL of the API Management service in the + # Region. + attr_accessor :gateway_regional_url + + + # + # Mapper for AdditionalLocation class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AdditionalLocation', + type: { + name: 'Composite', + class_name: 'AdditionalLocation', + model_properties: { + location: { + required: true, + serialized_name: 'location', + type: { + name: 'String' + } + }, + sku: { + required: true, + serialized_name: 'sku', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceSkuProperties' + } + }, + public_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'publicIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + private_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'privateIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + virtual_network_configuration: { + required: false, + serialized_name: 'virtualNetworkConfiguration', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConfiguration' + } + }, + gateway_regional_url: { + required: false, + read_only: true, + serialized_name: 'gatewayRegionalUrl', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb new file mode 100644 index 0000000000..39dab8210e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Api list representation. + # + class ApiCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ApiCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ApiCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiCollection', + type: { + name: 'Composite', + class_name: 'ApiCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApiContractElementType', + type: { + name: 'Composite', + class_name: 'ApiContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb new file mode 100644 index 0000000000..4c4c143312 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract.rb @@ -0,0 +1,267 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API details. + # + class ApiContract < Resource + + include MsRestAzure + + # @return [String] Description of the API. May include HTML formatting + # tags. + attr_accessor :description + + # @return [AuthenticationSettingsContract] Collection of authentication + # settings included into this API. + attr_accessor :authentication_settings + + # @return [SubscriptionKeyParameterNamesContract] Protocols over which + # API is made available. + attr_accessor :subscription_key_parameter_names + + # @return [ApiType] Type of API. Possible values include: 'http', 'soap' + attr_accessor :api_type + + # @return [String] Describes the Revision of the Api. If no value is + # provided, default revision 1 is created + attr_accessor :api_revision + + # @return [String] Indicates the Version identifier of the API if the API + # is versioned + attr_accessor :api_version + + # @return [Boolean] Indicates if API revision is current api revision. + attr_accessor :is_current + + # @return [Boolean] Indicates if API revision is accessible via the + # gateway. + attr_accessor :is_online + + # @return [String] Description of the Api Revision. + attr_accessor :api_revision_description + + # @return [String] Description of the Api Version. + attr_accessor :api_version_description + + # @return [String] A resource identifier for the related ApiVersionSet. + attr_accessor :api_version_set_id + + # @return [String] API name. + attr_accessor :display_name + + # @return [String] Absolute URL of the backend service implementing this + # API. + attr_accessor :service_url + + # @return [String] Relative URL uniquely identifying this API and all of + # its resource paths within the API Management service instance. It is + # appended to the API endpoint base URL specified during the service + # instance creation to form a public URL for this API. + attr_accessor :path + + # @return [Array] Describes on which protocols the operations + # in this API can be invoked. + attr_accessor :protocols + + # @return [ApiVersionSetContractDetails] + attr_accessor :api_version_set + + + # + # Mapper for ApiContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiContract', + type: { + name: 'Composite', + class_name: 'ApiContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + authentication_settings: { + required: false, + serialized_name: 'properties.authenticationSettings', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract' + } + }, + subscription_key_parameter_names: { + required: false, + serialized_name: 'properties.subscriptionKeyParameterNames', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract' + } + }, + api_type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + serialized_name: 'properties.apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + api_version: { + required: false, + serialized_name: 'properties.apiVersion', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'properties.isCurrent', + type: { + name: 'Boolean' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'properties.isOnline', + type: { + name: 'Boolean' + } + }, + api_revision_description: { + required: false, + serialized_name: 'properties.apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_description: { + required: false, + serialized_name: 'properties.apiVersionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set_id: { + required: false, + serialized_name: 'properties.apiVersionSetId', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + service_url: { + required: false, + serialized_name: 'properties.serviceUrl', + constraints: { + MaxLength: 2000, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + path: { + required: true, + serialized_name: 'properties.path', + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + protocols: { + required: false, + serialized_name: 'properties.protocols', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProtocolElementType', + type: { + name: 'Enum', + module: 'Protocol' + } + } + } + }, + api_version_set: { + required: false, + serialized_name: 'properties.apiVersionSet', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContractDetails' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb new file mode 100644 index 0000000000..dc33fcaf15 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_contract_properties.rb @@ -0,0 +1,204 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Entity Properties + # + class ApiContractProperties < ApiEntityBaseContract + + include MsRestAzure + + # @return [String] API name. + attr_accessor :display_name + + # @return [String] Absolute URL of the backend service implementing this + # API. + attr_accessor :service_url + + # @return [String] Relative URL uniquely identifying this API and all of + # its resource paths within the API Management service instance. It is + # appended to the API endpoint base URL specified during the service + # instance creation to form a public URL for this API. + attr_accessor :path + + # @return [Array] Describes on which protocols the operations + # in this API can be invoked. + attr_accessor :protocols + + # @return [ApiVersionSetContractDetails] + attr_accessor :api_version_set + + + # + # Mapper for ApiContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiContractProperties', + type: { + name: 'Composite', + class_name: 'ApiContractProperties', + model_properties: { + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + authentication_settings: { + required: false, + serialized_name: 'authenticationSettings', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract' + } + }, + subscription_key_parameter_names: { + required: false, + serialized_name: 'subscriptionKeyParameterNames', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract' + } + }, + api_type: { + required: false, + serialized_name: 'type', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + serialized_name: 'apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + api_version: { + required: false, + serialized_name: 'apiVersion', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'isCurrent', + type: { + name: 'Boolean' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'isOnline', + type: { + name: 'Boolean' + } + }, + api_revision_description: { + required: false, + serialized_name: 'apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_description: { + required: false, + serialized_name: 'apiVersionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set_id: { + required: false, + serialized_name: 'apiVersionSetId', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + service_url: { + required: false, + serialized_name: 'serviceUrl', + constraints: { + MaxLength: 2000, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + path: { + required: true, + serialized_name: 'path', + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + protocols: { + required: false, + serialized_name: 'protocols', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProtocolElementType', + type: { + name: 'Enum', + module: 'Protocol' + } + } + } + }, + api_version_set: { + required: false, + serialized_name: 'apiVersionSet', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContractDetails' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb new file mode 100644 index 0000000000..ed6fde2ea5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_parameter.rb @@ -0,0 +1,291 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API Create or Update Parameters. + # + class ApiCreateOrUpdateParameter + + include MsRestAzure + + # @return [String] Description of the API. May include HTML formatting + # tags. + attr_accessor :description + + # @return [AuthenticationSettingsContract] Collection of authentication + # settings included into this API. + attr_accessor :authentication_settings + + # @return [SubscriptionKeyParameterNamesContract] Protocols over which + # API is made available. + attr_accessor :subscription_key_parameter_names + + # @return [ApiType] Type of API. Possible values include: 'http', 'soap' + attr_accessor :api_type + + # @return [String] Describes the Revision of the Api. If no value is + # provided, default revision 1 is created + attr_accessor :api_revision + + # @return [String] Indicates the Version identifier of the API if the API + # is versioned + attr_accessor :api_version + + # @return [Boolean] Indicates if API revision is current api revision. + attr_accessor :is_current + + # @return [Boolean] Indicates if API revision is accessible via the + # gateway. + attr_accessor :is_online + + # @return [String] Description of the Api Revision. + attr_accessor :api_revision_description + + # @return [String] Description of the Api Version. + attr_accessor :api_version_description + + # @return [String] A resource identifier for the related ApiVersionSet. + attr_accessor :api_version_set_id + + # @return [String] API name. + attr_accessor :display_name + + # @return [String] Absolute URL of the backend service implementing this + # API. + attr_accessor :service_url + + # @return [String] Relative URL uniquely identifying this API and all of + # its resource paths within the API Management service instance. It is + # appended to the API endpoint base URL specified during the service + # instance creation to form a public URL for this API. + attr_accessor :path + + # @return [Array] Describes on which protocols the operations + # in this API can be invoked. + attr_accessor :protocols + + # @return [ApiVersionSetContractDetails] + attr_accessor :api_version_set + + # @return [String] Content value when Importing an API. + attr_accessor :content_value + + # @return [ContentFormat] Format of the Content in which the API is + # getting imported. Possible values include: 'wadl-xml', + # 'wadl-link-json', 'swagger-json', 'swagger-link-json', 'wsdl', + # 'wsdl-link' + attr_accessor :content_format + + # @return [ApiCreateOrUpdatePropertiesWsdlSelector] Criteria to limit + # import of WSDL to a subset of the document. + attr_accessor :wsdl_selector + + # @return [SoapApiType] Type of Api to create. + # * `http` creates a SOAP to REST API + # * `soap` creates a SOAP pass-through API. Possible values include: + # 'SoapToRest', 'SoapPassThrough' + attr_accessor :soap_api_type + + + # + # Mapper for ApiCreateOrUpdateParameter class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiCreateOrUpdateParameter', + type: { + name: 'Composite', + class_name: 'ApiCreateOrUpdateParameter', + model_properties: { + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + authentication_settings: { + required: false, + serialized_name: 'properties.authenticationSettings', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract' + } + }, + subscription_key_parameter_names: { + required: false, + serialized_name: 'properties.subscriptionKeyParameterNames', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract' + } + }, + api_type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + serialized_name: 'properties.apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + api_version: { + required: false, + serialized_name: 'properties.apiVersion', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'properties.isCurrent', + type: { + name: 'Boolean' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'properties.isOnline', + type: { + name: 'Boolean' + } + }, + api_revision_description: { + required: false, + serialized_name: 'properties.apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_description: { + required: false, + serialized_name: 'properties.apiVersionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set_id: { + required: false, + serialized_name: 'properties.apiVersionSetId', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + service_url: { + required: false, + serialized_name: 'properties.serviceUrl', + constraints: { + MaxLength: 2000, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + path: { + required: true, + serialized_name: 'properties.path', + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + protocols: { + required: false, + serialized_name: 'properties.protocols', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProtocolElementType', + type: { + name: 'Enum', + module: 'Protocol' + } + } + } + }, + api_version_set: { + required: false, + serialized_name: 'properties.apiVersionSet', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContractDetails' + } + }, + content_value: { + required: false, + serialized_name: 'properties.contentValue', + type: { + name: 'String' + } + }, + content_format: { + required: false, + serialized_name: 'properties.contentFormat', + type: { + name: 'String' + } + }, + wsdl_selector: { + required: false, + serialized_name: 'properties.wsdlSelector', + type: { + name: 'Composite', + class_name: 'ApiCreateOrUpdatePropertiesWsdlSelector' + } + }, + soap_api_type: { + required: false, + serialized_name: 'properties.apiType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb new file mode 100644 index 0000000000..26321e7492 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_create_or_update_properties_wsdl_selector.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Criteria to limit import of WSDL to a subset of the document. + # + class ApiCreateOrUpdatePropertiesWsdlSelector + + include MsRestAzure + + # @return [String] Name of service to import from WSDL + attr_accessor :wsdl_service_name + + # @return [String] Name of endpoint(port) to import from WSDL + attr_accessor :wsdl_endpoint_name + + + # + # Mapper for ApiCreateOrUpdatePropertiesWsdlSelector class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiCreateOrUpdateProperties_wsdlSelector', + type: { + name: 'Composite', + class_name: 'ApiCreateOrUpdatePropertiesWsdlSelector', + model_properties: { + wsdl_service_name: { + required: false, + serialized_name: 'wsdlServiceName', + type: { + name: 'String' + } + }, + wsdl_endpoint_name: { + required: false, + serialized_name: 'wsdlEndpointName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb new file mode 100644 index 0000000000..baf04960ba --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_entity_base_contract.rb @@ -0,0 +1,167 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API base contract details. + # + class ApiEntityBaseContract + + include MsRestAzure + + # @return [String] Description of the API. May include HTML formatting + # tags. + attr_accessor :description + + # @return [AuthenticationSettingsContract] Collection of authentication + # settings included into this API. + attr_accessor :authentication_settings + + # @return [SubscriptionKeyParameterNamesContract] Protocols over which + # API is made available. + attr_accessor :subscription_key_parameter_names + + # @return [ApiType] Type of API. Possible values include: 'http', 'soap' + attr_accessor :api_type + + # @return [String] Describes the Revision of the Api. If no value is + # provided, default revision 1 is created + attr_accessor :api_revision + + # @return [String] Indicates the Version identifier of the API if the API + # is versioned + attr_accessor :api_version + + # @return [Boolean] Indicates if API revision is current api revision. + attr_accessor :is_current + + # @return [Boolean] Indicates if API revision is accessible via the + # gateway. + attr_accessor :is_online + + # @return [String] Description of the Api Revision. + attr_accessor :api_revision_description + + # @return [String] Description of the Api Version. + attr_accessor :api_version_description + + # @return [String] A resource identifier for the related ApiVersionSet. + attr_accessor :api_version_set_id + + + # + # Mapper for ApiEntityBaseContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiEntityBaseContract', + type: { + name: 'Composite', + class_name: 'ApiEntityBaseContract', + model_properties: { + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + authentication_settings: { + required: false, + serialized_name: 'authenticationSettings', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract' + } + }, + subscription_key_parameter_names: { + required: false, + serialized_name: 'subscriptionKeyParameterNames', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract' + } + }, + api_type: { + required: false, + serialized_name: 'type', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + serialized_name: 'apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + api_version: { + required: false, + serialized_name: 'apiVersion', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'isCurrent', + type: { + name: 'Boolean' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'isOnline', + type: { + name: 'Boolean' + } + }, + api_revision_description: { + required: false, + serialized_name: 'apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_description: { + required: false, + serialized_name: 'apiVersionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set_id: { + required: false, + serialized_name: 'apiVersionSetId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb new file mode 100644 index 0000000000..a4f772fb88 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_export_result.rb @@ -0,0 +1,45 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API Export result Blob Uri. + # + class ApiExportResult + + include MsRestAzure + + # @return [String] Link to the Storage Blob containing the result of the + # export operation. The Blob Uri is only valid for 5 minutes. + attr_accessor :link + + + # + # Mapper for ApiExportResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiExportResult', + type: { + name: 'Composite', + class_name: 'ApiExportResult', + model_properties: { + link: { + required: false, + serialized_name: 'link', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb new file mode 100644 index 0000000000..e8209c4bee --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_apply_network_configuration_parameters.rb @@ -0,0 +1,47 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameter supplied to the Apply Network configuration operation. + # + class ApiManagementServiceApplyNetworkConfigurationParameters + + include MsRestAzure + + # @return [String] Location of the Api Management service to update for a + # multi-region service. For a service deployed in a single region, this + # parameter is not required. + attr_accessor :location + + + # + # Mapper for ApiManagementServiceApplyNetworkConfigurationParameters + # class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceApplyNetworkConfigurationParameters', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceApplyNetworkConfigurationParameters', + model_properties: { + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb new file mode 100644 index 0000000000..024f2fdf67 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_backup_restore_parameters.rb @@ -0,0 +1,79 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Backup/Restore of an API Management service + # operation. + # + class ApiManagementServiceBackupRestoreParameters + + include MsRestAzure + + # @return [String] Azure Cloud Storage account (used to place/retrieve + # the backup) name. + attr_accessor :storage_account + + # @return [String] Azure Cloud Storage account (used to place/retrieve + # the backup) access key. + attr_accessor :access_key + + # @return [String] Azure Cloud Storage blob container name used to + # place/retrieve the backup. + attr_accessor :container_name + + # @return [String] The name of the backup file to create. + attr_accessor :backup_name + + + # + # Mapper for ApiManagementServiceBackupRestoreParameters class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceBackupRestoreParameters', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceBackupRestoreParameters', + model_properties: { + storage_account: { + required: true, + serialized_name: 'storageAccount', + type: { + name: 'String' + } + }, + access_key: { + required: true, + serialized_name: 'accessKey', + type: { + name: 'String' + } + }, + container_name: { + required: true, + serialized_name: 'containerName', + type: { + name: 'String' + } + }, + backup_name: { + required: true, + serialized_name: 'backupName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb new file mode 100644 index 0000000000..bbe0b6279c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_base_properties.rb @@ -0,0 +1,298 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Base Properties of an API Management service resource description. + # + class ApiManagementServiceBaseProperties + + include MsRestAzure + + # @return [String] Email address from which the notification will be + # sent. + attr_accessor :notification_sender_email + + # @return [String] The current provisioning state of the API Management + # service which can be one of the following: + # Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + attr_accessor :provisioning_state + + # @return [String] The provisioning state of the API Management service, + # which is targeted by the long running operation started on the service. + attr_accessor :target_provisioning_state + + # @return [DateTime] Creation UTC date of the API Management service.The + # date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + # specified by the ISO 8601 standard. + attr_accessor :created_at_utc + + # @return [String] Gateway URL of the API Management service. + attr_accessor :gateway_url + + # @return [String] Gateway URL of the API Management service in the + # Default Region. + attr_accessor :gateway_regional_url + + # @return [String] Publisher portal endpoint Url of the API Management + # service. + attr_accessor :portal_url + + # @return [String] Management API endpoint URL of the API Management + # service. + attr_accessor :management_api_url + + # @return [String] SCM endpoint URL of the API Management service. + attr_accessor :scm_url + + # @return [Array] Custom hostname configuration of + # the API Management service. + attr_accessor :hostname_configurations + + # @return [Array] Public Static Load Balanced IP addresses of the + # API Management service in Primary region. Available only for Basic, + # Standard and Premium SKU. + attr_accessor :public_ipaddresses + + # @return [Array] Private Static Load Balanced IP addresses of + # the API Management service in Primary region which is deployed in an + # Internal Virtual Network. Available only for Basic, Standard and + # Premium SKU. + attr_accessor :private_ipaddresses + + # @return [VirtualNetworkConfiguration] Virtual network configuration of + # the API Management service. + attr_accessor :virtual_network_configuration + + # @return [Array] Additional datacenter locations of + # the API Management service. + attr_accessor :additional_locations + + # @return [Hash{String => String}] Custom properties of the API + # Management service. Setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` + # will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, + # 1.1 and 1.2). Setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` + # can be used to disable just TLS 1.1 and setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` + # can be used to disable TLS 1.0 on an API Management service. + attr_accessor :custom_properties + + # @return [Array] List of Certificates that + # need to be installed in the API Management service. Max supported + # certificates that can be installed is 10. + attr_accessor :certificates + + # @return [VirtualNetworkType] The type of VPN in which API Managemet + # service needs to be configured in. None (Default Value) means the API + # Management service is not part of any Virtual Network, External means + # the API Management deployment is set up inside a Virtual Network having + # an Internet Facing Endpoint, and Internal means that API Management + # deployment is setup inside a Virtual Network having an Intranet Facing + # Endpoint only. Possible values include: 'None', 'External', 'Internal'. + # Default value: 'None' . + attr_accessor :virtual_network_type + + + # + # Mapper for ApiManagementServiceBaseProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceBaseProperties', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceBaseProperties', + model_properties: { + notification_sender_email: { + required: false, + serialized_name: 'notificationSenderEmail', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'provisioningState', + type: { + name: 'String' + } + }, + target_provisioning_state: { + required: false, + read_only: true, + serialized_name: 'targetProvisioningState', + type: { + name: 'String' + } + }, + created_at_utc: { + required: false, + read_only: true, + serialized_name: 'createdAtUtc', + type: { + name: 'DateTime' + } + }, + gateway_url: { + required: false, + read_only: true, + serialized_name: 'gatewayUrl', + type: { + name: 'String' + } + }, + gateway_regional_url: { + required: false, + read_only: true, + serialized_name: 'gatewayRegionalUrl', + type: { + name: 'String' + } + }, + portal_url: { + required: false, + read_only: true, + serialized_name: 'portalUrl', + type: { + name: 'String' + } + }, + management_api_url: { + required: false, + read_only: true, + serialized_name: 'managementApiUrl', + type: { + name: 'String' + } + }, + scm_url: { + required: false, + read_only: true, + serialized_name: 'scmUrl', + type: { + name: 'String' + } + }, + hostname_configurations: { + required: false, + serialized_name: 'hostnameConfigurations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostnameConfigurationElementType', + type: { + name: 'Composite', + class_name: 'HostnameConfiguration' + } + } + } + }, + public_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'publicIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + private_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'privateIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + virtual_network_configuration: { + required: false, + serialized_name: 'virtualNetworkConfiguration', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConfiguration' + } + }, + additional_locations: { + required: false, + serialized_name: 'additionalLocations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AdditionalLocationElementType', + type: { + name: 'Composite', + class_name: 'AdditionalLocation' + } + } + } + }, + custom_properties: { + required: false, + serialized_name: 'customProperties', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + certificates: { + required: false, + serialized_name: 'certificates', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CertificateConfigurationElementType', + type: { + name: 'Composite', + class_name: 'CertificateConfiguration' + } + } + } + }, + virtual_network_type: { + required: false, + serialized_name: 'virtualNetworkType', + default_value: 'None', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb new file mode 100644 index 0000000000..fbf31276b1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_check_name_availability_parameters.rb @@ -0,0 +1,45 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the CheckNameAvailability operation. + # + class ApiManagementServiceCheckNameAvailabilityParameters + + include MsRestAzure + + # @return [String] The name to check for availability. + attr_accessor :name + + + # + # Mapper for ApiManagementServiceCheckNameAvailabilityParameters class as + # Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceCheckNameAvailabilityParameters', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceCheckNameAvailabilityParameters', + model_properties: { + name: { + required: true, + serialized_name: 'name', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb new file mode 100644 index 0000000000..0b28f35f79 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_get_sso_token_result.rb @@ -0,0 +1,45 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The response of the GetSsoToken operation. + # + class ApiManagementServiceGetSsoTokenResult + + include MsRestAzure + + # @return [String] Redirect URL to the Publisher Portal containing the + # SSO token. + attr_accessor :redirect_uri + + + # + # Mapper for ApiManagementServiceGetSsoTokenResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceGetSsoTokenResult', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceGetSsoTokenResult', + model_properties: { + redirect_uri: { + required: false, + serialized_name: 'redirectUri', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb new file mode 100644 index 0000000000..af24f4bb2b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_identity.rb @@ -0,0 +1,69 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Identity properties of the Api Management service resource. + # + class ApiManagementServiceIdentity + + include MsRestAzure + + # @return [String] The identity type. Currently the only supported type + # is 'SystemAssigned'. Default value: 'SystemAssigned' . + attr_accessor :type + + # @return The principal id of the identity. + attr_accessor :principal_id + + # @return The client tenant id of the identity. + attr_accessor :tenant_id + + + # + # Mapper for ApiManagementServiceIdentity class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceIdentity', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceIdentity', + model_properties: { + type: { + required: true, + is_constant: true, + serialized_name: 'type', + default_value: 'SystemAssigned', + type: { + name: 'String' + } + }, + principal_id: { + required: false, + read_only: true, + serialized_name: 'principalId', + type: { + name: 'String' + } + }, + tenant_id: { + required: false, + read_only: true, + serialized_name: 'tenantId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb new file mode 100644 index 0000000000..5963a0b2be --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_list_result.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The response of the List API Management services operation. + # + class ApiManagementServiceListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Result of the List API + # Management services operation. + attr_accessor :value + + # @return [String] Link to the next set of results. Not empty if Value + # contains incomplete list of API Management services. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ApiManagementServiceListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ApiManagementServiceListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceListResult', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceListResult', + model_properties: { + value: { + required: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApiManagementServiceResourceElementType', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceResource' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb new file mode 100644 index 0000000000..3d75a591a0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_name_availability_result.rb @@ -0,0 +1,77 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Response of the CheckNameAvailability operation. + # + class ApiManagementServiceNameAvailabilityResult + + include MsRestAzure + + # @return [Boolean] True if the name is available and can be used to + # create a new API Management service; otherwise false. + attr_accessor :name_available + + # @return [String] If reason == invalid, provide the user with the reason + # why the given name is invalid, and provide the resource naming + # requirements so that the user can select a valid name. If reason == + # AlreadyExists, explain that is already in use, and + # direct them to select a different name. + attr_accessor :message + + # @return [NameAvailabilityReason] Invalid indicates the name provided + # does not match the resource provider’s naming requirements (incorrect + # length, unsupported characters, etc.) AlreadyExists indicates that the + # name is already in use and is therefore unavailable. Possible values + # include: 'Valid', 'Invalid', 'AlreadyExists' + attr_accessor :reason + + + # + # Mapper for ApiManagementServiceNameAvailabilityResult class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceNameAvailabilityResult', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceNameAvailabilityResult', + model_properties: { + name_available: { + required: false, + read_only: true, + serialized_name: 'nameAvailable', + type: { + name: 'Boolean' + } + }, + message: { + required: false, + read_only: true, + serialized_name: 'message', + type: { + name: 'String' + } + }, + reason: { + required: false, + serialized_name: 'reason', + type: { + name: 'Enum', + module: 'NameAvailabilityReason' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb new file mode 100644 index 0000000000..9808e7fb3a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_resource.rb @@ -0,0 +1,407 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # A single API Management service resource in List or Get response. + # + class ApiManagementServiceResource < ApimResource + + include MsRestAzure + + # @return [String] Email address from which the notification will be + # sent. + attr_accessor :notification_sender_email + + # @return [String] The current provisioning state of the API Management + # service which can be one of the following: + # Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + attr_accessor :provisioning_state + + # @return [String] The provisioning state of the API Management service, + # which is targeted by the long running operation started on the service. + attr_accessor :target_provisioning_state + + # @return [DateTime] Creation UTC date of the API Management service.The + # date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + # specified by the ISO 8601 standard. + attr_accessor :created_at_utc + + # @return [String] Gateway URL of the API Management service. + attr_accessor :gateway_url + + # @return [String] Gateway URL of the API Management service in the + # Default Region. + attr_accessor :gateway_regional_url + + # @return [String] Publisher portal endpoint Url of the API Management + # service. + attr_accessor :portal_url + + # @return [String] Management API endpoint URL of the API Management + # service. + attr_accessor :management_api_url + + # @return [String] SCM endpoint URL of the API Management service. + attr_accessor :scm_url + + # @return [Array] Custom hostname configuration of + # the API Management service. + attr_accessor :hostname_configurations + + # @return [Array] Public Static Load Balanced IP addresses of the + # API Management service in Primary region. Available only for Basic, + # Standard and Premium SKU. + attr_accessor :public_ipaddresses + + # @return [Array] Private Static Load Balanced IP addresses of + # the API Management service in Primary region which is deployed in an + # Internal Virtual Network. Available only for Basic, Standard and + # Premium SKU. + attr_accessor :private_ipaddresses + + # @return [VirtualNetworkConfiguration] Virtual network configuration of + # the API Management service. + attr_accessor :virtual_network_configuration + + # @return [Array] Additional datacenter locations of + # the API Management service. + attr_accessor :additional_locations + + # @return [Hash{String => String}] Custom properties of the API + # Management service. Setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` + # will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, + # 1.1 and 1.2). Setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` + # can be used to disable just TLS 1.1 and setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` + # can be used to disable TLS 1.0 on an API Management service. + attr_accessor :custom_properties + + # @return [Array] List of Certificates that + # need to be installed in the API Management service. Max supported + # certificates that can be installed is 10. + attr_accessor :certificates + + # @return [VirtualNetworkType] The type of VPN in which API Managemet + # service needs to be configured in. None (Default Value) means the API + # Management service is not part of any Virtual Network, External means + # the API Management deployment is set up inside a Virtual Network having + # an Internet Facing Endpoint, and Internal means that API Management + # deployment is setup inside a Virtual Network having an Intranet Facing + # Endpoint only. Possible values include: 'None', 'External', 'Internal'. + # Default value: 'None' . + attr_accessor :virtual_network_type + + # @return [String] Publisher email. + attr_accessor :publisher_email + + # @return [String] Publisher name. + attr_accessor :publisher_name + + # @return [ApiManagementServiceSkuProperties] SKU properties of the API + # Management service. + attr_accessor :sku + + # @return [ApiManagementServiceIdentity] Managed service identity of the + # Api Management service. + attr_accessor :identity + + # @return [String] Resource location. + attr_accessor :location + + # @return [String] ETag of the resource. + attr_accessor :etag + + + # + # Mapper for ApiManagementServiceResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceResource', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + notification_sender_email: { + required: false, + serialized_name: 'properties.notificationSenderEmail', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + target_provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.targetProvisioningState', + type: { + name: 'String' + } + }, + created_at_utc: { + required: false, + read_only: true, + serialized_name: 'properties.createdAtUtc', + type: { + name: 'DateTime' + } + }, + gateway_url: { + required: false, + read_only: true, + serialized_name: 'properties.gatewayUrl', + type: { + name: 'String' + } + }, + gateway_regional_url: { + required: false, + read_only: true, + serialized_name: 'properties.gatewayRegionalUrl', + type: { + name: 'String' + } + }, + portal_url: { + required: false, + read_only: true, + serialized_name: 'properties.portalUrl', + type: { + name: 'String' + } + }, + management_api_url: { + required: false, + read_only: true, + serialized_name: 'properties.managementApiUrl', + type: { + name: 'String' + } + }, + scm_url: { + required: false, + read_only: true, + serialized_name: 'properties.scmUrl', + type: { + name: 'String' + } + }, + hostname_configurations: { + required: false, + serialized_name: 'properties.hostnameConfigurations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostnameConfigurationElementType', + type: { + name: 'Composite', + class_name: 'HostnameConfiguration' + } + } + } + }, + public_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'properties.publicIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + private_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'properties.privateIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + virtual_network_configuration: { + required: false, + serialized_name: 'properties.virtualNetworkConfiguration', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConfiguration' + } + }, + additional_locations: { + required: false, + serialized_name: 'properties.additionalLocations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AdditionalLocationElementType', + type: { + name: 'Composite', + class_name: 'AdditionalLocation' + } + } + } + }, + custom_properties: { + required: false, + serialized_name: 'properties.customProperties', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + certificates: { + required: false, + serialized_name: 'properties.certificates', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CertificateConfigurationElementType', + type: { + name: 'Composite', + class_name: 'CertificateConfiguration' + } + } + } + }, + virtual_network_type: { + required: false, + serialized_name: 'properties.virtualNetworkType', + default_value: 'None', + type: { + name: 'String' + } + }, + publisher_email: { + required: true, + serialized_name: 'properties.publisherEmail', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + publisher_name: { + required: true, + serialized_name: 'properties.publisherName', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + sku: { + required: true, + serialized_name: 'sku', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceSkuProperties' + } + }, + identity: { + required: false, + serialized_name: 'identity', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceIdentity' + } + }, + location: { + required: true, + serialized_name: 'location', + type: { + name: 'String' + } + }, + etag: { + required: false, + read_only: true, + serialized_name: 'etag', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb new file mode 100644 index 0000000000..fbb0daa058 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_sku_properties.rb @@ -0,0 +1,57 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API Management service resource SKU properties. + # + class ApiManagementServiceSkuProperties + + include MsRestAzure + + # @return [SkuType] Name of the Sku. Possible values include: + # 'Developer', 'Standard', 'Premium', 'Basic' + attr_accessor :name + + # @return [Integer] Capacity of the SKU (number of deployed units of the + # SKU). The default value is 1. Default value: 1 . + attr_accessor :capacity + + + # + # Mapper for ApiManagementServiceSkuProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceSkuProperties', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceSkuProperties', + model_properties: { + name: { + required: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + capacity: { + required: false, + serialized_name: 'capacity', + default_value: 1, + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb new file mode 100644 index 0000000000..67dd045c94 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_hostname_parameters.rb @@ -0,0 +1,72 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the UpdateHostname operation. + # + class ApiManagementServiceUpdateHostnameParameters + + include MsRestAzure + + # @return [Array] Hostnames to create or + # update. + attr_accessor :update + + # @return [Array] Hostnames types to delete. + attr_accessor :delete + + + # + # Mapper for ApiManagementServiceUpdateHostnameParameters class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceUpdateHostnameParameters', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceUpdateHostnameParameters', + model_properties: { + update: { + required: false, + serialized_name: 'update', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostnameConfigurationOldElementType', + type: { + name: 'Composite', + class_name: 'HostnameConfigurationOld' + } + } + } + }, + delete: { + required: false, + serialized_name: 'delete', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostnameTypeElementType', + type: { + name: 'Enum', + module: 'HostnameType' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb new file mode 100644 index 0000000000..1bd0565464 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_update_parameters.rb @@ -0,0 +1,397 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameter supplied to Update Api Management Service. + # + class ApiManagementServiceUpdateParameters < ApimResource + + include MsRestAzure + + # @return [String] Email address from which the notification will be + # sent. + attr_accessor :notification_sender_email + + # @return [String] The current provisioning state of the API Management + # service which can be one of the following: + # Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + attr_accessor :provisioning_state + + # @return [String] The provisioning state of the API Management service, + # which is targeted by the long running operation started on the service. + attr_accessor :target_provisioning_state + + # @return [DateTime] Creation UTC date of the API Management service.The + # date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + # specified by the ISO 8601 standard. + attr_accessor :created_at_utc + + # @return [String] Gateway URL of the API Management service. + attr_accessor :gateway_url + + # @return [String] Gateway URL of the API Management service in the + # Default Region. + attr_accessor :gateway_regional_url + + # @return [String] Publisher portal endpoint Url of the API Management + # service. + attr_accessor :portal_url + + # @return [String] Management API endpoint URL of the API Management + # service. + attr_accessor :management_api_url + + # @return [String] SCM endpoint URL of the API Management service. + attr_accessor :scm_url + + # @return [Array] Custom hostname configuration of + # the API Management service. + attr_accessor :hostname_configurations + + # @return [Array] Public Static Load Balanced IP addresses of the + # API Management service in Primary region. Available only for Basic, + # Standard and Premium SKU. + attr_accessor :public_ipaddresses + + # @return [Array] Private Static Load Balanced IP addresses of + # the API Management service in Primary region which is deployed in an + # Internal Virtual Network. Available only for Basic, Standard and + # Premium SKU. + attr_accessor :private_ipaddresses + + # @return [VirtualNetworkConfiguration] Virtual network configuration of + # the API Management service. + attr_accessor :virtual_network_configuration + + # @return [Array] Additional datacenter locations of + # the API Management service. + attr_accessor :additional_locations + + # @return [Hash{String => String}] Custom properties of the API + # Management service. Setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` + # will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, + # 1.1 and 1.2). Setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` + # can be used to disable just TLS 1.1 and setting + # `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` + # can be used to disable TLS 1.0 on an API Management service. + attr_accessor :custom_properties + + # @return [Array] List of Certificates that + # need to be installed in the API Management service. Max supported + # certificates that can be installed is 10. + attr_accessor :certificates + + # @return [VirtualNetworkType] The type of VPN in which API Managemet + # service needs to be configured in. None (Default Value) means the API + # Management service is not part of any Virtual Network, External means + # the API Management deployment is set up inside a Virtual Network having + # an Internet Facing Endpoint, and Internal means that API Management + # deployment is setup inside a Virtual Network having an Intranet Facing + # Endpoint only. Possible values include: 'None', 'External', 'Internal'. + # Default value: 'None' . + attr_accessor :virtual_network_type + + # @return [String] Publisher email. + attr_accessor :publisher_email + + # @return [String] Publisher name. + attr_accessor :publisher_name + + # @return [ApiManagementServiceSkuProperties] SKU properties of the API + # Management service. + attr_accessor :sku + + # @return [ApiManagementServiceIdentity] Managed service identity of the + # Api Management service. + attr_accessor :identity + + # @return [String] ETag of the resource. + attr_accessor :etag + + + # + # Mapper for ApiManagementServiceUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceUpdateParameters', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceUpdateParameters', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + notification_sender_email: { + required: false, + serialized_name: 'properties.notificationSenderEmail', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + target_provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.targetProvisioningState', + type: { + name: 'String' + } + }, + created_at_utc: { + required: false, + read_only: true, + serialized_name: 'properties.createdAtUtc', + type: { + name: 'DateTime' + } + }, + gateway_url: { + required: false, + read_only: true, + serialized_name: 'properties.gatewayUrl', + type: { + name: 'String' + } + }, + gateway_regional_url: { + required: false, + read_only: true, + serialized_name: 'properties.gatewayRegionalUrl', + type: { + name: 'String' + } + }, + portal_url: { + required: false, + read_only: true, + serialized_name: 'properties.portalUrl', + type: { + name: 'String' + } + }, + management_api_url: { + required: false, + read_only: true, + serialized_name: 'properties.managementApiUrl', + type: { + name: 'String' + } + }, + scm_url: { + required: false, + read_only: true, + serialized_name: 'properties.scmUrl', + type: { + name: 'String' + } + }, + hostname_configurations: { + required: false, + serialized_name: 'properties.hostnameConfigurations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'HostnameConfigurationElementType', + type: { + name: 'Composite', + class_name: 'HostnameConfiguration' + } + } + } + }, + public_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'properties.publicIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + private_ipaddresses: { + required: false, + read_only: true, + serialized_name: 'properties.privateIPAddresses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + virtual_network_configuration: { + required: false, + serialized_name: 'properties.virtualNetworkConfiguration', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConfiguration' + } + }, + additional_locations: { + required: false, + serialized_name: 'properties.additionalLocations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AdditionalLocationElementType', + type: { + name: 'Composite', + class_name: 'AdditionalLocation' + } + } + } + }, + custom_properties: { + required: false, + serialized_name: 'properties.customProperties', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + certificates: { + required: false, + serialized_name: 'properties.certificates', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CertificateConfigurationElementType', + type: { + name: 'Composite', + class_name: 'CertificateConfiguration' + } + } + } + }, + virtual_network_type: { + required: false, + serialized_name: 'properties.virtualNetworkType', + default_value: 'None', + type: { + name: 'String' + } + }, + publisher_email: { + required: false, + serialized_name: 'properties.publisherEmail', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + publisher_name: { + required: false, + serialized_name: 'properties.publisherName', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + sku: { + required: false, + serialized_name: 'sku', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceSkuProperties' + } + }, + identity: { + required: false, + serialized_name: 'identity', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceIdentity' + } + }, + etag: { + required: false, + read_only: true, + serialized_name: 'etag', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb new file mode 100644 index 0000000000..85fdf22017 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_management_service_upload_certificate_parameters.rb @@ -0,0 +1,68 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Upload SSL certificate for an API Management + # service operation. + # + class ApiManagementServiceUploadCertificateParameters + + include MsRestAzure + + # @return [HostnameType] Hostname type. Possible values include: 'Proxy', + # 'Portal', 'Management', 'Scm' + attr_accessor :type + + # @return [String] Base64 Encoded certificate. + attr_accessor :certificate + + # @return [String] Certificate password. + attr_accessor :certificate_password + + + # + # Mapper for ApiManagementServiceUploadCertificateParameters class as + # Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiManagementServiceUploadCertificateParameters', + type: { + name: 'Composite', + class_name: 'ApiManagementServiceUploadCertificateParameters', + model_properties: { + type: { + required: true, + serialized_name: 'type', + type: { + name: 'Enum', + module: 'HostnameType' + } + }, + certificate: { + required: true, + serialized_name: 'certificate', + type: { + name: 'String' + } + }, + certificate_password: { + required: true, + serialized_name: 'certificate_password', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb new file mode 100644 index 0000000000..2e83dd4007 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Api Revision list representation. + # + class ApiReleaseCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ApiReleaseCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ApiReleaseCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiReleaseCollection', + type: { + name: 'Composite', + class_name: 'ApiReleaseCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApiReleaseContractElementType', + type: { + name: 'Composite', + class_name: 'ApiReleaseContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb new file mode 100644 index 0000000000..a9a810cc75 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_release_contract.rb @@ -0,0 +1,102 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Release details. + # + class ApiReleaseContract < Resource + + include MsRestAzure + + # @return [String] Identifier of the API the release belongs to. + attr_accessor :api_id + + # @return [DateTime] The time the API was released. The date conforms to + # the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 + # standard. + attr_accessor :created_date_time + + # @return [DateTime] The time the API release was updated. + attr_accessor :updated_date_time + + # @return [String] Release Notes + attr_accessor :notes + + + # + # Mapper for ApiReleaseContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiReleaseContract', + type: { + name: 'Composite', + class_name: 'ApiReleaseContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + api_id: { + required: false, + serialized_name: 'properties.apiId', + type: { + name: 'String' + } + }, + created_date_time: { + required: false, + read_only: true, + serialized_name: 'properties.createdDateTime', + type: { + name: 'DateTime' + } + }, + updated_date_time: { + required: false, + read_only: true, + serialized_name: 'properties.updatedDateTime', + type: { + name: 'DateTime' + } + }, + notes: { + required: false, + serialized_name: 'properties.notes', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb new file mode 100644 index 0000000000..617f4ac53d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Api Revision list representation. + # + class ApiRevisionCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ApiRevisionCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ApiRevisionCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiRevisionCollection', + type: { + name: 'Composite', + class_name: 'ApiRevisionCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApiRevisionContractElementType', + type: { + name: 'Composite', + class_name: 'ApiRevisionContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb new file mode 100644 index 0000000000..aa2f1b1671 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_contract.rb @@ -0,0 +1,136 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Summary of revision metadata. + # + class ApiRevisionContract + + include MsRestAzure + + # @return [String] Identifier of the API Revision. + attr_accessor :api_id + + # @return [String] Revision number of API. + attr_accessor :api_revision + + # @return [DateTime] The time the API Revision was created. The date + # conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by + # the ISO 8601 standard. + attr_accessor :created_date_time + + # @return [DateTime] The time the API Revision were updated. The date + # conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by + # the ISO 8601 standard. + attr_accessor :updated_date_time + + # @return [String] Description of the API Revision. + attr_accessor :description + + # @return [String] Gateway URL for accessing the non-current API + # Revision. + attr_accessor :private_url + + # @return [Boolean] Indicates if API revision is the current api + # revision. + attr_accessor :is_online + + # @return [Boolean] Indicates if API revision is accessible via the + # gateway. + attr_accessor :is_current + + + # + # Mapper for ApiRevisionContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiRevisionContract', + type: { + name: 'Composite', + class_name: 'ApiRevisionContract', + model_properties: { + api_id: { + required: false, + read_only: true, + serialized_name: 'apiId', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + read_only: true, + serialized_name: 'apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + created_date_time: { + required: false, + read_only: true, + serialized_name: 'createdDateTime', + type: { + name: 'DateTime' + } + }, + updated_date_time: { + required: false, + read_only: true, + serialized_name: 'updatedDateTime', + type: { + name: 'DateTime' + } + }, + description: { + required: false, + read_only: true, + serialized_name: 'description', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + private_url: { + required: false, + read_only: true, + serialized_name: 'privateUrl', + type: { + name: 'String' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'isOnline', + type: { + name: 'Boolean' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'isCurrent', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb new file mode 100644 index 0000000000..6065475ade --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb @@ -0,0 +1,83 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Object used to create an API Revision or Version based on an existing API + # Revision + # + class ApiRevisionInfoContract + + include MsRestAzure + + # @return [String] Resource identifier of API to be used to create the + # revision from. + attr_accessor :source_api_id + + # @return [String] Version identifier for the new API Version. + attr_accessor :api_version_name + + # @return [String] Description of new API Revision. + attr_accessor :api_revision_description + + # @return [ApiVersionSetContractDetails] Version set details + attr_accessor :api_version_set + + + # + # Mapper for ApiRevisionInfoContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiRevisionInfoContract', + type: { + name: 'Composite', + class_name: 'ApiRevisionInfoContract', + model_properties: { + source_api_id: { + required: false, + serialized_name: 'sourceApiId', + type: { + name: 'String' + } + }, + api_version_name: { + required: false, + serialized_name: 'apiVersionName', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + api_revision_description: { + required: false, + serialized_name: 'apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set: { + required: false, + serialized_name: 'apiVersionSet', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContractDetails' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb new file mode 100644 index 0000000000..80ac44b324 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_tag_resource_contract_properties.rb @@ -0,0 +1,203 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API contract properties for the Tag Resources. + # + class ApiTagResourceContractProperties < ApiEntityBaseContract + + include MsRestAzure + + # @return [String] API identifier in the form /apis/{apiId}. + attr_accessor :id + + # @return [String] API name. + attr_accessor :name + + # @return [String] Absolute URL of the backend service implementing this + # API. + attr_accessor :service_url + + # @return [String] Relative URL uniquely identifying this API and all of + # its resource paths within the API Management service instance. It is + # appended to the API endpoint base URL specified during the service + # instance creation to form a public URL for this API. + attr_accessor :path + + # @return [Array] Describes on which protocols the operations + # in this API can be invoked. + attr_accessor :protocols + + + # + # Mapper for ApiTagResourceContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiTagResourceContractProperties', + type: { + name: 'Composite', + class_name: 'ApiTagResourceContractProperties', + model_properties: { + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + authentication_settings: { + required: false, + serialized_name: 'authenticationSettings', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract' + } + }, + subscription_key_parameter_names: { + required: false, + serialized_name: 'subscriptionKeyParameterNames', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract' + } + }, + api_type: { + required: false, + serialized_name: 'type', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + serialized_name: 'apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + api_version: { + required: false, + serialized_name: 'apiVersion', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'isCurrent', + type: { + name: 'Boolean' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'isOnline', + type: { + name: 'Boolean' + } + }, + api_revision_description: { + required: false, + serialized_name: 'apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_description: { + required: false, + serialized_name: 'apiVersionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set_id: { + required: false, + serialized_name: 'apiVersionSetId', + type: { + name: 'String' + } + }, + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + service_url: { + required: false, + serialized_name: 'serviceUrl', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + path: { + required: false, + serialized_name: 'path', + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + protocols: { + required: false, + serialized_name: 'protocols', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProtocolElementType', + type: { + name: 'Enum', + module: 'Protocol' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb new file mode 100644 index 0000000000..a7cde64218 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for ApiType + # + module ApiType + Http = "http" + Soap = "soap" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb new file mode 100644 index 0000000000..e7f8fe43ae --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_update_contract.rb @@ -0,0 +1,232 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API update contract details. + # + class ApiUpdateContract + + include MsRestAzure + + # @return [String] Description of the API. May include HTML formatting + # tags. + attr_accessor :description + + # @return [AuthenticationSettingsContract] Collection of authentication + # settings included into this API. + attr_accessor :authentication_settings + + # @return [SubscriptionKeyParameterNamesContract] Protocols over which + # API is made available. + attr_accessor :subscription_key_parameter_names + + # @return [ApiType] Type of API. Possible values include: 'http', 'soap' + attr_accessor :api_type + + # @return [String] Describes the Revision of the Api. If no value is + # provided, default revision 1 is created + attr_accessor :api_revision + + # @return [String] Indicates the Version identifier of the API if the API + # is versioned + attr_accessor :api_version + + # @return [Boolean] Indicates if API revision is current api revision. + attr_accessor :is_current + + # @return [Boolean] Indicates if API revision is accessible via the + # gateway. + attr_accessor :is_online + + # @return [String] Description of the Api Revision. + attr_accessor :api_revision_description + + # @return [String] Description of the Api Version. + attr_accessor :api_version_description + + # @return [String] A resource identifier for the related ApiVersionSet. + attr_accessor :api_version_set_id + + # @return [String] API name. + attr_accessor :display_name + + # @return [String] Absolute URL of the backend service implementing this + # API. + attr_accessor :service_url + + # @return [String] Relative URL uniquely identifying this API and all of + # its resource paths within the API Management service instance. It is + # appended to the API endpoint base URL specified during the service + # instance creation to form a public URL for this API. + attr_accessor :path + + # @return [Array] Describes on which protocols the operations + # in this API can be invoked. + attr_accessor :protocols + + + # + # Mapper for ApiUpdateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiUpdateContract', + type: { + name: 'Composite', + class_name: 'ApiUpdateContract', + model_properties: { + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + authentication_settings: { + required: false, + serialized_name: 'properties.authenticationSettings', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract' + } + }, + subscription_key_parameter_names: { + required: false, + serialized_name: 'properties.subscriptionKeyParameterNames', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract' + } + }, + api_type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + serialized_name: 'properties.apiRevision', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + api_version: { + required: false, + serialized_name: 'properties.apiVersion', + constraints: { + MaxLength: 100 + }, + type: { + name: 'String' + } + }, + is_current: { + required: false, + read_only: true, + serialized_name: 'properties.isCurrent', + type: { + name: 'Boolean' + } + }, + is_online: { + required: false, + read_only: true, + serialized_name: 'properties.isOnline', + type: { + name: 'Boolean' + } + }, + api_revision_description: { + required: false, + serialized_name: 'properties.apiRevisionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_description: { + required: false, + serialized_name: 'properties.apiVersionDescription', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + api_version_set_id: { + required: false, + serialized_name: 'properties.apiVersionSetId', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + service_url: { + required: false, + serialized_name: 'properties.serviceUrl', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + path: { + required: false, + serialized_name: 'properties.path', + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + protocols: { + required: false, + serialized_name: 'properties.protocols', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProtocolElementType', + type: { + name: 'Enum', + module: 'Protocol' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb new file mode 100644 index 0000000000..33cf492797 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Api Version Set list representation. + # + class ApiVersionSetCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ApiVersionSetCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ApiVersionSetCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiVersionSetCollection', + type: { + name: 'Composite', + class_name: 'ApiVersionSetCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApiVersionSetContractElementType', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb new file mode 100644 index 0000000000..13def1d63c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract.rb @@ -0,0 +1,124 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Version Set Contract details. + # + class ApiVersionSetContract < Resource + + include MsRestAzure + + # @return [String] Description of API Version Set. + attr_accessor :description + + # @return [String] Name of query parameter that indicates the API Version + # if versioningScheme is set to `query`. + attr_accessor :version_query_name + + # @return [String] Name of HTTP header parameter that indicates the API + # Version if versioningScheme is set to `header`. + attr_accessor :version_header_name + + # @return [String] Name of API Version Set + attr_accessor :display_name + + # @return [VersioningScheme] An value that determines where the API + # Version identifer will be located in a HTTP request. Possible values + # include: 'Segment', 'Query', 'Header' + attr_accessor :versioning_scheme + + + # + # Mapper for ApiVersionSetContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiVersionSetContract', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + version_query_name: { + required: false, + serialized_name: 'properties.versionQueryName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + version_header_name: { + required: false, + serialized_name: 'properties.versionHeaderName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + versioning_scheme: { + required: true, + serialized_name: 'properties.versioningScheme', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb new file mode 100644 index 0000000000..0a8809ce2b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_contract_details.rb @@ -0,0 +1,90 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # An API Version Set contains the common configuration for a set of API + # Versions relating + # + class ApiVersionSetContractDetails + + include MsRestAzure + + # @return [String] Identifier for existing API Version Set. Omit this + # value to create a new Version Set. + attr_accessor :id + + # @return [String] Description of API Version Set. + attr_accessor :description + + # @return [Enum] An value that determines where the API Version identifer + # will be located in a HTTP request. Possible values include: 'Segment', + # 'Query', 'Header' + attr_accessor :versioning_scheme + + # @return [String] Name of query parameter that indicates the API Version + # if versioningScheme is set to `query`. + attr_accessor :version_query_name + + # @return [String] Name of HTTP header parameter that indicates the API + # Version if versioningScheme is set to `header`. + attr_accessor :version_header_name + + + # + # Mapper for ApiVersionSetContractDetails class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiVersionSetContractDetails', + type: { + name: 'Composite', + class_name: 'ApiVersionSetContractDetails', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + versioning_scheme: { + required: false, + serialized_name: 'versioningScheme', + type: { + name: 'String' + } + }, + version_query_name: { + required: false, + serialized_name: 'versionQueryName', + type: { + name: 'String' + } + }, + version_header_name: { + required: false, + serialized_name: 'versionHeaderName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb new file mode 100644 index 0000000000..5fe5f8b4bb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_entity_base.rb @@ -0,0 +1,74 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Version set base parameters + # + class ApiVersionSetEntityBase + + include MsRestAzure + + # @return [String] Description of API Version Set. + attr_accessor :description + + # @return [String] Name of query parameter that indicates the API Version + # if versioningScheme is set to `query`. + attr_accessor :version_query_name + + # @return [String] Name of HTTP header parameter that indicates the API + # Version if versioningScheme is set to `header`. + attr_accessor :version_header_name + + + # + # Mapper for ApiVersionSetEntityBase class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiVersionSetEntityBase', + type: { + name: 'Composite', + class_name: 'ApiVersionSetEntityBase', + model_properties: { + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + version_query_name: { + required: false, + serialized_name: 'versionQueryName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + version_header_name: { + required: false, + serialized_name: 'versionHeaderName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb new file mode 100644 index 0000000000..3b3d1f98c3 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/api_version_set_update_parameters.rb @@ -0,0 +1,100 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters to update or create an Api Version Set Contract. + # + class ApiVersionSetUpdateParameters + + include MsRestAzure + + # @return [String] Description of API Version Set. + attr_accessor :description + + # @return [String] Name of query parameter that indicates the API Version + # if versioningScheme is set to `query`. + attr_accessor :version_query_name + + # @return [String] Name of HTTP header parameter that indicates the API + # Version if versioningScheme is set to `header`. + attr_accessor :version_header_name + + # @return [String] Name of API Version Set + attr_accessor :display_name + + # @return [VersioningScheme] An value that determines where the API + # Version identifer will be located in a HTTP request. Possible values + # include: 'Segment', 'Query', 'Header' + attr_accessor :versioning_scheme + + + # + # Mapper for ApiVersionSetUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApiVersionSetUpdateParameters', + type: { + name: 'Composite', + class_name: 'ApiVersionSetUpdateParameters', + model_properties: { + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + version_query_name: { + required: false, + serialized_name: 'properties.versionQueryName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + version_header_name: { + required: false, + serialized_name: 'properties.versionHeaderName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + versioning_scheme: { + required: false, + serialized_name: 'properties.versioningScheme', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb new file mode 100644 index 0000000000..baffdc7450 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/apim_resource.rb @@ -0,0 +1,85 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The Resource definition. + # + class ApimResource + + include MsRestAzure + + # @return [String] Resource ID. + attr_accessor :id + + # @return [String] Resource name. + attr_accessor :name + + # @return [String] Resource type for API Management resource is set to + # Microsoft.ApiManagement. + attr_accessor :type + + # @return [Hash{String => String}] Resource tags. + attr_accessor :tags + + + # + # Mapper for ApimResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApimResource', + type: { + name: 'Composite', + class_name: 'ApimResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb new file mode 100644 index 0000000000..2a36e02b79 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/async_operation_status.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for AsyncOperationStatus + # + module AsyncOperationStatus + Started = "Started" + InProgress = "InProgress" + Succeeded = "Succeeded" + Failed = "Failed" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb new file mode 100644 index 0000000000..a7cf06ae80 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authentication_settings_contract.rb @@ -0,0 +1,46 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API Authentication Settings. + # + class AuthenticationSettingsContract + + include MsRestAzure + + # @return [OAuth2AuthenticationSettingsContract] OAuth2 Authentication + # settings + attr_accessor :o_auth2 + + + # + # Mapper for AuthenticationSettingsContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AuthenticationSettingsContract', + type: { + name: 'Composite', + class_name: 'AuthenticationSettingsContract', + model_properties: { + o_auth2: { + required: false, + serialized_name: 'oAuth2', + type: { + name: 'Composite', + class_name: 'OAuth2AuthenticationSettingsContract' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb new file mode 100644 index 0000000000..bdc8d6b2e4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_method.rb @@ -0,0 +1,22 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for AuthorizationMethod + # + module AuthorizationMethod + HEAD = "HEAD" + OPTIONS = "OPTIONS" + TRACE = "TRACE" + GET = "GET" + POST = "POST" + PUT = "PUT" + PATCH = "PATCH" + DELETE = "DELETE" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb new file mode 100644 index 0000000000..2a36fea752 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_collection.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged OAuth2 Authorization Servers list representation. + # + class AuthorizationServerCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [AuthorizationServerCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for AuthorizationServerCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AuthorizationServerCollection', + type: { + name: 'Composite', + class_name: 'AuthorizationServerCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AuthorizationServerContractElementType', + type: { + name: 'Composite', + class_name: 'AuthorizationServerContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb new file mode 100644 index 0000000000..a87780d2f1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract.rb @@ -0,0 +1,284 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # External OAuth authorization server settings. + # + class AuthorizationServerContract < Resource + + include MsRestAzure + + # @return [String] Description of the authorization server. Can contain + # HTML formatting tags. + attr_accessor :description + + # @return [Array] HTTP verbs supported by the + # authorization endpoint. GET must be always present. POST is optional. + attr_accessor :authorization_methods + + # @return [Array] Method of authentication + # supported by the token endpoint of this authorization server. Possible + # values are Basic and/or Body. When Body is specified, client + # credentials and other parameters are passed within the request body in + # the application/x-www-form-urlencoded format. + attr_accessor :client_authentication_method + + # @return [Array] Additional parameters + # required by the token endpoint of this authorization server represented + # as an array of JSON objects with name and value string properties, i.e. + # {"name" : "name value", "value": "a value"}. + attr_accessor :token_body_parameters + + # @return [String] OAuth token endpoint. Contains absolute URI to entity + # being referenced. + attr_accessor :token_endpoint + + # @return [Boolean] If true, authorization server will include state + # parameter from the authorization request to its response. Client may + # use state parameter to raise protocol security. + attr_accessor :support_state + + # @return [String] Access token scope that is going to be requested by + # default. Can be overridden at the API level. Should be provided in the + # form of a string containing space-delimited values. + attr_accessor :default_scope + + # @return [Array] Specifies the mechanism by + # which access token is passed to the API. + attr_accessor :bearer_token_sending_methods + + # @return [String] Client or app secret registered with this + # authorization server. + attr_accessor :client_secret + + # @return [String] Can be optionally specified when resource owner + # password grant type is supported by this authorization server. Default + # resource owner username. + attr_accessor :resource_owner_username + + # @return [String] Can be optionally specified when resource owner + # password grant type is supported by this authorization server. Default + # resource owner password. + attr_accessor :resource_owner_password + + # @return [String] User-friendly authorization server name. + attr_accessor :display_name + + # @return [String] Optional reference to a page where client or app + # registration for this authorization server is performed. Contains + # absolute URL to entity being referenced. + attr_accessor :client_registration_endpoint + + # @return [String] OAuth authorization endpoint. See + # http://tools.ietf.org/html/rfc6749#section-3.2. + attr_accessor :authorization_endpoint + + # @return [Array] Form of an authorization grant, which the + # client uses to request the access token. + attr_accessor :grant_types + + # @return [String] Client or app id registered with this authorization + # server. + attr_accessor :client_id + + + # + # Mapper for AuthorizationServerContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AuthorizationServerContract', + type: { + name: 'Composite', + class_name: 'AuthorizationServerContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + authorization_methods: { + required: false, + serialized_name: 'properties.authorizationMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AuthorizationMethodElementType', + type: { + name: 'Enum', + module: 'AuthorizationMethod' + } + } + } + }, + client_authentication_method: { + required: false, + serialized_name: 'properties.clientAuthenticationMethod', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ClientAuthenticationMethodElementType', + type: { + name: 'String' + } + } + } + }, + token_body_parameters: { + required: false, + serialized_name: 'properties.tokenBodyParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TokenBodyParameterContractElementType', + type: { + name: 'Composite', + class_name: 'TokenBodyParameterContract' + } + } + } + }, + token_endpoint: { + required: false, + serialized_name: 'properties.tokenEndpoint', + type: { + name: 'String' + } + }, + support_state: { + required: false, + serialized_name: 'properties.supportState', + type: { + name: 'Boolean' + } + }, + default_scope: { + required: false, + serialized_name: 'properties.defaultScope', + type: { + name: 'String' + } + }, + bearer_token_sending_methods: { + required: false, + serialized_name: 'properties.bearerTokenSendingMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'BearerTokenSendingMethodElementType', + type: { + name: 'String' + } + } + } + }, + client_secret: { + required: false, + serialized_name: 'properties.clientSecret', + type: { + name: 'String' + } + }, + resource_owner_username: { + required: false, + serialized_name: 'properties.resourceOwnerUsername', + type: { + name: 'String' + } + }, + resource_owner_password: { + required: false, + serialized_name: 'properties.resourceOwnerPassword', + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 50, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + client_registration_endpoint: { + required: true, + serialized_name: 'properties.clientRegistrationEndpoint', + type: { + name: 'String' + } + }, + authorization_endpoint: { + required: true, + serialized_name: 'properties.authorizationEndpoint', + type: { + name: 'String' + } + }, + grant_types: { + required: true, + serialized_name: 'properties.grantTypes', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'GrantTypeElementType', + type: { + name: 'String' + } + } + } + }, + client_id: { + required: true, + serialized_name: 'properties.clientId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb new file mode 100644 index 0000000000..0cfa39294c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_contract_base_properties.rb @@ -0,0 +1,195 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # External OAuth authorization server Update settings contract. + # + class AuthorizationServerContractBaseProperties + + include MsRestAzure + + # @return [String] Description of the authorization server. Can contain + # HTML formatting tags. + attr_accessor :description + + # @return [Array] HTTP verbs supported by the + # authorization endpoint. GET must be always present. POST is optional. + attr_accessor :authorization_methods + + # @return [Array] Method of authentication + # supported by the token endpoint of this authorization server. Possible + # values are Basic and/or Body. When Body is specified, client + # credentials and other parameters are passed within the request body in + # the application/x-www-form-urlencoded format. + attr_accessor :client_authentication_method + + # @return [Array] Additional parameters + # required by the token endpoint of this authorization server represented + # as an array of JSON objects with name and value string properties, i.e. + # {"name" : "name value", "value": "a value"}. + attr_accessor :token_body_parameters + + # @return [String] OAuth token endpoint. Contains absolute URI to entity + # being referenced. + attr_accessor :token_endpoint + + # @return [Boolean] If true, authorization server will include state + # parameter from the authorization request to its response. Client may + # use state parameter to raise protocol security. + attr_accessor :support_state + + # @return [String] Access token scope that is going to be requested by + # default. Can be overridden at the API level. Should be provided in the + # form of a string containing space-delimited values. + attr_accessor :default_scope + + # @return [Array] Specifies the mechanism by + # which access token is passed to the API. + attr_accessor :bearer_token_sending_methods + + # @return [String] Client or app secret registered with this + # authorization server. + attr_accessor :client_secret + + # @return [String] Can be optionally specified when resource owner + # password grant type is supported by this authorization server. Default + # resource owner username. + attr_accessor :resource_owner_username + + # @return [String] Can be optionally specified when resource owner + # password grant type is supported by this authorization server. Default + # resource owner password. + attr_accessor :resource_owner_password + + + # + # Mapper for AuthorizationServerContractBaseProperties class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AuthorizationServerContractBaseProperties', + type: { + name: 'Composite', + class_name: 'AuthorizationServerContractBaseProperties', + model_properties: { + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + authorization_methods: { + required: false, + serialized_name: 'authorizationMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AuthorizationMethodElementType', + type: { + name: 'Enum', + module: 'AuthorizationMethod' + } + } + } + }, + client_authentication_method: { + required: false, + serialized_name: 'clientAuthenticationMethod', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ClientAuthenticationMethodElementType', + type: { + name: 'String' + } + } + } + }, + token_body_parameters: { + required: false, + serialized_name: 'tokenBodyParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TokenBodyParameterContractElementType', + type: { + name: 'Composite', + class_name: 'TokenBodyParameterContract' + } + } + } + }, + token_endpoint: { + required: false, + serialized_name: 'tokenEndpoint', + type: { + name: 'String' + } + }, + support_state: { + required: false, + serialized_name: 'supportState', + type: { + name: 'Boolean' + } + }, + default_scope: { + required: false, + serialized_name: 'defaultScope', + type: { + name: 'String' + } + }, + bearer_token_sending_methods: { + required: false, + serialized_name: 'bearerTokenSendingMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'BearerTokenSendingMethodElementType', + type: { + name: 'String' + } + } + } + }, + client_secret: { + required: false, + serialized_name: 'clientSecret', + type: { + name: 'String' + } + }, + resource_owner_username: { + required: false, + serialized_name: 'resourceOwnerUsername', + type: { + name: 'String' + } + }, + resource_owner_password: { + required: false, + serialized_name: 'resourceOwnerPassword', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb new file mode 100644 index 0000000000..e7a97e32c6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/authorization_server_update_contract.rb @@ -0,0 +1,284 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # External OAuth authorization server settings. + # + class AuthorizationServerUpdateContract < Resource + + include MsRestAzure + + # @return [String] Description of the authorization server. Can contain + # HTML formatting tags. + attr_accessor :description + + # @return [Array] HTTP verbs supported by the + # authorization endpoint. GET must be always present. POST is optional. + attr_accessor :authorization_methods + + # @return [Array] Method of authentication + # supported by the token endpoint of this authorization server. Possible + # values are Basic and/or Body. When Body is specified, client + # credentials and other parameters are passed within the request body in + # the application/x-www-form-urlencoded format. + attr_accessor :client_authentication_method + + # @return [Array] Additional parameters + # required by the token endpoint of this authorization server represented + # as an array of JSON objects with name and value string properties, i.e. + # {"name" : "name value", "value": "a value"}. + attr_accessor :token_body_parameters + + # @return [String] OAuth token endpoint. Contains absolute URI to entity + # being referenced. + attr_accessor :token_endpoint + + # @return [Boolean] If true, authorization server will include state + # parameter from the authorization request to its response. Client may + # use state parameter to raise protocol security. + attr_accessor :support_state + + # @return [String] Access token scope that is going to be requested by + # default. Can be overridden at the API level. Should be provided in the + # form of a string containing space-delimited values. + attr_accessor :default_scope + + # @return [Array] Specifies the mechanism by + # which access token is passed to the API. + attr_accessor :bearer_token_sending_methods + + # @return [String] Client or app secret registered with this + # authorization server. + attr_accessor :client_secret + + # @return [String] Can be optionally specified when resource owner + # password grant type is supported by this authorization server. Default + # resource owner username. + attr_accessor :resource_owner_username + + # @return [String] Can be optionally specified when resource owner + # password grant type is supported by this authorization server. Default + # resource owner password. + attr_accessor :resource_owner_password + + # @return [String] User-friendly authorization server name. + attr_accessor :display_name + + # @return [String] Optional reference to a page where client or app + # registration for this authorization server is performed. Contains + # absolute URL to entity being referenced. + attr_accessor :client_registration_endpoint + + # @return [String] OAuth authorization endpoint. See + # http://tools.ietf.org/html/rfc6749#section-3.2. + attr_accessor :authorization_endpoint + + # @return [Array] Form of an authorization grant, which the + # client uses to request the access token. + attr_accessor :grant_types + + # @return [String] Client or app id registered with this authorization + # server. + attr_accessor :client_id + + + # + # Mapper for AuthorizationServerUpdateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'AuthorizationServerUpdateContract', + type: { + name: 'Composite', + class_name: 'AuthorizationServerUpdateContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + authorization_methods: { + required: false, + serialized_name: 'properties.authorizationMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'AuthorizationMethodElementType', + type: { + name: 'Enum', + module: 'AuthorizationMethod' + } + } + } + }, + client_authentication_method: { + required: false, + serialized_name: 'properties.clientAuthenticationMethod', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ClientAuthenticationMethodElementType', + type: { + name: 'String' + } + } + } + }, + token_body_parameters: { + required: false, + serialized_name: 'properties.tokenBodyParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TokenBodyParameterContractElementType', + type: { + name: 'Composite', + class_name: 'TokenBodyParameterContract' + } + } + } + }, + token_endpoint: { + required: false, + serialized_name: 'properties.tokenEndpoint', + type: { + name: 'String' + } + }, + support_state: { + required: false, + serialized_name: 'properties.supportState', + type: { + name: 'Boolean' + } + }, + default_scope: { + required: false, + serialized_name: 'properties.defaultScope', + type: { + name: 'String' + } + }, + bearer_token_sending_methods: { + required: false, + serialized_name: 'properties.bearerTokenSendingMethods', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'BearerTokenSendingMethodElementType', + type: { + name: 'String' + } + } + } + }, + client_secret: { + required: false, + serialized_name: 'properties.clientSecret', + type: { + name: 'String' + } + }, + resource_owner_username: { + required: false, + serialized_name: 'properties.resourceOwnerUsername', + type: { + name: 'String' + } + }, + resource_owner_password: { + required: false, + serialized_name: 'properties.resourceOwnerPassword', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 50, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + client_registration_endpoint: { + required: false, + serialized_name: 'properties.clientRegistrationEndpoint', + type: { + name: 'String' + } + }, + authorization_endpoint: { + required: false, + serialized_name: 'properties.authorizationEndpoint', + type: { + name: 'String' + } + }, + grant_types: { + required: false, + serialized_name: 'properties.grantTypes', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'GrantTypeElementType', + type: { + name: 'String' + } + } + } + }, + client_id: { + required: false, + serialized_name: 'properties.clientId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb new file mode 100644 index 0000000000..84bd440cc2 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_authorization_header_credentials.rb @@ -0,0 +1,62 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Authorization header information. + # + class BackendAuthorizationHeaderCredentials + + include MsRestAzure + + # @return [String] Authentication Scheme name. + attr_accessor :scheme + + # @return [String] Authentication Parameter value. + attr_accessor :parameter + + + # + # Mapper for BackendAuthorizationHeaderCredentials class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendAuthorizationHeaderCredentials', + type: { + name: 'Composite', + class_name: 'BackendAuthorizationHeaderCredentials', + model_properties: { + scheme: { + required: true, + serialized_name: 'scheme', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + parameter: { + required: true, + serialized_name: 'parameter', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb new file mode 100644 index 0000000000..edcf5d1b65 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_base_parameters.rb @@ -0,0 +1,123 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Backend entity base Parameter set. + # + class BackendBaseParameters + + include MsRestAzure + + # @return [String] Backend Title. + attr_accessor :title + + # @return [String] Backend Description. + attr_accessor :description + + # @return [String] Management Uri of the Resource in External System. + # This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + # Apps. + attr_accessor :resource_id + + # @return [BackendProperties] Backend Properties contract + attr_accessor :properties + + # @return [BackendCredentialsContract] Backend Credentials Contract + # Properties + attr_accessor :credentials + + # @return [BackendProxyContract] Backend Proxy Contract Properties + attr_accessor :proxy + + # @return [BackendTlsProperties] Backend TLS Properties + attr_accessor :tls + + + # + # Mapper for BackendBaseParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendBaseParameters', + type: { + name: 'Composite', + class_name: 'BackendBaseParameters', + model_properties: { + title: { + required: false, + serialized_name: 'title', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + resource_id: { + required: false, + serialized_name: 'resourceId', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + properties: { + required: false, + serialized_name: 'properties', + type: { + name: 'Composite', + class_name: 'BackendProperties' + } + }, + credentials: { + required: false, + serialized_name: 'credentials', + type: { + name: 'Composite', + class_name: 'BackendCredentialsContract' + } + }, + proxy: { + required: false, + serialized_name: 'proxy', + type: { + name: 'Composite', + class_name: 'BackendProxyContract' + } + }, + tls: { + required: false, + serialized_name: 'tls', + type: { + name: 'Composite', + class_name: 'BackendTlsProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb new file mode 100644 index 0000000000..8956681ac1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Backend list representation. + # + class BackendCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Backend values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [BackendCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for BackendCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendCollection', + type: { + name: 'Composite', + class_name: 'BackendCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'BackendContractElementType', + type: { + name: 'Composite', + class_name: 'BackendContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb new file mode 100644 index 0000000000..fdc2656897 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_contract.rb @@ -0,0 +1,172 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Backend details. + # + class BackendContract < Resource + + include MsRestAzure + + # @return [String] Backend Title. + attr_accessor :title + + # @return [String] Backend Description. + attr_accessor :description + + # @return [String] Management Uri of the Resource in External System. + # This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + # Apps. + attr_accessor :resource_id + + # @return [BackendProperties] Backend Properties contract + attr_accessor :properties + + # @return [BackendCredentialsContract] Backend Credentials Contract + # Properties + attr_accessor :credentials + + # @return [BackendProxyContract] Backend Proxy Contract Properties + attr_accessor :proxy + + # @return [BackendTlsProperties] Backend TLS Properties + attr_accessor :tls + + # @return [String] Runtime Url of the Backend. + attr_accessor :url + + # @return [BackendProtocol] Backend communication protocol. Possible + # values include: 'http', 'soap' + attr_accessor :protocol + + + # + # Mapper for BackendContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendContract', + type: { + name: 'Composite', + class_name: 'BackendContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + title: { + required: false, + serialized_name: 'properties.title', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + resource_id: { + required: false, + serialized_name: 'properties.resourceId', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + properties: { + required: false, + serialized_name: 'properties.properties', + type: { + name: 'Composite', + class_name: 'BackendProperties' + } + }, + credentials: { + required: false, + serialized_name: 'properties.credentials', + type: { + name: 'Composite', + class_name: 'BackendCredentialsContract' + } + }, + proxy: { + required: false, + serialized_name: 'properties.proxy', + type: { + name: 'Composite', + class_name: 'BackendProxyContract' + } + }, + tls: { + required: false, + serialized_name: 'properties.tls', + type: { + name: 'Composite', + class_name: 'BackendTlsProperties' + } + }, + url: { + required: true, + serialized_name: 'properties.url', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + protocol: { + required: true, + serialized_name: 'properties.protocol', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb new file mode 100644 index 0000000000..4e96e1f9c7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_credentials_contract.rb @@ -0,0 +1,114 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Details of the Credentials used to connect to Backend. + # + class BackendCredentialsContract + + include MsRestAzure + + # @return [Array] List of Client Certificate Thumbprint. + attr_accessor :certificate + + # @return [Hash{String => Array}] Query Parameter description. + attr_accessor :query + + # @return [Hash{String => Array}] Header Parameter description. + attr_accessor :header + + # @return [BackendAuthorizationHeaderCredentials] Authorization header + # authentication + attr_accessor :authorization + + + # + # Mapper for BackendCredentialsContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendCredentialsContract', + type: { + name: 'Composite', + class_name: 'BackendCredentialsContract', + model_properties: { + certificate: { + required: false, + serialized_name: 'certificate', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + query: { + required: false, + serialized_name: 'query', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'ArrayElementType', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + }, + header: { + required: false, + serialized_name: 'header', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'ArrayElementType', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + }, + authorization: { + required: false, + serialized_name: 'authorization', + type: { + name: 'Composite', + class_name: 'BackendAuthorizationHeaderCredentials' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb new file mode 100644 index 0000000000..10df6c043f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_properties.rb @@ -0,0 +1,46 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Properties specific to the Backend Type. + # + class BackendProperties + + include MsRestAzure + + # @return [BackendServiceFabricClusterProperties] Backend Service Fabric + # Cluster Properties + attr_accessor :service_fabric_cluster + + + # + # Mapper for BackendProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendProperties', + type: { + name: 'Composite', + class_name: 'BackendProperties', + model_properties: { + service_fabric_cluster: { + required: false, + serialized_name: 'serviceFabricCluster', + type: { + name: 'Composite', + class_name: 'BackendServiceFabricClusterProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb new file mode 100644 index 0000000000..1da99a6838 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_protocol.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for BackendProtocol + # + module BackendProtocol + Http = "http" + Soap = "soap" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb new file mode 100644 index 0000000000..d15bee24a1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_proxy_contract.rb @@ -0,0 +1,70 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Details of the Backend WebProxy Server to use in the Request to Backend. + # + class BackendProxyContract + + include MsRestAzure + + # @return [String] WebProxy Server AbsoluteUri property which includes + # the entire URI stored in the Uri instance, including all fragments and + # query strings. + attr_accessor :url + + # @return [String] Username to connect to the WebProxy server + attr_accessor :username + + # @return [String] Password to connect to the WebProxy Server + attr_accessor :password + + + # + # Mapper for BackendProxyContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendProxyContract', + type: { + name: 'Composite', + class_name: 'BackendProxyContract', + model_properties: { + url: { + required: true, + serialized_name: 'url', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + username: { + required: false, + serialized_name: 'username', + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'password', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb new file mode 100644 index 0000000000..5e513038e4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_reconnect_contract.rb @@ -0,0 +1,69 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Reconnect request parameters. + # + class BackendReconnectContract < Resource + + include MsRestAzure + + # @return [Duration] Duration in ISO8601 format after which reconnect + # will be initiated. Minimum duration of the Reconect is PT2M. + attr_accessor :after + + + # + # Mapper for BackendReconnectContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendReconnectContract', + type: { + name: 'Composite', + class_name: 'BackendReconnectContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + after: { + required: false, + serialized_name: 'properties.after', + type: { + name: 'TimeSpan' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb new file mode 100644 index 0000000000..e171bbe81c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_service_fabric_cluster_properties.rb @@ -0,0 +1,110 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Properties of the Service Fabric Type Backend. + # + class BackendServiceFabricClusterProperties + + include MsRestAzure + + # @return [String] The client certificate thumbprint for the management + # endpoint. + attr_accessor :client_certificatethumbprint + + # @return [Integer] Maximum number of retries while attempting resolve + # the parition. + attr_accessor :max_partition_resolution_retries + + # @return [Array] The cluster management endpoint. + attr_accessor :management_endpoints + + # @return [Array] Thumbprints of certificates cluster management + # service uses for tls communication + attr_accessor :server_certificate_thumbprints + + # @return [Array] Server X509 Certificate Names + # Collection + attr_accessor :server_x509names + + + # + # Mapper for BackendServiceFabricClusterProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendServiceFabricClusterProperties', + type: { + name: 'Composite', + class_name: 'BackendServiceFabricClusterProperties', + model_properties: { + client_certificatethumbprint: { + required: true, + serialized_name: 'clientCertificatethumbprint', + type: { + name: 'String' + } + }, + max_partition_resolution_retries: { + required: false, + serialized_name: 'maxPartitionResolutionRetries', + type: { + name: 'Number' + } + }, + management_endpoints: { + required: true, + serialized_name: 'managementEndpoints', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + server_certificate_thumbprints: { + required: false, + serialized_name: 'serverCertificateThumbprints', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + server_x509names: { + required: false, + serialized_name: 'serverX509Names', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'X509CertificateNameElementType', + type: { + name: 'Composite', + class_name: 'X509CertificateName' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb new file mode 100644 index 0000000000..be62d2b753 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_tls_properties.rb @@ -0,0 +1,60 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Properties controlling TLS Certificate Validation. + # + class BackendTlsProperties + + include MsRestAzure + + # @return [Boolean] Flag indicating whether SSL certificate chain + # validation should be done when using self-signed certificates for this + # backend host. Default value: true . + attr_accessor :validate_certificate_chain + + # @return [Boolean] Flag indicating whether SSL certificate name + # validation should be done when using self-signed certificates for this + # backend host. Default value: true . + attr_accessor :validate_certificate_name + + + # + # Mapper for BackendTlsProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendTlsProperties', + type: { + name: 'Composite', + class_name: 'BackendTlsProperties', + model_properties: { + validate_certificate_chain: { + required: false, + serialized_name: 'validateCertificateChain', + default_value: true, + type: { + name: 'Boolean' + } + }, + validate_certificate_name: { + required: false, + serialized_name: 'validateCertificateName', + default_value: true, + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb new file mode 100644 index 0000000000..e871509a3c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/backend_update_parameters.rb @@ -0,0 +1,148 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Backend update parameters. + # + class BackendUpdateParameters + + include MsRestAzure + + # @return [String] Backend Title. + attr_accessor :title + + # @return [String] Backend Description. + attr_accessor :description + + # @return [String] Management Uri of the Resource in External System. + # This url can be the Arm Resource Id of Logic Apps, Function Apps or Api + # Apps. + attr_accessor :resource_id + + # @return [BackendProperties] Backend Properties contract + attr_accessor :properties + + # @return [BackendCredentialsContract] Backend Credentials Contract + # Properties + attr_accessor :credentials + + # @return [BackendProxyContract] Backend Proxy Contract Properties + attr_accessor :proxy + + # @return [BackendTlsProperties] Backend TLS Properties + attr_accessor :tls + + # @return [String] Runtime Url of the Backend. + attr_accessor :url + + # @return [BackendProtocol] Backend communication protocol. Possible + # values include: 'http', 'soap' + attr_accessor :protocol + + + # + # Mapper for BackendUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'BackendUpdateParameters', + type: { + name: 'Composite', + class_name: 'BackendUpdateParameters', + model_properties: { + title: { + required: false, + serialized_name: 'properties.title', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + resource_id: { + required: false, + serialized_name: 'properties.resourceId', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + properties: { + required: false, + serialized_name: 'properties.properties', + type: { + name: 'Composite', + class_name: 'BackendProperties' + } + }, + credentials: { + required: false, + serialized_name: 'properties.credentials', + type: { + name: 'Composite', + class_name: 'BackendCredentialsContract' + } + }, + proxy: { + required: false, + serialized_name: 'properties.proxy', + type: { + name: 'Composite', + class_name: 'BackendProxyContract' + } + }, + tls: { + required: false, + serialized_name: 'properties.tls', + type: { + name: 'Composite', + class_name: 'BackendTlsProperties' + } + }, + url: { + required: false, + serialized_name: 'properties.url', + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + protocol: { + required: false, + serialized_name: 'properties.protocol', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb new file mode 100644 index 0000000000..9c2101067b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/bearer_token_sending_method.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for BearerTokenSendingMethod + # + module BearerTokenSendingMethod + AuthorizationHeader = "authorizationHeader" + Query = "query" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb new file mode 100644 index 0000000000..15defeec9f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Certificates list representation. + # + class CertificateCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [CertificateCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for CertificateCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CertificateCollection', + type: { + name: 'Composite', + class_name: 'CertificateCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'CertificateContractElementType', + type: { + name: 'Composite', + class_name: 'CertificateContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb new file mode 100644 index 0000000000..4647f78cce --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_configuration.rb @@ -0,0 +1,79 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Certificate configuration which consist of non-trusted intermediates and + # root certificates. + # + class CertificateConfiguration + + include MsRestAzure + + # @return [String] Base64 Encoded certificate. + attr_accessor :encoded_certificate + + # @return [String] Certificate Password. + attr_accessor :certificate_password + + # @return [Enum] The + # System.Security.Cryptography.x509certificates.Storename certificate + # store location. Only Root and CertificateAuthority are valid locations. + # Possible values include: 'CertificateAuthority', 'Root' + attr_accessor :store_name + + # @return [CertificateInformation] Certificate information. + attr_accessor :certificate + + + # + # Mapper for CertificateConfiguration class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CertificateConfiguration', + type: { + name: 'Composite', + class_name: 'CertificateConfiguration', + model_properties: { + encoded_certificate: { + required: false, + serialized_name: 'encodedCertificate', + type: { + name: 'String' + } + }, + certificate_password: { + required: false, + serialized_name: 'certificatePassword', + type: { + name: 'String' + } + }, + store_name: { + required: true, + serialized_name: 'storeName', + type: { + name: 'String' + } + }, + certificate: { + required: false, + serialized_name: 'certificate', + type: { + name: 'Composite', + class_name: 'CertificateInformation' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb new file mode 100644 index 0000000000..666e0c68a4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_contract.rb @@ -0,0 +1,91 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Certificate details. + # + class CertificateContract < Resource + + include MsRestAzure + + # @return [String] Subject attribute of the certificate. + attr_accessor :subject + + # @return [String] Thumbprint of the certificate. + attr_accessor :thumbprint + + # @return [DateTime] Expiration date of the certificate. The date + # conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + # by the ISO 8601 standard. + # + attr_accessor :expiration_date + + + # + # Mapper for CertificateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CertificateContract', + type: { + name: 'Composite', + class_name: 'CertificateContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + subject: { + required: true, + serialized_name: 'properties.subject', + type: { + name: 'String' + } + }, + thumbprint: { + required: true, + serialized_name: 'properties.thumbprint', + type: { + name: 'String' + } + }, + expiration_date: { + required: true, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb new file mode 100644 index 0000000000..f51b20c3e5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_create_or_update_parameters.rb @@ -0,0 +1,55 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Certificate create or update details. + # + class CertificateCreateOrUpdateParameters + + include MsRestAzure + + # @return [String] Base 64 encoded certificate using the + # application/x-pkcs12 representation. + attr_accessor :data + + # @return [String] Password for the Certificate + attr_accessor :password + + + # + # Mapper for CertificateCreateOrUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CertificateCreateOrUpdateParameters', + type: { + name: 'Composite', + class_name: 'CertificateCreateOrUpdateParameters', + model_properties: { + data: { + required: true, + serialized_name: 'properties.data', + type: { + name: 'String' + } + }, + password: { + required: true, + serialized_name: 'properties.password', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb new file mode 100644 index 0000000000..939ec4176d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/certificate_information.rb @@ -0,0 +1,66 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # SSL certificate information. + # + class CertificateInformation + + include MsRestAzure + + # @return [DateTime] Expiration date of the certificate. The date + # conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + # by the ISO 8601 standard. + attr_accessor :expiry + + # @return [String] Thumbprint of the certificate. + attr_accessor :thumbprint + + # @return [String] Subject of the certificate. + attr_accessor :subject + + + # + # Mapper for CertificateInformation class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CertificateInformation', + type: { + name: 'Composite', + class_name: 'CertificateInformation', + model_properties: { + expiry: { + required: true, + serialized_name: 'expiry', + type: { + name: 'DateTime' + } + }, + thumbprint: { + required: true, + serialized_name: 'thumbprint', + type: { + name: 'String' + } + }, + subject: { + required: true, + serialized_name: 'subject', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb new file mode 100644 index 0000000000..52679997c5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/client_authentication_method.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for ClientAuthenticationMethod + # + module ClientAuthenticationMethod + Basic = "Basic" + Body = "Body" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb new file mode 100644 index 0000000000..a741634c5d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/confirmation.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for Confirmation + # + module Confirmation + Signup = "signup" + Invite = "invite" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb new file mode 100644 index 0000000000..b5a4c62320 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb @@ -0,0 +1,101 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Details about connectivity to a resource. + # + class ConnectivityStatusContract + + include MsRestAzure + + # @return [String] The hostname of the resource which the service depends + # on. This can be the database, storage or any other azure resource on + # which the service depends upon. + attr_accessor :name + + # @return [ConnectivityStatusType] Resource Connectivity Status Type + # identifier. Possible values include: 'initializing', 'success', + # 'failure' + attr_accessor :status + + # @return [String] Error details of the connectivity to the resource. + attr_accessor :error + + # @return [DateTime] The date when the resource connectivity status was + # last updated. This status should be updated every 15 minutes. If this + # status has not been updated, then it means that the service has lost + # network connectivity to the resource, from inside the Virtual + # Network.The date conforms to the following format: + # `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + # + attr_accessor :last_updated + + # @return [DateTime] The date when the resource connectivity status last + # Changed from success to failure or vice-versa. The date conforms to the + # following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 + # standard. + # + attr_accessor :last_status_change + + + # + # Mapper for ConnectivityStatusContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ConnectivityStatusContract', + type: { + name: 'Composite', + class_name: 'ConnectivityStatusContract', + model_properties: { + name: { + required: true, + serialized_name: 'name', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + status: { + required: true, + serialized_name: 'status', + type: { + name: 'String' + } + }, + error: { + required: false, + serialized_name: 'error', + type: { + name: 'String' + } + }, + last_updated: { + required: true, + serialized_name: 'lastUpdated', + type: { + name: 'DateTime' + } + }, + last_status_change: { + required: true, + serialized_name: 'lastStatusChange', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb new file mode 100644 index 0000000000..4d3da3590a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_type.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for ConnectivityStatusType + # + module ConnectivityStatusType + Initializing = "initializing" + Success = "success" + Failure = "failure" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb new file mode 100644 index 0000000000..e58448e375 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/content_format.rb @@ -0,0 +1,20 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for ContentFormat + # + module ContentFormat + WadlXml = "wadl-xml" + WadlLinkJson = "wadl-link-json" + SwaggerJson = "swagger-json" + SwaggerLinkJson = "swagger-link-json" + Wsdl = "wsdl" + WsdlLink = "wsdl-link" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb new file mode 100644 index 0000000000..06504b5594 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/deploy_configuration_parameters.rb @@ -0,0 +1,56 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Deploy Configuration operation. + # + class DeployConfigurationParameters + + include MsRestAzure + + # @return [String] The name of the Git branch from which the + # configuration is to be deployed to the configuration database. + attr_accessor :branch + + # @return [Boolean] The value enforcing deleting subscriptions to + # products that are deleted in this update. + attr_accessor :force + + + # + # Mapper for DeployConfigurationParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DeployConfigurationParameters', + type: { + name: 'Composite', + class_name: 'DeployConfigurationParameters', + model_properties: { + branch: { + required: true, + serialized_name: 'branch', + type: { + name: 'String' + } + }, + force: { + required: false, + serialized_name: 'force', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb new file mode 100644 index 0000000000..0c09eec787 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Diagnostic list representation. + # + class DiagnosticCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [DiagnosticCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for DiagnosticCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DiagnosticCollection', + type: { + name: 'Composite', + class_name: 'DiagnosticCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DiagnosticContractElementType', + type: { + name: 'Composite', + class_name: 'DiagnosticContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb new file mode 100644 index 0000000000..6f0ada800d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb @@ -0,0 +1,69 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Diagnostic details. + # + class DiagnosticContract < Resource + + include MsRestAzure + + # @return [Boolean] Indicates whether a diagnostic should receive data or + # not. + attr_accessor :enabled + + + # + # Mapper for DiagnosticContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DiagnosticContract', + type: { + name: 'Composite', + class_name: 'DiagnosticContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + enabled: { + required: true, + serialized_name: 'properties.enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb new file mode 100644 index 0000000000..f190f2ff72 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged email template list representation. + # + class EmailTemplateCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [EmailTemplateCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for EmailTemplateCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EmailTemplateCollection', + type: { + name: 'Composite', + class_name: 'EmailTemplateCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EmailTemplateContractElementType', + type: { + name: 'Composite', + class_name: 'EmailTemplateContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb new file mode 100644 index 0000000000..e17258edbb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_contract.rb @@ -0,0 +1,136 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Email Template details. + # + class EmailTemplateContract < Resource + + include MsRestAzure + + # @return [String] Subject of the Template. + attr_accessor :subject + + # @return [String] Email Template Body. This should be a valid XDocument + attr_accessor :body + + # @return [String] Title of the Template. + attr_accessor :title + + # @return [String] Description of the Email Template. + attr_accessor :description + + # @return [Boolean] Whether the template is the default template provided + # by Api Management or has been edited. + attr_accessor :is_default + + # @return [Array] Email + # Template Parameter values. + attr_accessor :parameters + + + # + # Mapper for EmailTemplateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EmailTemplateContract', + type: { + name: 'Composite', + class_name: 'EmailTemplateContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + subject: { + required: true, + serialized_name: 'properties.subject', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + body: { + required: true, + serialized_name: 'properties.body', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + title: { + required: false, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + is_default: { + required: false, + read_only: true, + serialized_name: 'properties.isDefault', + type: { + name: 'Boolean' + } + }, + parameters: { + required: false, + serialized_name: 'properties.parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EmailTemplateParametersContractPropertiesElementType', + type: { + name: 'Composite', + class_name: 'EmailTemplateParametersContractProperties' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb new file mode 100644 index 0000000000..23b4541660 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_parameters_contract_properties.rb @@ -0,0 +1,79 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Email Template Parameter contract. + # + class EmailTemplateParametersContractProperties + + include MsRestAzure + + # @return [String] Template parameter name. + attr_accessor :name + + # @return [String] Template parameter title. + attr_accessor :title + + # @return [String] Template parameter description. + attr_accessor :description + + + # + # Mapper for EmailTemplateParametersContractProperties class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EmailTemplateParametersContractProperties', + type: { + name: 'Composite', + class_name: 'EmailTemplateParametersContractProperties', + model_properties: { + name: { + required: false, + serialized_name: 'name', + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: '^[A-Za-z0-9-._]+$' + }, + type: { + name: 'String' + } + }, + title: { + required: false, + serialized_name: 'title', + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: '^[A-Za-z0-9-._]+$' + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb new file mode 100644 index 0000000000..2ab613df9a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/email_template_update_parameters.rb @@ -0,0 +1,100 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Email Template update Parameters. + # + class EmailTemplateUpdateParameters + + include MsRestAzure + + # @return [String] Subject of the Template. + attr_accessor :subject + + # @return [String] Title of the Template. + attr_accessor :title + + # @return [String] Description of the Email Template. + attr_accessor :description + + # @return [String] Email Template Body. This should be a valid XDocument + attr_accessor :body + + # @return [Array] Email + # Template Parameter values. + attr_accessor :parameters + + + # + # Mapper for EmailTemplateUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'EmailTemplateUpdateParameters', + type: { + name: 'Composite', + class_name: 'EmailTemplateUpdateParameters', + model_properties: { + subject: { + required: false, + serialized_name: 'properties.subject', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + title: { + required: false, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + body: { + required: false, + serialized_name: 'properties.body', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + parameters: { + required: false, + serialized_name: 'properties.parameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'EmailTemplateParametersContractPropertiesElementType', + type: { + name: 'Composite', + class_name: 'EmailTemplateParametersContractProperties' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb new file mode 100644 index 0000000000..d63aedd531 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_field_contract.rb @@ -0,0 +1,64 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Error Field contract. + # + class ErrorFieldContract + + include MsRestAzure + + # @return [String] Property level error code. + attr_accessor :code + + # @return [String] Human-readable representation of property-level error. + attr_accessor :message + + # @return [String] Property name. + attr_accessor :target + + + # + # Mapper for ErrorFieldContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ErrorFieldContract', + type: { + name: 'Composite', + class_name: 'ErrorFieldContract', + model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + }, + target: { + required: false, + serialized_name: 'target', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb new file mode 100644 index 0000000000..9bd68b2734 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response.rb @@ -0,0 +1,74 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Error Response. + # + class ErrorResponse + + include MsRestAzure + + # @return [String] Service-defined error code. This code serves as a + # sub-status for the HTTP error code specified in the response. + attr_accessor :code + + # @return [String] Human-readable representation of the error. + attr_accessor :message + + # @return [Array] The list of invalid fields send in + # request, in case of validation error. + attr_accessor :details + + + # + # Mapper for ErrorResponse class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ErrorResponse', + type: { + name: 'Composite', + class_name: 'ErrorResponse', + model_properties: { + code: { + required: false, + serialized_name: 'error.code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'error.message', + type: { + name: 'String' + } + }, + details: { + required: false, + serialized_name: 'error.details', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ErrorFieldContractElementType', + type: { + name: 'Composite', + class_name: 'ErrorFieldContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb new file mode 100644 index 0000000000..218197796a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/error_response_body.rb @@ -0,0 +1,74 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Error Body contract. + # + class ErrorResponseBody + + include MsRestAzure + + # @return [String] Service-defined error code. This code serves as a + # sub-status for the HTTP error code specified in the response. + attr_accessor :code + + # @return [String] Human-readable representation of the error. + attr_accessor :message + + # @return [Array] The list of invalid fields send in + # request, in case of validation error. + attr_accessor :details + + + # + # Mapper for ErrorResponseBody class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ErrorResponseBody', + type: { + name: 'Composite', + class_name: 'ErrorResponseBody', + model_properties: { + code: { + required: false, + serialized_name: 'code', + type: { + name: 'String' + } + }, + message: { + required: false, + serialized_name: 'message', + type: { + name: 'String' + } + }, + details: { + required: false, + serialized_name: 'details', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ErrorFieldContractElementType', + type: { + name: 'Composite', + class_name: 'ErrorFieldContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb new file mode 100644 index 0000000000..6cb51c0f22 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/export_format.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for ExportFormat + # + module ExportFormat + Swagger = "swagger-link" + Wsdl = "wsdl-link" + Wadl = "wadl-link" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb new file mode 100644 index 0000000000..773bb4fac7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/generate_sso_url_result.rb @@ -0,0 +1,44 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Generate SSO Url operations response details. + # + class GenerateSsoUrlResult + + include MsRestAzure + + # @return [String] Redirect Url containing the SSO URL value. + attr_accessor :value + + + # + # Mapper for GenerateSsoUrlResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GenerateSsoUrlResult', + type: { + name: 'Composite', + class_name: 'GenerateSsoUrlResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb new file mode 100644 index 0000000000..f722726a42 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/grant_type.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for GrantType + # + module GrantType + AuthorizationCode = "authorizationCode" + Implicit = "implicit" + ResourceOwnerPassword = "resourceOwnerPassword" + ClientCredentials = "clientCredentials" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb new file mode 100644 index 0000000000..deaa6a7f34 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Group list representation. + # + class GroupCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [GroupCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for GroupCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GroupCollection', + type: { + name: 'Composite', + class_name: 'GroupCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'GroupContractElementType', + type: { + name: 'Composite', + class_name: 'GroupContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb new file mode 100644 index 0000000000..8544f4ec1c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract.rb @@ -0,0 +1,122 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Contract details. + # + class GroupContract < Resource + + include MsRestAzure + + # @return [String] Group name. + attr_accessor :display_name + + # @return [String] Group description. Can contain HTML formatting tags. + attr_accessor :description + + # @return [Boolean] true if the group is one of the three system groups + # (Administrators, Developers, or Guests); otherwise false. + attr_accessor :built_in + + # @return [GroupType] Group type. Possible values include: 'custom', + # 'system', 'external' + attr_accessor :group_contract_type + + # @return [String] For external groups, this property contains the id of + # the group from the external identity provider, e.g. for Azure Active + # Directory aad://.onmicrosoft.com/groups/; + # otherwise the value is null. + attr_accessor :external_id + + + # + # Mapper for GroupContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GroupContract', + type: { + name: 'Composite', + class_name: 'GroupContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 1000 + }, + type: { + name: 'String' + } + }, + built_in: { + required: false, + read_only: true, + serialized_name: 'properties.builtIn', + type: { + name: 'Boolean' + } + }, + group_contract_type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'Enum', + module: 'GroupType' + } + }, + external_id: { + required: false, + serialized_name: 'properties.externalId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb new file mode 100644 index 0000000000..90bb57c014 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_contract_properties.rb @@ -0,0 +1,98 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Group contract Properties. + # + class GroupContractProperties + + include MsRestAzure + + # @return [String] Group name. + attr_accessor :display_name + + # @return [String] Group description. Can contain HTML formatting tags. + attr_accessor :description + + # @return [Boolean] true if the group is one of the three system groups + # (Administrators, Developers, or Guests); otherwise false. + attr_accessor :built_in + + # @return [GroupType] Group type. Possible values include: 'custom', + # 'system', 'external' + attr_accessor :type + + # @return [String] For external groups, this property contains the id of + # the group from the external identity provider, e.g. for Azure Active + # Directory aad://.onmicrosoft.com/groups/; + # otherwise the value is null. + attr_accessor :external_id + + + # + # Mapper for GroupContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GroupContractProperties', + type: { + name: 'Composite', + class_name: 'GroupContractProperties', + model_properties: { + display_name: { + required: true, + serialized_name: 'displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + constraints: { + MaxLength: 1000 + }, + type: { + name: 'String' + } + }, + built_in: { + required: false, + read_only: true, + serialized_name: 'builtIn', + type: { + name: 'Boolean' + } + }, + type: { + required: false, + serialized_name: 'type', + type: { + name: 'Enum', + module: 'GroupType' + } + }, + external_id: { + required: false, + serialized_name: 'externalId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb new file mode 100644 index 0000000000..b42a617d3d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_create_parameters.rb @@ -0,0 +1,83 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Create Group operation. + # + class GroupCreateParameters + + include MsRestAzure + + # @return [String] Group name. + attr_accessor :display_name + + # @return [String] Group description. + attr_accessor :description + + # @return [GroupType] Group type. Possible values include: 'custom', + # 'system', 'external' + attr_accessor :type + + # @return [String] Identifier of the external groups, this property + # contains the id of the group from the external identity provider, e.g. + # for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. + attr_accessor :external_id + + + # + # Mapper for GroupCreateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GroupCreateParameters', + type: { + name: 'Composite', + class_name: 'GroupCreateParameters', + model_properties: { + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'Enum', + module: 'GroupType' + } + }, + external_id: { + required: false, + serialized_name: 'properties.externalId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb new file mode 100644 index 0000000000..6324409ecb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_type.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for GroupType + # + module GroupType + Custom = "custom" + System = "system" + External = "external" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb new file mode 100644 index 0000000000..ac5eb974c6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/group_update_parameters.rb @@ -0,0 +1,83 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Update Group operation. + # + class GroupUpdateParameters + + include MsRestAzure + + # @return [String] Group name. + attr_accessor :display_name + + # @return [String] Group description. + attr_accessor :description + + # @return [GroupType] Group type. Possible values include: 'custom', + # 'system', 'external' + attr_accessor :type + + # @return [String] Identifier of the external groups, this property + # contains the id of the group from the external identity provider, e.g. + # for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. + attr_accessor :external_id + + + # + # Mapper for GroupUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'GroupUpdateParameters', + type: { + name: 'Composite', + class_name: 'GroupUpdateParameters', + model_properties: { + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'Enum', + module: 'GroupType' + } + }, + external_id: { + required: false, + serialized_name: 'properties.externalId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb new file mode 100644 index 0000000000..16de47a386 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration.rb @@ -0,0 +1,129 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Custom hostname configuration. + # + class HostnameConfiguration + + include MsRestAzure + + # @return [HostnameType] Hostname type. Possible values include: 'Proxy', + # 'Portal', 'Management', 'Scm' + attr_accessor :type + + # @return [String] Hostname to configure on the Api Management service. + attr_accessor :host_name + + # @return [String] Url to the KeyVault Secret containing the Ssl + # Certificate. If absolute Url containing version is provided, + # auto-update of ssl certificate will not work. This requires Api + # Management service to be configured with MSI. The secret should be of + # type *application/x-pkcs12* + attr_accessor :key_vault_id + + # @return [String] Base64 Encoded certificate. + attr_accessor :encoded_certificate + + # @return [String] Certificate Password. + attr_accessor :certificate_password + + # @return [Boolean] Specify true to setup the certificate associated with + # this Hostname as the Default SSL Certificate. If a client does not send + # the SNI header, then this will be the certificate that will be + # challenged. The property is useful if a service has multiple custom + # hostname enabled and it needs to decide on the default ssl certificate. + # The setting only applied to Proxy Hostname Type. Default value: false . + attr_accessor :default_ssl_binding + + # @return [Boolean] Specify true to always negotiate client certificate + # on the hostname. Default Value is false. Default value: false . + attr_accessor :negotiate_client_certificate + + # @return [CertificateInformation] Certificate information. + attr_accessor :certificate + + + # + # Mapper for HostnameConfiguration class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'HostnameConfiguration', + type: { + name: 'Composite', + class_name: 'HostnameConfiguration', + model_properties: { + type: { + required: true, + serialized_name: 'type', + type: { + name: 'Enum', + module: 'HostnameType' + } + }, + host_name: { + required: true, + serialized_name: 'hostName', + type: { + name: 'String' + } + }, + key_vault_id: { + required: false, + serialized_name: 'keyVaultId', + type: { + name: 'String' + } + }, + encoded_certificate: { + required: false, + serialized_name: 'encodedCertificate', + type: { + name: 'String' + } + }, + certificate_password: { + required: false, + serialized_name: 'certificatePassword', + type: { + name: 'String' + } + }, + default_ssl_binding: { + required: false, + serialized_name: 'defaultSslBinding', + default_value: false, + type: { + name: 'Boolean' + } + }, + negotiate_client_certificate: { + required: false, + serialized_name: 'negotiateClientCertificate', + default_value: false, + type: { + name: 'Boolean' + } + }, + certificate: { + required: false, + serialized_name: 'certificate', + type: { + name: 'Composite', + class_name: 'CertificateInformation' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb new file mode 100644 index 0000000000..ab5077e29f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_configuration_old.rb @@ -0,0 +1,67 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Custom hostname configuration. + # + class HostnameConfigurationOld + + include MsRestAzure + + # @return [HostnameType] Hostname type. Possible values include: 'Proxy', + # 'Portal', 'Management', 'Scm' + attr_accessor :type + + # @return [String] Hostname to configure. + attr_accessor :hostname + + # @return [CertificateInformation] Certificate information. + attr_accessor :certificate + + + # + # Mapper for HostnameConfigurationOld class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'HostnameConfigurationOld', + type: { + name: 'Composite', + class_name: 'HostnameConfigurationOld', + model_properties: { + type: { + required: true, + serialized_name: 'type', + type: { + name: 'Enum', + module: 'HostnameType' + } + }, + hostname: { + required: true, + serialized_name: 'hostname', + type: { + name: 'String' + } + }, + certificate: { + required: true, + serialized_name: 'certificate', + type: { + name: 'Composite', + class_name: 'CertificateInformation' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb new file mode 100644 index 0000000000..92803a31ce --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/hostname_type.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for HostnameType + # + module HostnameType + Proxy = "Proxy" + Portal = "Portal" + Management = "Management" + Scm = "Scm" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb new file mode 100644 index 0000000000..883d068d9b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_base_parameters.rb @@ -0,0 +1,123 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Identity Provider Base Parameter Properties. + # + class IdentityProviderBaseParameters + + include MsRestAzure + + # @return [IdentityProviderType] Identity Provider Type identifier. + # Possible values include: 'facebook', 'google', 'microsoft', 'twitter', + # 'aad', 'aadB2C' + attr_accessor :type + + # @return [Array] List of Allowed Tenants when configuring Azure + # Active Directory login. + attr_accessor :allowed_tenants + + # @return [String] Signup Policy Name. Only applies to AAD B2C Identity + # Provider. + attr_accessor :signup_policy_name + + # @return [String] Signin Policy Name. Only applies to AAD B2C Identity + # Provider. + attr_accessor :signin_policy_name + + # @return [String] Profile Editing Policy Name. Only applies to AAD B2C + # Identity Provider. + attr_accessor :profile_editing_policy_name + + # @return [String] Password Reset Policy Name. Only applies to AAD B2C + # Identity Provider. + attr_accessor :password_reset_policy_name + + + # + # Mapper for IdentityProviderBaseParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IdentityProviderBaseParameters', + type: { + name: 'Composite', + class_name: 'IdentityProviderBaseParameters', + model_properties: { + type: { + required: false, + serialized_name: 'type', + type: { + name: 'String' + } + }, + allowed_tenants: { + required: false, + serialized_name: 'allowedTenants', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + signup_policy_name: { + required: false, + serialized_name: 'signupPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + signin_policy_name: { + required: false, + serialized_name: 'signinPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + profile_editing_policy_name: { + required: false, + serialized_name: 'profileEditingPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + password_reset_policy_name: { + required: false, + serialized_name: 'passwordResetPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb new file mode 100644 index 0000000000..1a4be45b4e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_contract.rb @@ -0,0 +1,178 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Identity Provider details. + # + class IdentityProviderContract < Resource + + include MsRestAzure + + # @return [IdentityProviderType] Identity Provider Type identifier. + # Possible values include: 'facebook', 'google', 'microsoft', 'twitter', + # 'aad', 'aadB2C' + attr_accessor :identity_provider_contract_type + + # @return [Array] List of Allowed Tenants when configuring Azure + # Active Directory login. + attr_accessor :allowed_tenants + + # @return [String] Signup Policy Name. Only applies to AAD B2C Identity + # Provider. + attr_accessor :signup_policy_name + + # @return [String] Signin Policy Name. Only applies to AAD B2C Identity + # Provider. + attr_accessor :signin_policy_name + + # @return [String] Profile Editing Policy Name. Only applies to AAD B2C + # Identity Provider. + attr_accessor :profile_editing_policy_name + + # @return [String] Password Reset Policy Name. Only applies to AAD B2C + # Identity Provider. + attr_accessor :password_reset_policy_name + + # @return [String] Client Id of the Application in the external Identity + # Provider. It is App ID for Facebook login, Client ID for Google login, + # App ID for Microsoft. + attr_accessor :client_id + + # @return [String] Client secret of the Application in external Identity + # Provider, used to authenticate login request. For example, it is App + # Secret for Facebook login, API Key for Google login, Public Key for + # Microsoft. + attr_accessor :client_secret + + + # + # Mapper for IdentityProviderContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IdentityProviderContract', + type: { + name: 'Composite', + class_name: 'IdentityProviderContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + identity_provider_contract_type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'String' + } + }, + allowed_tenants: { + required: false, + serialized_name: 'properties.allowedTenants', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + signup_policy_name: { + required: false, + serialized_name: 'properties.signupPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + signin_policy_name: { + required: false, + serialized_name: 'properties.signinPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + profile_editing_policy_name: { + required: false, + serialized_name: 'properties.profileEditingPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + password_reset_policy_name: { + required: false, + serialized_name: 'properties.passwordResetPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + client_id: { + required: true, + serialized_name: 'properties.clientId', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + client_secret: { + required: true, + serialized_name: 'properties.clientSecret', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb new file mode 100644 index 0000000000..ae535243ab --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_list.rb @@ -0,0 +1,95 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # List of all the Identity Providers configured on the service instance. + # + class IdentityProviderList + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Identity Provider + # configuration values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [IdentityProviderList] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for IdentityProviderList class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IdentityProviderList', + type: { + name: 'Composite', + class_name: 'IdentityProviderList', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'IdentityProviderContractElementType', + type: { + name: 'Composite', + class_name: 'IdentityProviderContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb new file mode 100644 index 0000000000..4c62183d77 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_type.rb @@ -0,0 +1,20 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for IdentityProviderType + # + module IdentityProviderType + Facebook = "facebook" + Google = "google" + Microsoft = "microsoft" + Twitter = "twitter" + Aad = "aad" + AadB2C = "aadB2C" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb new file mode 100644 index 0000000000..f4673f04c0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/identity_provider_update_parameters.rb @@ -0,0 +1,154 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to update Identity Provider + # + class IdentityProviderUpdateParameters + + include MsRestAzure + + # @return [IdentityProviderType] Identity Provider Type identifier. + # Possible values include: 'facebook', 'google', 'microsoft', 'twitter', + # 'aad', 'aadB2C' + attr_accessor :type + + # @return [Array] List of Allowed Tenants when configuring Azure + # Active Directory login. + attr_accessor :allowed_tenants + + # @return [String] Signup Policy Name. Only applies to AAD B2C Identity + # Provider. + attr_accessor :signup_policy_name + + # @return [String] Signin Policy Name. Only applies to AAD B2C Identity + # Provider. + attr_accessor :signin_policy_name + + # @return [String] Profile Editing Policy Name. Only applies to AAD B2C + # Identity Provider. + attr_accessor :profile_editing_policy_name + + # @return [String] Password Reset Policy Name. Only applies to AAD B2C + # Identity Provider. + attr_accessor :password_reset_policy_name + + # @return [String] Client Id of the Application in the external Identity + # Provider. It is App ID for Facebook login, Client ID for Google login, + # App ID for Microsoft. + attr_accessor :client_id + + # @return [String] Client secret of the Application in external Identity + # Provider, used to authenticate login request. For example, it is App + # Secret for Facebook login, API Key for Google login, Public Key for + # Microsoft. + attr_accessor :client_secret + + + # + # Mapper for IdentityProviderUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IdentityProviderUpdateParameters', + type: { + name: 'Composite', + class_name: 'IdentityProviderUpdateParameters', + model_properties: { + type: { + required: false, + serialized_name: 'properties.type', + type: { + name: 'String' + } + }, + allowed_tenants: { + required: false, + serialized_name: 'properties.allowedTenants', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + signup_policy_name: { + required: false, + serialized_name: 'properties.signupPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + signin_policy_name: { + required: false, + serialized_name: 'properties.signinPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + profile_editing_policy_name: { + required: false, + serialized_name: 'properties.profileEditingPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + password_reset_policy_name: { + required: false, + serialized_name: 'properties.passwordResetPolicyName', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + client_id: { + required: false, + serialized_name: 'properties.clientId', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + client_secret: { + required: false, + serialized_name: 'properties.clientSecret', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb new file mode 100644 index 0000000000..13d9c46b8c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Issue Attachment list representation. + # + class IssueAttachmentCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Issue Attachment values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [IssueAttachmentCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for IssueAttachmentCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueAttachmentCollection', + type: { + name: 'Composite', + class_name: 'IssueAttachmentCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'IssueAttachmentContractElementType', + type: { + name: 'Composite', + class_name: 'IssueAttachmentContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb new file mode 100644 index 0000000000..3f4e0f0ac4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_attachment_contract.rb @@ -0,0 +1,90 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Issue Attachment Contract details. + # + class IssueAttachmentContract < Resource + + include MsRestAzure + + # @return [String] Filename by which the binary data will be saved. + attr_accessor :title + + # @return [String] Either 'link' if content is provided via an HTTP link + # or the MIME type of the Base64-encoded binary data provided in the + # 'content' property. + attr_accessor :content_format + + # @return [String] An HTTP link or Base64-encoded binary data. + attr_accessor :content + + + # + # Mapper for IssueAttachmentContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueAttachmentContract', + type: { + name: 'Composite', + class_name: 'IssueAttachmentContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + title: { + required: true, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + content_format: { + required: true, + serialized_name: 'properties.contentFormat', + type: { + name: 'String' + } + }, + content: { + required: true, + serialized_name: 'properties.content', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb new file mode 100644 index 0000000000..bf40e69e90 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Issue list representation. + # + class IssueCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Issue values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [IssueCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for IssueCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueCollection', + type: { + name: 'Composite', + class_name: 'IssueCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'IssueContractElementType', + type: { + name: 'Composite', + class_name: 'IssueContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb new file mode 100644 index 0000000000..3a2da614b1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Issue Comment list representation. + # + class IssueCommentCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Issue Comment values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [IssueCommentCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for IssueCommentCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueCommentCollection', + type: { + name: 'Composite', + class_name: 'IssueCommentCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'IssueCommentContractElementType', + type: { + name: 'Composite', + class_name: 'IssueCommentContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb new file mode 100644 index 0000000000..86993a80b5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_comment_contract.rb @@ -0,0 +1,89 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Issue Comment Contract details. + # + class IssueCommentContract < Resource + + include MsRestAzure + + # @return [String] Comment text. + attr_accessor :text + + # @return [DateTime] Date and time when the comment was created. + attr_accessor :created_date + + # @return [String] A resource identifier for the user who left the + # comment. + attr_accessor :user_id + + + # + # Mapper for IssueCommentContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueCommentContract', + type: { + name: 'Composite', + class_name: 'IssueCommentContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + text: { + required: true, + serialized_name: 'properties.text', + type: { + name: 'String' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + user_id: { + required: true, + serialized_name: 'properties.userId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb new file mode 100644 index 0000000000..3f5e0f7d2d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/issue_contract.rb @@ -0,0 +1,120 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Issue Contract details. + # + class IssueContract < Resource + + include MsRestAzure + + # @return [String] The issue title. + attr_accessor :title + + # @return [String] Text describing the issue. + attr_accessor :description + + # @return [DateTime] Date and time when the issue was created. + attr_accessor :created_date + + # @return [State] Status of the issue. Possible values include: + # 'proposed', 'open', 'removed', 'resolved', 'closed' + attr_accessor :state + + # @return [String] A resource identifier for the user created the issue. + attr_accessor :user_id + + # @return [String] A resource identifier for the API the issue was + # created for. + attr_accessor :api_id + + + # + # Mapper for IssueContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'IssueContract', + type: { + name: 'Composite', + class_name: 'IssueContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + title: { + required: true, + serialized_name: 'properties.title', + type: { + name: 'String' + } + }, + description: { + required: true, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + created_date: { + required: false, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'String' + } + }, + user_id: { + required: true, + serialized_name: 'properties.userId', + type: { + name: 'String' + } + }, + api_id: { + required: false, + serialized_name: 'properties.apiId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb new file mode 100644 index 0000000000..197d7b6e02 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/key_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for KeyType + # + module KeyType + Primary = "primary" + Secondary = "secondary" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb new file mode 100644 index 0000000000..2f9a5db107 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_collection.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Logger list representation. + # + class LoggerCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Logger values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [LoggerCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for LoggerCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoggerCollection', + type: { + name: 'Composite', + class_name: 'LoggerCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'LoggerContractElementType', + type: { + name: 'Composite', + class_name: 'LoggerContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb new file mode 100644 index 0000000000..972d3644b4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_contract.rb @@ -0,0 +1,112 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Logger details. + # + class LoggerContract < Resource + + include MsRestAzure + + # @return [LoggerType] Logger type. Possible values include: + # 'azureEventHub', 'applicationInsights' + attr_accessor :logger_type + + # @return [String] Logger description. + attr_accessor :description + + # @return [Hash{String => String}] The name and SendRule connection + # string of the event hub for azureEventHub logger. + # Instrumentation key for applicationInsights logger. + attr_accessor :credentials + + # @return [Boolean] Whether records are buffered in the logger before + # publishing. Default is assumed to be true. + attr_accessor :is_buffered + + + # + # Mapper for LoggerContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoggerContract', + type: { + name: 'Composite', + class_name: 'LoggerContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + logger_type: { + required: true, + serialized_name: 'properties.loggerType', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 256 + }, + type: { + name: 'String' + } + }, + credentials: { + required: true, + serialized_name: 'properties.credentials', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + is_buffered: { + required: false, + serialized_name: 'properties.isBuffered', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb new file mode 100644 index 0000000000..f05c15062e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for LoggerType + # + module LoggerType + AzureEventHub = "azureEventHub" + ApplicationInsights = "applicationInsights" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb new file mode 100644 index 0000000000..0f39e6e791 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/logger_update_contract.rb @@ -0,0 +1,83 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Logger update contract. + # + class LoggerUpdateContract + + include MsRestAzure + + # @return [LoggerType] Logger type. Possible values include: + # 'azureEventHub', 'applicationInsights' + attr_accessor :logger_type + + # @return [String] Logger description. + attr_accessor :description + + # @return [Hash{String => String}] Logger credentials. + attr_accessor :credentials + + # @return [Boolean] Whether records are buffered in the logger before + # publishing. Default is assumed to be true. + attr_accessor :is_buffered + + + # + # Mapper for LoggerUpdateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LoggerUpdateContract', + type: { + name: 'Composite', + class_name: 'LoggerUpdateContract', + model_properties: { + logger_type: { + required: false, + serialized_name: 'properties.loggerType', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + credentials: { + required: false, + serialized_name: 'properties.credentials', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + is_buffered: { + required: false, + serialized_name: 'properties.isBuffered', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb new file mode 100644 index 0000000000..5932c8490d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/name_availability_reason.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for NameAvailabilityReason + # + module NameAvailabilityReason + Valid = "Valid" + Invalid = "Invalid" + AlreadyExists = "AlreadyExists" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb new file mode 100644 index 0000000000..4f0a49376e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract.rb @@ -0,0 +1,70 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Network Status details. + # + class NetworkStatusContract + + include MsRestAzure + + # @return [Array] Gets the list of DNS servers IPV4 addresses. + attr_accessor :dns_servers + + # @return [Array] Gets the list of + # Connectivity Status to the Resources on which the service depends upon. + attr_accessor :connectivity_status + + + # + # Mapper for NetworkStatusContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkStatusContract', + type: { + name: 'Composite', + class_name: 'NetworkStatusContract', + model_properties: { + dns_servers: { + required: true, + serialized_name: 'dnsServers', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + connectivity_status: { + required: true, + serialized_name: 'connectivityStatus', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ConnectivityStatusContractElementType', + type: { + name: 'Composite', + class_name: 'ConnectivityStatusContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb new file mode 100644 index 0000000000..f387d98e99 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/network_status_contract_by_location.rb @@ -0,0 +1,58 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Network Status in the Location + # + class NetworkStatusContractByLocation + + include MsRestAzure + + # @return [String] Location of service + attr_accessor :location + + # @return [NetworkStatusContract] Network status in Location + attr_accessor :network_status + + + # + # Mapper for NetworkStatusContractByLocation class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NetworkStatusContractByLocation', + type: { + name: 'Composite', + class_name: 'NetworkStatusContractByLocation', + model_properties: { + location: { + required: false, + serialized_name: 'location', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + network_status: { + required: false, + serialized_name: 'networkStatus', + type: { + name: 'Composite', + class_name: 'NetworkStatusContract' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb new file mode 100644 index 0000000000..92520d7220 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Notification list representation. + # + class NotificationCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [NotificationCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for NotificationCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationCollection', + type: { + name: 'Composite', + class_name: 'NotificationCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'NotificationContractElementType', + type: { + name: 'Composite', + class_name: 'NotificationContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb new file mode 100644 index 0000000000..eff277bc97 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_contract.rb @@ -0,0 +1,93 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Notification details. + # + class NotificationContract < Resource + + include MsRestAzure + + # @return [String] Title of the Notification. + attr_accessor :title + + # @return [String] Description of the Notification. + attr_accessor :description + + # @return [RecipientsContractProperties] Recipient Parameter values. + attr_accessor :recipients + + + # + # Mapper for NotificationContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'NotificationContract', + type: { + name: 'Composite', + class_name: 'NotificationContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + title: { + required: true, + serialized_name: 'properties.title', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + recipients: { + required: false, + serialized_name: 'properties.recipients', + type: { + name: 'Composite', + class_name: 'RecipientsContractProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb new file mode 100644 index 0000000000..3794be26ef --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/notification_name.rb @@ -0,0 +1,21 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for NotificationName + # + module NotificationName + RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage" + PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage" + NewApplicationNotificationMessage = "NewApplicationNotificationMessage" + BCC = "BCC" + NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage" + AccountClosedPublisher = "AccountClosedPublisher" + QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb new file mode 100644 index 0000000000..17e4c8117f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/oauth2authentication_settings_contract.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # API OAuth2 Authentication settings details. + # + class OAuth2AuthenticationSettingsContract + + include MsRestAzure + + # @return [String] OAuth authorization server identifier. + attr_accessor :authorization_server_id + + # @return [String] operations scope. + attr_accessor :scope + + + # + # Mapper for OAuth2AuthenticationSettingsContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OAuth2AuthenticationSettingsContract', + type: { + name: 'Composite', + class_name: 'OAuth2AuthenticationSettingsContract', + model_properties: { + authorization_server_id: { + required: false, + serialized_name: 'authorizationServerId', + type: { + name: 'String' + } + }, + scope: { + required: false, + serialized_name: 'scope', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb new file mode 100644 index 0000000000..8ff06e7b15 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/open_id_connect_provider_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged OpenIdProviders list representation. + # + class OpenIdConnectProviderCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [OpenIdConnectProviderCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for OpenIdConnectProviderCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OpenIdConnectProviderCollection', + type: { + name: 'Composite', + class_name: 'OpenIdConnectProviderCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'OpenidConnectProviderContractElementType', + type: { + name: 'Composite', + class_name: 'OpenidConnectProviderContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb new file mode 100644 index 0000000000..ff73fc9ef9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_contract.rb @@ -0,0 +1,113 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # OpenId Connect Provider details. + # + class OpenidConnectProviderContract < Resource + + include MsRestAzure + + # @return [String] User-friendly OpenID Connect Provider name. + attr_accessor :display_name + + # @return [String] User-friendly description of OpenID Connect Provider. + attr_accessor :description + + # @return [String] Metadata endpoint URI. + attr_accessor :metadata_endpoint + + # @return [String] Client ID of developer console which is the client + # application. + attr_accessor :client_id + + # @return [String] Client Secret of developer console which is the client + # application. + attr_accessor :client_secret + + + # + # Mapper for OpenidConnectProviderContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OpenidConnectProviderContract', + type: { + name: 'Composite', + class_name: 'OpenidConnectProviderContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 50 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + metadata_endpoint: { + required: true, + serialized_name: 'properties.metadataEndpoint', + type: { + name: 'String' + } + }, + client_id: { + required: true, + serialized_name: 'properties.clientId', + type: { + name: 'String' + } + }, + client_secret: { + required: false, + serialized_name: 'properties.clientSecret', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb new file mode 100644 index 0000000000..700f9a9bbc --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/openid_connect_provider_update_contract.rb @@ -0,0 +1,89 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Update OpenID Connect Provider operation. + # + class OpenidConnectProviderUpdateContract + + include MsRestAzure + + # @return [String] User-friendly OpenID Connect Provider name. + attr_accessor :display_name + + # @return [String] User-friendly description of OpenID Connect Provider. + attr_accessor :description + + # @return [String] Metadata endpoint URI. + attr_accessor :metadata_endpoint + + # @return [String] Client ID of developer console which is the client + # application. + attr_accessor :client_id + + # @return [String] Client Secret of developer console which is the client + # application. + attr_accessor :client_secret + + + # + # Mapper for OpenidConnectProviderUpdateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OpenidConnectProviderUpdateContract', + type: { + name: 'Composite', + class_name: 'OpenidConnectProviderUpdateContract', + model_properties: { + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 50 + }, + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + metadata_endpoint: { + required: false, + serialized_name: 'properties.metadataEndpoint', + type: { + name: 'String' + } + }, + client_id: { + required: false, + serialized_name: 'properties.clientId', + type: { + name: 'String' + } + }, + client_secret: { + required: false, + serialized_name: 'properties.clientSecret', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb new file mode 100644 index 0000000000..013e8ae7f9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation.rb @@ -0,0 +1,75 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # REST API operation + # + class Operation + + include MsRestAzure + + # @return [String] Operation name: {provider}/{resource}/{operation} + attr_accessor :name + + # @return [OperationDisplay] The object that describes the operation. + attr_accessor :display + + # @return [String] The operation origin. + attr_accessor :origin + + # @return The operation properties. + attr_accessor :properties + + + # + # Mapper for Operation class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Operation', + type: { + name: 'Composite', + class_name: 'Operation', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + display: { + required: false, + serialized_name: 'display', + type: { + name: 'Composite', + class_name: 'OperationDisplay' + } + }, + origin: { + required: false, + serialized_name: 'origin', + type: { + name: 'String' + } + }, + properties: { + required: false, + serialized_name: 'properties', + type: { + name: 'Object' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb new file mode 100644 index 0000000000..b318d19961 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Operation list representation. + # + class OperationCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [OperationCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for OperationCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationCollection', + type: { + name: 'Composite', + class_name: 'OperationCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'OperationContractElementType', + type: { + name: 'Composite', + class_name: 'OperationContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb new file mode 100644 index 0000000000..67fd00a98a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_contract.rb @@ -0,0 +1,171 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Operation details. + # + class OperationContract < Resource + + include MsRestAzure + + # @return [Array] Collection of URL template + # parameters. + attr_accessor :template_parameters + + # @return [String] Description of the operation. May include HTML + # formatting tags. + attr_accessor :description + + # @return [RequestContract] An entity containing request details. + attr_accessor :request + + # @return [Array] Array of Operation responses. + attr_accessor :responses + + # @return [String] Operation Policies + attr_accessor :policies + + # @return [String] Operation Name. + attr_accessor :display_name + + # @return [String] A Valid HTTP Operation Method. Typical Http Methods + # like GET, PUT, POST but not limited by only them. + attr_accessor :method + + # @return [String] Relative URL template identifying the target resource + # for this operation. May include parameters. Example: + # /customers/{cid}/orders/{oid}/?date={date} + attr_accessor :url_template + + + # + # Mapper for OperationContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationContract', + type: { + name: 'Composite', + class_name: 'OperationContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + template_parameters: { + required: false, + serialized_name: 'properties.templateParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 1000 + }, + type: { + name: 'String' + } + }, + request: { + required: false, + serialized_name: 'properties.request', + type: { + name: 'Composite', + class_name: 'RequestContract' + } + }, + responses: { + required: false, + serialized_name: 'properties.responses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ResponseContractElementType', + type: { + name: 'Composite', + class_name: 'ResponseContract' + } + } + } + }, + policies: { + required: false, + serialized_name: 'properties.policies', + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + method: { + required: true, + serialized_name: 'properties.method', + type: { + name: 'String' + } + }, + url_template: { + required: true, + serialized_name: 'properties.urlTemplate', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb new file mode 100644 index 0000000000..328986f525 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_display.rb @@ -0,0 +1,75 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The object that describes the operation. + # + class OperationDisplay + + include MsRestAzure + + # @return [String] Friendly name of the resource provider + attr_accessor :provider + + # @return [String] Operation type: read, write, delete, listKeys/action, + # etc. + attr_accessor :operation + + # @return [String] Resource type on which the operation is performed. + attr_accessor :resource + + # @return [String] Friendly name of the operation + attr_accessor :description + + + # + # Mapper for OperationDisplay class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Operation_display', + type: { + name: 'Composite', + class_name: 'OperationDisplay', + model_properties: { + provider: { + required: false, + serialized_name: 'provider', + type: { + name: 'String' + } + }, + operation: { + required: false, + serialized_name: 'operation', + type: { + name: 'String' + } + }, + resource: { + required: false, + serialized_name: 'resource', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb new file mode 100644 index 0000000000..6813f6337d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_entity_base_contract.rb @@ -0,0 +1,106 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Operation Entity Base Contract details. + # + class OperationEntityBaseContract + + include MsRestAzure + + # @return [Array] Collection of URL template + # parameters. + attr_accessor :template_parameters + + # @return [String] Description of the operation. May include HTML + # formatting tags. + attr_accessor :description + + # @return [RequestContract] An entity containing request details. + attr_accessor :request + + # @return [Array] Array of Operation responses. + attr_accessor :responses + + # @return [String] Operation Policies + attr_accessor :policies + + + # + # Mapper for OperationEntityBaseContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationEntityBaseContract', + type: { + name: 'Composite', + class_name: 'OperationEntityBaseContract', + model_properties: { + template_parameters: { + required: false, + serialized_name: 'templateParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + }, + description: { + required: false, + serialized_name: 'description', + constraints: { + MaxLength: 1000 + }, + type: { + name: 'String' + } + }, + request: { + required: false, + serialized_name: 'request', + type: { + name: 'Composite', + class_name: 'RequestContract' + } + }, + responses: { + required: false, + serialized_name: 'responses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ResponseContractElementType', + type: { + name: 'Composite', + class_name: 'ResponseContract' + } + } + } + }, + policies: { + required: false, + serialized_name: 'policies', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb new file mode 100644 index 0000000000..fa698d5299 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_list_result.rb @@ -0,0 +1,97 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Result of the request to list REST API operations. It contains a list of + # operations and a URL nextLink to get the next set of results. + # + class OperationListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] List of operations supported by the resource + # provider. + attr_accessor :value + + # @return [String] URL to get the next set of operation list results if + # there are any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [OperationListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for OperationListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationListResult', + type: { + name: 'Composite', + class_name: 'OperationListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'OperationElementType', + type: { + name: 'Composite', + class_name: 'Operation' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb new file mode 100644 index 0000000000..b5cb7d42d5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_contract.rb @@ -0,0 +1,125 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Operation Result. + # + class OperationResultContract + + include MsRestAzure + + # @return [String] Operation result identifier. + attr_accessor :id + + # @return [AsyncOperationStatus] Status of an async operation. Possible + # values include: 'Started', 'InProgress', 'Succeeded', 'Failed' + attr_accessor :status + + # @return [DateTime] Start time of an async operation. The date conforms + # to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO + # 8601 standard. + # + attr_accessor :started + + # @return [DateTime] Last update time of an async operation. The date + # conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + # by the ISO 8601 standard. + # + attr_accessor :updated + + # @return [String] Optional result info. + attr_accessor :result_info + + # @return [ErrorResponseBody] Error Body Contract + attr_accessor :error + + # @return [Array] This property if only + # provided as part of the TenantConfiguration_Validate operation. It + # contains the log the entities which will be updated/created/deleted as + # part of the TenantConfiguration_Deploy operation. + attr_accessor :action_log + + + # + # Mapper for OperationResultContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationResultContract', + type: { + name: 'Composite', + class_name: 'OperationResultContract', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'status', + type: { + name: 'Enum', + module: 'AsyncOperationStatus' + } + }, + started: { + required: false, + serialized_name: 'started', + type: { + name: 'DateTime' + } + }, + updated: { + required: false, + serialized_name: 'updated', + type: { + name: 'DateTime' + } + }, + result_info: { + required: false, + serialized_name: 'resultInfo', + type: { + name: 'String' + } + }, + error: { + required: false, + serialized_name: 'error', + type: { + name: 'Composite', + class_name: 'ErrorResponseBody' + } + }, + action_log: { + required: false, + read_only: true, + serialized_name: 'actionLog', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'OperationResultLogItemContractElementType', + type: { + name: 'Composite', + class_name: 'OperationResultLogItemContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb new file mode 100644 index 0000000000..6af9929e01 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_result_log_item_contract.rb @@ -0,0 +1,65 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Log of the entity being created, updated or deleted. + # + class OperationResultLogItemContract + + include MsRestAzure + + # @return [String] The type of entity contract. + attr_accessor :object_type + + # @return [String] Action like create/update/delete. + attr_accessor :action + + # @return [String] Identifier of the entity being + # created/updated/deleted. + attr_accessor :object_key + + + # + # Mapper for OperationResultLogItemContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationResultLogItemContract', + type: { + name: 'Composite', + class_name: 'OperationResultLogItemContract', + model_properties: { + object_type: { + required: false, + serialized_name: 'objectType', + type: { + name: 'String' + } + }, + action: { + required: false, + serialized_name: 'action', + type: { + name: 'String' + } + }, + object_key: { + required: false, + serialized_name: 'objectKey', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb new file mode 100644 index 0000000000..8e501c6781 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_tag_resource_contract_properties.rb @@ -0,0 +1,125 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Operation Entity contract Properties. + # + class OperationTagResourceContractProperties + + include MsRestAzure + + # @return [String] Identifier of the operation in form + # /operations/{operationId}. + attr_accessor :id + + # @return [String] Operation name. + attr_accessor :name + + # @return [String] Api Name. + attr_accessor :api_name + + # @return [String] Api Revision. + attr_accessor :api_revision + + # @return [String] Api Version. + attr_accessor :api_version + + # @return [String] Operation Description. + attr_accessor :description + + # @return [String] A Valid HTTP Operation Method. Typical Http Methods + # like GET, PUT, POST but not limited by only them. + attr_accessor :method + + # @return [String] Relative URL template identifying the target resource + # for this operation. May include parameters. Example: + # /customers/{cid}/orders/{oid}/?date={date} + attr_accessor :url_template + + + # + # Mapper for OperationTagResourceContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationTagResourceContractProperties', + type: { + name: 'Composite', + class_name: 'OperationTagResourceContractProperties', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + api_name: { + required: false, + read_only: true, + serialized_name: 'apiName', + type: { + name: 'String' + } + }, + api_revision: { + required: false, + read_only: true, + serialized_name: 'apiRevision', + type: { + name: 'String' + } + }, + api_version: { + required: false, + read_only: true, + serialized_name: 'apiVersion', + type: { + name: 'String' + } + }, + description: { + required: false, + read_only: true, + serialized_name: 'description', + type: { + name: 'String' + } + }, + method: { + required: false, + read_only: true, + serialized_name: 'method', + type: { + name: 'String' + } + }, + url_template: { + required: false, + read_only: true, + serialized_name: 'urlTemplate', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb new file mode 100644 index 0000000000..1e504ca3af --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/operation_update_contract.rb @@ -0,0 +1,147 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Api Operation Update Contract details. + # + class OperationUpdateContract + + include MsRestAzure + + # @return [Array] Collection of URL template + # parameters. + attr_accessor :template_parameters + + # @return [String] Description of the operation. May include HTML + # formatting tags. + attr_accessor :description + + # @return [RequestContract] An entity containing request details. + attr_accessor :request + + # @return [Array] Array of Operation responses. + attr_accessor :responses + + # @return [String] Operation Policies + attr_accessor :policies + + # @return [String] Operation Name. + attr_accessor :display_name + + # @return [String] A Valid HTTP Operation Method. Typical Http Methods + # like GET, PUT, POST but not limited by only them. + attr_accessor :method + + # @return [String] Relative URL template identifying the target resource + # for this operation. May include parameters. Example: + # /customers/{cid}/orders/{oid}/?date={date} + attr_accessor :url_template + + + # + # Mapper for OperationUpdateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationUpdateContract', + type: { + name: 'Composite', + class_name: 'OperationUpdateContract', + model_properties: { + template_parameters: { + required: false, + serialized_name: 'properties.templateParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 1000 + }, + type: { + name: 'String' + } + }, + request: { + required: false, + serialized_name: 'properties.request', + type: { + name: 'Composite', + class_name: 'RequestContract' + } + }, + responses: { + required: false, + serialized_name: 'properties.responses', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ResponseContractElementType', + type: { + name: 'Composite', + class_name: 'ResponseContract' + } + } + } + }, + policies: { + required: false, + serialized_name: 'properties.policies', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + method: { + required: false, + serialized_name: 'properties.method', + type: { + name: 'String' + } + }, + url_template: { + required: false, + serialized_name: 'properties.urlTemplate', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb new file mode 100644 index 0000000000..e196cd2b41 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/parameter_contract.rb @@ -0,0 +1,101 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Operation parameters details. + # + class ParameterContract + + include MsRestAzure + + # @return [String] Parameter name. + attr_accessor :name + + # @return [String] Parameter description. + attr_accessor :description + + # @return [String] Parameter type. + attr_accessor :type + + # @return [String] Default parameter value. + attr_accessor :default_value + + # @return [Boolean] whether parameter is required or not. + attr_accessor :required + + # @return [Array] Parameter values. + attr_accessor :values + + + # + # Mapper for ParameterContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ParameterContract', + type: { + name: 'Composite', + class_name: 'ParameterContract', + model_properties: { + name: { + required: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + type: { + required: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + default_value: { + required: false, + serialized_name: 'defaultValue', + type: { + name: 'String' + } + }, + required: { + required: false, + serialized_name: 'required', + type: { + name: 'Boolean' + } + }, + values: { + required: false, + serialized_name: 'values', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb new file mode 100644 index 0000000000..3a382ab8a4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_collection.rb @@ -0,0 +1,62 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The response of the list policy operation. + # + class PolicyCollection + + include MsRestAzure + + # @return [Array] Policy Contract value. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + + # + # Mapper for PolicyCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicyCollection', + type: { + name: 'Composite', + class_name: 'PolicyCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PolicyContractElementType', + type: { + name: 'Composite', + class_name: 'PolicyContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb new file mode 100644 index 0000000000..99c9f3648c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_content_format.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for PolicyContentFormat + # + module PolicyContentFormat + Xml = "xml" + XmlLink = "xml-link" + Rawxml = "rawxml" + RawxmlLink = "rawxml-link" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb new file mode 100644 index 0000000000..d9bdc81cdf --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_contract.rb @@ -0,0 +1,81 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Policy Contract details. + # + class PolicyContract < Resource + + include MsRestAzure + + # @return [String] Json escaped Xml Encoded contents of the Policy. + attr_accessor :policy_content + + # @return [PolicyContentFormat] Format of the policyContent. Possible + # values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. Default + # value: 'xml' . + attr_accessor :content_format + + + # + # Mapper for PolicyContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicyContract', + type: { + name: 'Composite', + class_name: 'PolicyContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + policy_content: { + required: true, + serialized_name: 'properties.policyContent', + type: { + name: 'String' + } + }, + content_format: { + required: false, + serialized_name: 'properties.contentFormat', + default_value: 'xml', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb new file mode 100644 index 0000000000..ddd04df547 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_scope_contract.rb @@ -0,0 +1,19 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for PolicyScopeContract + # + module PolicyScopeContract + Tenant = "Tenant" + Product = "Product" + Api = "Api" + Operation = "Operation" + All = "All" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb new file mode 100644 index 0000000000..ae697a33ab --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippet_contract.rb @@ -0,0 +1,78 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Policy snippet. + # + class PolicySnippetContract + + include MsRestAzure + + # @return [String] Snippet name. + attr_accessor :name + + # @return [String] Snippet content. + attr_accessor :content + + # @return [String] Snippet toolTip. + attr_accessor :tool_tip + + # @return [Integer] Binary OR value of the Snippet scope. + attr_accessor :scope + + + # + # Mapper for PolicySnippetContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicySnippetContract', + type: { + name: 'Composite', + class_name: 'PolicySnippetContract', + model_properties: { + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + content: { + required: false, + read_only: true, + serialized_name: 'content', + type: { + name: 'String' + } + }, + tool_tip: { + required: false, + read_only: true, + serialized_name: 'toolTip', + type: { + name: 'String' + } + }, + scope: { + required: false, + read_only: true, + serialized_name: 'scope', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb new file mode 100644 index 0000000000..a26da46697 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/policy_snippets_collection.rb @@ -0,0 +1,52 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The response of the list policy snippets operation. + # + class PolicySnippetsCollection + + include MsRestAzure + + # @return [Array] Policy snippet value. + attr_accessor :value + + + # + # Mapper for PolicySnippetsCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PolicySnippetsCollection', + type: { + name: 'Composite', + class_name: 'PolicySnippetsCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PolicySnippetContractElementType', + type: { + name: 'Composite', + class_name: 'PolicySnippetContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb new file mode 100644 index 0000000000..08204cbabd --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_delegation_settings.rb @@ -0,0 +1,103 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Delegation settings for a developer portal. + # + class PortalDelegationSettings < Resource + + include MsRestAzure + + # @return [String] A delegation Url. + attr_accessor :url + + # @return [String] A base64-encoded validation key to validate, that a + # request is coming from Azure API Management. + attr_accessor :validation_key + + # @return [SubscriptionsDelegationSettingsProperties] Subscriptions + # delegation settings. + attr_accessor :subscriptions + + # @return [RegistrationDelegationSettingsProperties] User registration + # delegation settings. + attr_accessor :user_registration + + + # + # Mapper for PortalDelegationSettings class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PortalDelegationSettings', + type: { + name: 'Composite', + class_name: 'PortalDelegationSettings', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + url: { + required: false, + serialized_name: 'properties.url', + type: { + name: 'String' + } + }, + validation_key: { + required: false, + serialized_name: 'properties.validationKey', + type: { + name: 'String' + } + }, + subscriptions: { + required: false, + serialized_name: 'properties.subscriptions', + type: { + name: 'Composite', + class_name: 'SubscriptionsDelegationSettingsProperties' + } + }, + user_registration: { + required: false, + serialized_name: 'properties.userRegistration', + type: { + name: 'Composite', + class_name: 'RegistrationDelegationSettingsProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb new file mode 100644 index 0000000000..6ea43ab3d3 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signin_settings.rb @@ -0,0 +1,68 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Sign-In settings for the Developer Portal. + # + class PortalSigninSettings < Resource + + include MsRestAzure + + # @return [Boolean] Redirect Anonymous users to the Sign-In page. + attr_accessor :enabled + + + # + # Mapper for PortalSigninSettings class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PortalSigninSettings', + type: { + name: 'Composite', + class_name: 'PortalSigninSettings', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'properties.enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb new file mode 100644 index 0000000000..473d0ecfa0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/portal_signup_settings.rb @@ -0,0 +1,80 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Sign-Up settings for a developer portal. + # + class PortalSignupSettings < Resource + + include MsRestAzure + + # @return [Boolean] Allow users to sign up on a developer portal. + attr_accessor :enabled + + # @return [TermsOfServiceProperties] Terms of service contract + # properties. + attr_accessor :terms_of_service + + + # + # Mapper for PortalSignupSettings class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PortalSignupSettings', + type: { + name: 'Composite', + class_name: 'PortalSignupSettings', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'properties.enabled', + type: { + name: 'Boolean' + } + }, + terms_of_service: { + required: false, + serialized_name: 'properties.termsOfService', + type: { + name: 'Composite', + class_name: 'TermsOfServiceProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb new file mode 100644 index 0000000000..2d0a2882b8 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Products list representation. + # + class ProductCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ProductCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ProductCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProductCollection', + type: { + name: 'Composite', + class_name: 'ProductCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ProductContractElementType', + type: { + name: 'Composite', + class_name: 'ProductContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb new file mode 100644 index 0000000000..597ac4cf73 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_contract.rb @@ -0,0 +1,156 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Product details. + # + class ProductContract < Resource + + include MsRestAzure + + # @return [String] Product description. May include HTML formatting tags. + attr_accessor :description + + # @return [String] Product terms of use. Developers trying to subscribe + # to the product will be presented and required to accept these terms + # before they can complete the subscription process. + attr_accessor :terms + + # @return [Boolean] Whether a product subscription is required for + # accessing APIs included in this product. If true, the product is + # referred to as "protected" and a valid subscription key is required for + # a request to an API included in the product to succeed. If false, the + # product is referred to as "open" and requests to an API included in the + # product can be made without a subscription key. If property is omitted + # when creating a new product it's value is assumed to be true. + attr_accessor :subscription_required + + # @return [Boolean] whether subscription approval is required. If false, + # new subscriptions will be approved automatically enabling developers to + # call the product’s APIs immediately after subscribing. If true, + # administrators must manually approve the subscription before the + # developer can any of the product’s APIs. Can be present only if + # subscriptionRequired property is present and has a value of false. + attr_accessor :approval_required + + # @return [Integer] Whether the number of subscriptions a user can have + # to this product at the same time. Set to null or omit to allow + # unlimited per user subscriptions. Can be present only if + # subscriptionRequired property is present and has a value of false. + attr_accessor :subscriptions_limit + + # @return [ProductState] whether product is published or not. Published + # products are discoverable by users of developer portal. Non published + # products are visible only to administrators. Default state of Product + # is notPublished. Possible values include: 'notPublished', 'published' + attr_accessor :state + + # @return [String] Product name. + attr_accessor :display_name + + + # + # Mapper for ProductContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProductContract', + type: { + name: 'Composite', + class_name: 'ProductContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + terms: { + required: false, + serialized_name: 'properties.terms', + type: { + name: 'String' + } + }, + subscription_required: { + required: false, + serialized_name: 'properties.subscriptionRequired', + type: { + name: 'Boolean' + } + }, + approval_required: { + required: false, + serialized_name: 'properties.approvalRequired', + type: { + name: 'Boolean' + } + }, + subscriptions_limit: { + required: false, + serialized_name: 'properties.subscriptionsLimit', + type: { + name: 'Number' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'Enum', + module: 'ProductState' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb new file mode 100644 index 0000000000..5e911b42a1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_entity_base_parameters.rb @@ -0,0 +1,118 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Product Entity Base Parameters + # + class ProductEntityBaseParameters + + include MsRestAzure + + # @return [String] Product description. May include HTML formatting tags. + attr_accessor :description + + # @return [String] Product terms of use. Developers trying to subscribe + # to the product will be presented and required to accept these terms + # before they can complete the subscription process. + attr_accessor :terms + + # @return [Boolean] Whether a product subscription is required for + # accessing APIs included in this product. If true, the product is + # referred to as "protected" and a valid subscription key is required for + # a request to an API included in the product to succeed. If false, the + # product is referred to as "open" and requests to an API included in the + # product can be made without a subscription key. If property is omitted + # when creating a new product it's value is assumed to be true. + attr_accessor :subscription_required + + # @return [Boolean] whether subscription approval is required. If false, + # new subscriptions will be approved automatically enabling developers to + # call the product’s APIs immediately after subscribing. If true, + # administrators must manually approve the subscription before the + # developer can any of the product’s APIs. Can be present only if + # subscriptionRequired property is present and has a value of false. + attr_accessor :approval_required + + # @return [Integer] Whether the number of subscriptions a user can have + # to this product at the same time. Set to null or omit to allow + # unlimited per user subscriptions. Can be present only if + # subscriptionRequired property is present and has a value of false. + attr_accessor :subscriptions_limit + + # @return [ProductState] whether product is published or not. Published + # products are discoverable by users of developer portal. Non published + # products are visible only to administrators. Default state of Product + # is notPublished. Possible values include: 'notPublished', 'published' + attr_accessor :state + + + # + # Mapper for ProductEntityBaseParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProductEntityBaseParameters', + type: { + name: 'Composite', + class_name: 'ProductEntityBaseParameters', + model_properties: { + description: { + required: false, + serialized_name: 'description', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + terms: { + required: false, + serialized_name: 'terms', + type: { + name: 'String' + } + }, + subscription_required: { + required: false, + serialized_name: 'subscriptionRequired', + type: { + name: 'Boolean' + } + }, + approval_required: { + required: false, + serialized_name: 'approvalRequired', + type: { + name: 'Boolean' + } + }, + subscriptions_limit: { + required: false, + serialized_name: 'subscriptionsLimit', + type: { + name: 'Number' + } + }, + state: { + required: false, + serialized_name: 'state', + type: { + name: 'Enum', + module: 'ProductState' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb new file mode 100644 index 0000000000..71463a3149 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_state.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for ProductState + # + module ProductState + NotPublished = "notPublished" + Published = "published" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb new file mode 100644 index 0000000000..b4c643f894 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_tag_resource_contract_properties.rb @@ -0,0 +1,106 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Product profile. + # + class ProductTagResourceContractProperties < ProductEntityBaseParameters + + include MsRestAzure + + # @return [String] Identifier of the product in the form of + # /products/{productId} + attr_accessor :id + + # @return [String] Product name. + attr_accessor :name + + + # + # Mapper for ProductTagResourceContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProductTagResourceContractProperties', + type: { + name: 'Composite', + class_name: 'ProductTagResourceContractProperties', + model_properties: { + description: { + required: false, + serialized_name: 'description', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + terms: { + required: false, + serialized_name: 'terms', + type: { + name: 'String' + } + }, + subscription_required: { + required: false, + serialized_name: 'subscriptionRequired', + type: { + name: 'Boolean' + } + }, + approval_required: { + required: false, + serialized_name: 'approvalRequired', + type: { + name: 'Boolean' + } + }, + subscriptions_limit: { + required: false, + serialized_name: 'subscriptionsLimit', + type: { + name: 'Number' + } + }, + state: { + required: false, + serialized_name: 'state', + type: { + name: 'Enum', + module: 'ProductState' + } + }, + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: true, + serialized_name: 'name', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb new file mode 100644 index 0000000000..65db033075 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/product_update_parameters.rb @@ -0,0 +1,132 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Product Update parameters. + # + class ProductUpdateParameters + + include MsRestAzure + + # @return [String] Product description. May include HTML formatting tags. + attr_accessor :description + + # @return [String] Product terms of use. Developers trying to subscribe + # to the product will be presented and required to accept these terms + # before they can complete the subscription process. + attr_accessor :terms + + # @return [Boolean] Whether a product subscription is required for + # accessing APIs included in this product. If true, the product is + # referred to as "protected" and a valid subscription key is required for + # a request to an API included in the product to succeed. If false, the + # product is referred to as "open" and requests to an API included in the + # product can be made without a subscription key. If property is omitted + # when creating a new product it's value is assumed to be true. + attr_accessor :subscription_required + + # @return [Boolean] whether subscription approval is required. If false, + # new subscriptions will be approved automatically enabling developers to + # call the product’s APIs immediately after subscribing. If true, + # administrators must manually approve the subscription before the + # developer can any of the product’s APIs. Can be present only if + # subscriptionRequired property is present and has a value of false. + attr_accessor :approval_required + + # @return [Integer] Whether the number of subscriptions a user can have + # to this product at the same time. Set to null or omit to allow + # unlimited per user subscriptions. Can be present only if + # subscriptionRequired property is present and has a value of false. + attr_accessor :subscriptions_limit + + # @return [ProductState] whether product is published or not. Published + # products are discoverable by users of developer portal. Non published + # products are visible only to administrators. Default state of Product + # is notPublished. Possible values include: 'notPublished', 'published' + attr_accessor :state + + # @return [String] Product name. + attr_accessor :display_name + + + # + # Mapper for ProductUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProductUpdateParameters', + type: { + name: 'Composite', + class_name: 'ProductUpdateParameters', + model_properties: { + description: { + required: false, + serialized_name: 'properties.description', + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + terms: { + required: false, + serialized_name: 'properties.terms', + type: { + name: 'String' + } + }, + subscription_required: { + required: false, + serialized_name: 'properties.subscriptionRequired', + type: { + name: 'Boolean' + } + }, + approval_required: { + required: false, + serialized_name: 'properties.approvalRequired', + type: { + name: 'Boolean' + } + }, + subscriptions_limit: { + required: false, + serialized_name: 'properties.subscriptionsLimit', + type: { + name: 'Number' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'Enum', + module: 'ProductState' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb new file mode 100644 index 0000000000..5fbb8adf8e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Property list representation. + # + class PropertyCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [PropertyCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for PropertyCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PropertyCollection', + type: { + name: 'Composite', + class_name: 'PropertyCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'PropertyContractElementType', + type: { + name: 'Composite', + class_name: 'PropertyContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb new file mode 100644 index 0000000000..89871b4db6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_contract.rb @@ -0,0 +1,121 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Property details. + # + class PropertyContract < Resource + + include MsRestAzure + + # @return [Array] Optional tags that when provided can be used to + # filter the property list. + attr_accessor :tags + + # @return [Boolean] Determines whether the value is a secret and should + # be encrypted or not. Default value is false. + attr_accessor :secret + + # @return [String] Unique name of Property. It may contain only letters, + # digits, period, dash, and underscore characters. + attr_accessor :display_name + + # @return [String] Value of the property. Can contain policy expressions. + # It may not be empty or consist only of whitespace. + attr_accessor :value + + + # + # Mapper for PropertyContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PropertyContract', + type: { + name: 'Composite', + class_name: 'PropertyContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'properties.tags', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + secret: { + required: false, + serialized_name: 'properties.secret', + type: { + name: 'Boolean' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: '^[A-Za-z0-9-._]+$' + }, + type: { + name: 'String' + } + }, + value: { + required: true, + serialized_name: 'properties.value', + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb new file mode 100644 index 0000000000..663e26a877 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_entity_base_parameters.rb @@ -0,0 +1,66 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Property Entity Base Parameters set. + # + class PropertyEntityBaseParameters + + include MsRestAzure + + # @return [Array] Optional tags that when provided can be used to + # filter the property list. + attr_accessor :tags + + # @return [Boolean] Determines whether the value is a secret and should + # be encrypted or not. Default value is false. + attr_accessor :secret + + + # + # Mapper for PropertyEntityBaseParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PropertyEntityBaseParameters', + type: { + name: 'Composite', + class_name: 'PropertyEntityBaseParameters', + model_properties: { + tags: { + required: false, + serialized_name: 'tags', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + secret: { + required: false, + serialized_name: 'secret', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb new file mode 100644 index 0000000000..0da156ea47 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/property_update_parameters.rb @@ -0,0 +1,97 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Property update Parameters. + # + class PropertyUpdateParameters + + include MsRestAzure + + # @return [Array] Optional tags that when provided can be used to + # filter the property list. + attr_accessor :tags + + # @return [Boolean] Determines whether the value is a secret and should + # be encrypted or not. Default value is false. + attr_accessor :secret + + # @return [String] Unique name of Property. It may contain only letters, + # digits, period, dash, and underscore characters. + attr_accessor :display_name + + # @return [String] Value of the property. Can contain policy expressions. + # It may not be empty or consist only of whitespace. + attr_accessor :value + + + # + # Mapper for PropertyUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'PropertyUpdateParameters', + type: { + name: 'Composite', + class_name: 'PropertyUpdateParameters', + model_properties: { + tags: { + required: false, + serialized_name: 'properties.tags', + constraints: { + MaxItems: 32 + }, + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + secret: { + required: false, + serialized_name: 'properties.secret', + type: { + name: 'Boolean' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: '^[A-Za-z0-9-._]+$' + }, + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'properties.value', + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb new file mode 100644 index 0000000000..cdbd304179 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/protocol.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for Protocol + # + module Protocol + Http = "http" + Https = "https" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb new file mode 100644 index 0000000000..c8303da2d4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_collection.rb @@ -0,0 +1,72 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Quota Counter list representation. + # + class QuotaCounterCollection + + include MsRestAzure + + # @return [Array] Quota counter values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + + # + # Mapper for QuotaCounterCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'QuotaCounterCollection', + type: { + name: 'Composite', + class_name: 'QuotaCounterCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'QuotaCounterContractElementType', + type: { + name: 'Composite', + class_name: 'QuotaCounterContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb new file mode 100644 index 0000000000..0313119dc4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb @@ -0,0 +1,98 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Quota counter details. + # + class QuotaCounterContract + + include MsRestAzure + + # @return [String] The Key value of the Counter. Must not be empty. + attr_accessor :counter_key + + # @return [String] Identifier of the Period for which the counter was + # collected. Must not be empty. + attr_accessor :period_key + + # @return [DateTime] The date of the start of Counter Period. The date + # conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + # by the ISO 8601 standard. + # + attr_accessor :period_start_time + + # @return [DateTime] The date of the end of Counter Period. The date + # conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + # by the ISO 8601 standard. + # + attr_accessor :period_end_time + + # @return [QuotaCounterValueContractProperties] Quota Value Properties + attr_accessor :value + + + # + # Mapper for QuotaCounterContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'QuotaCounterContract', + type: { + name: 'Composite', + class_name: 'QuotaCounterContract', + model_properties: { + counter_key: { + required: true, + serialized_name: 'counterKey', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + period_key: { + required: true, + serialized_name: 'periodKey', + constraints: { + MinLength: 1 + }, + type: { + name: 'String' + } + }, + period_start_time: { + required: true, + serialized_name: 'periodStartTime', + type: { + name: 'DateTime' + } + }, + period_end_time: { + required: true, + serialized_name: 'periodEndTime', + type: { + name: 'DateTime' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Composite', + class_name: 'QuotaCounterValueContractProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb new file mode 100644 index 0000000000..655a321e15 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Quota counter value details. + # + class QuotaCounterValueContract + + include MsRestAzure + + # @return [Integer] Number of times Counter was called. + attr_accessor :calls_count + + # @return [Float] Data Transferred in KiloBytes. + attr_accessor :kb_transferred + + + # + # Mapper for QuotaCounterValueContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'QuotaCounterValueContract', + type: { + name: 'Composite', + class_name: 'QuotaCounterValueContract', + model_properties: { + calls_count: { + required: false, + serialized_name: 'value.callsCount', + type: { + name: 'Number' + } + }, + kb_transferred: { + required: false, + serialized_name: 'value.kbTransferred', + type: { + name: 'Double' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb new file mode 100644 index 0000000000..54be8d003b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/quota_counter_value_contract_properties.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Quota counter value details. + # + class QuotaCounterValueContractProperties + + include MsRestAzure + + # @return [Integer] Number of times Counter was called. + attr_accessor :calls_count + + # @return [Float] Data Transferred in KiloBytes. + attr_accessor :kb_transferred + + + # + # Mapper for QuotaCounterValueContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'QuotaCounterValueContractProperties', + type: { + name: 'Composite', + class_name: 'QuotaCounterValueContractProperties', + model_properties: { + calls_count: { + required: false, + serialized_name: 'callsCount', + type: { + name: 'Number' + } + }, + kb_transferred: { + required: false, + serialized_name: 'kbTransferred', + type: { + name: 'Double' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb new file mode 100644 index 0000000000..f6f323b4a0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_collection.rb @@ -0,0 +1,62 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Recipient User list representation. + # + class RecipientEmailCollection + + include MsRestAzure + + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + + # + # Mapper for RecipientEmailCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RecipientEmailCollection', + type: { + name: 'Composite', + class_name: 'RecipientEmailCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'RecipientEmailContractElementType', + type: { + name: 'Composite', + class_name: 'RecipientEmailContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb new file mode 100644 index 0000000000..d0e0a72f4d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_email_contract.rb @@ -0,0 +1,68 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Recipient Email details. + # + class RecipientEmailContract < Resource + + include MsRestAzure + + # @return [String] User Email subscribed to notification. + attr_accessor :email + + + # + # Mapper for RecipientEmailContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RecipientEmailContract', + type: { + name: 'Composite', + class_name: 'RecipientEmailContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + email: { + required: false, + serialized_name: 'properties.email', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb new file mode 100644 index 0000000000..09c53a1f03 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_collection.rb @@ -0,0 +1,62 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Recipient User list representation. + # + class RecipientUserCollection + + include MsRestAzure + + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + + # + # Mapper for RecipientUserCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RecipientUserCollection', + type: { + name: 'Composite', + class_name: 'RecipientUserCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'RecipientUserContractElementType', + type: { + name: 'Composite', + class_name: 'RecipientUserContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb new file mode 100644 index 0000000000..8d26c350f5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipient_user_contract.rb @@ -0,0 +1,68 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Recipient User details. + # + class RecipientUserContract < Resource + + include MsRestAzure + + # @return [String] API Management UserId subscribed to notification. + attr_accessor :user_id + + + # + # Mapper for RecipientUserContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RecipientUserContract', + type: { + name: 'Composite', + class_name: 'RecipientUserContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + user_id: { + required: false, + serialized_name: 'properties.userId', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb new file mode 100644 index 0000000000..fe71717c5c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/recipients_contract_properties.rb @@ -0,0 +1,68 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Notification Parameter contract. + # + class RecipientsContractProperties + + include MsRestAzure + + # @return [Array] List of Emails subscribed for the notification. + attr_accessor :emails + + # @return [Array] List of Users subscribed for the notification. + attr_accessor :users + + + # + # Mapper for RecipientsContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RecipientsContractProperties', + type: { + name: 'Composite', + class_name: 'RecipientsContractProperties', + model_properties: { + emails: { + required: false, + serialized_name: 'emails', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + users: { + required: false, + serialized_name: 'users', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb new file mode 100644 index 0000000000..22244e2d88 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_contract.rb @@ -0,0 +1,65 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Region profile. + # + class RegionContract + + include MsRestAzure + + # @return [String] Region name. + attr_accessor :name + + # @return [Boolean] whether Region is the master region. + attr_accessor :is_master_region + + # @return [Boolean] whether Region is deleted. + attr_accessor :is_deleted + + + # + # Mapper for RegionContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RegionContract', + type: { + name: 'Composite', + class_name: 'RegionContract', + model_properties: { + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + is_master_region: { + required: false, + serialized_name: 'isMasterRegion', + type: { + name: 'Boolean' + } + }, + is_deleted: { + required: false, + serialized_name: 'isDeleted', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb new file mode 100644 index 0000000000..0aaf90fa0a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/region_list_result.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Lists Regions operation response details. + # + class RegionListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Lists of Regions. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [RegionListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for RegionListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RegionListResult', + type: { + name: 'Composite', + class_name: 'RegionListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'RegionContractElementType', + type: { + name: 'Composite', + class_name: 'RegionContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb new file mode 100644 index 0000000000..506dc170c2 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/registration_delegation_settings_properties.rb @@ -0,0 +1,44 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # User registration delegation settings properties. + # + class RegistrationDelegationSettingsProperties + + include MsRestAzure + + # @return [Boolean] Enable or disable delegation for user registration. + attr_accessor :enabled + + + # + # Mapper for RegistrationDelegationSettingsProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RegistrationDelegationSettingsProperties', + type: { + name: 'Composite', + class_name: 'RegistrationDelegationSettingsProperties', + model_properties: { + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb new file mode 100644 index 0000000000..8e30fe99c0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_collection.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Report records list representation. + # + class ReportCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ReportCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ReportCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ReportCollection', + type: { + name: 'Composite', + class_name: 'ReportCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ReportRecordContractElementType', + type: { + name: 'Composite', + class_name: 'ReportRecordContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb new file mode 100644 index 0000000000..da598516ff --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/report_record_contract.rb @@ -0,0 +1,311 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Report data. + # + class ReportRecordContract + + include MsRestAzure + + # @return [String] Name depending on report endpoint specifies product, + # API, operation or developer name. + attr_accessor :name + + # @return [DateTime] Start of aggregation period. The date conforms to + # the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO + # 8601 standard. + # + attr_accessor :timestamp + + # @return [String] Length of agregation period. Interval must be + # multiple of 15 minutes and may not be zero. The value should be in ISO + # 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + attr_accessor :interval + + # @return [String] Country to which this record data is related. + attr_accessor :country + + # @return [String] Country region to which this record data is related. + attr_accessor :region + + # @return [String] Zip code to which this record data is related. + attr_accessor :zip + + # @return [String] User identifier path. /users/{userId} + attr_accessor :user_id + + # @return [String] Product identifier path. /products/{productId} + attr_accessor :product_id + + # @return [String] API identifier path. /apis/{apiId} + attr_accessor :api_id + + # @return [String] Operation identifier path. + # /apis/{apiId}/operations/{operationId} + attr_accessor :operation_id + + # @return [String] API region identifier. + attr_accessor :api_region + + # @return [String] Subscription identifier path. + # /subscriptions/{subscriptionId} + attr_accessor :subscription_id + + # @return [Integer] Number of succesful calls. This includes calls + # returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and + # HttpStatusCode.TemporaryRedirect + attr_accessor :call_count_success + + # @return [Integer] Number of calls blocked due to invalid credentials. + # This includes calls returning HttpStatusCode.Unauthorize and + # HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests + attr_accessor :call_count_blocked + + # @return [Integer] Number of calls failed due to proxy or backend + # errors. This includes calls returning HttpStatusCode.BadRequest(400) + # and any Code between HttpStatusCode.InternalServerError (500) and 600 + attr_accessor :call_count_failed + + # @return [Integer] Number of other calls. + attr_accessor :call_count_other + + # @return [Integer] Total number of calls. + attr_accessor :call_count_total + + # @return [Integer] Bandwidth consumed. + attr_accessor :bandwidth + + # @return [Integer] Number of times when content was served from cache + # policy. + attr_accessor :cache_hit_count + + # @return [Integer] Number of times content was fetched from backend. + attr_accessor :cache_miss_count + + # @return [Float] Average time it took to process request. + attr_accessor :api_time_avg + + # @return [Float] Minimum time it took to process request. + attr_accessor :api_time_min + + # @return [Float] Maximum time it took to process request. + attr_accessor :api_time_max + + # @return [Float] Average time it took to process request on backend. + attr_accessor :service_time_avg + + # @return [Float] Minimum time it took to process request on backend. + attr_accessor :service_time_min + + # @return [Float] Maximum time it took to process request on backend. + attr_accessor :service_time_max + + + # + # Mapper for ReportRecordContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ReportRecordContract', + type: { + name: 'Composite', + class_name: 'ReportRecordContract', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + timestamp: { + required: false, + serialized_name: 'timestamp', + type: { + name: 'DateTime' + } + }, + interval: { + required: false, + serialized_name: 'interval', + type: { + name: 'String' + } + }, + country: { + required: false, + serialized_name: 'country', + type: { + name: 'String' + } + }, + region: { + required: false, + serialized_name: 'region', + type: { + name: 'String' + } + }, + zip: { + required: false, + serialized_name: 'zip', + type: { + name: 'String' + } + }, + user_id: { + required: false, + read_only: true, + serialized_name: 'userId', + type: { + name: 'String' + } + }, + product_id: { + required: false, + read_only: true, + serialized_name: 'productId', + type: { + name: 'String' + } + }, + api_id: { + required: false, + serialized_name: 'apiId', + type: { + name: 'String' + } + }, + operation_id: { + required: false, + serialized_name: 'operationId', + type: { + name: 'String' + } + }, + api_region: { + required: false, + serialized_name: 'apiRegion', + type: { + name: 'String' + } + }, + subscription_id: { + required: false, + serialized_name: 'subscriptionId', + type: { + name: 'String' + } + }, + call_count_success: { + required: false, + serialized_name: 'callCountSuccess', + type: { + name: 'Number' + } + }, + call_count_blocked: { + required: false, + serialized_name: 'callCountBlocked', + type: { + name: 'Number' + } + }, + call_count_failed: { + required: false, + serialized_name: 'callCountFailed', + type: { + name: 'Number' + } + }, + call_count_other: { + required: false, + serialized_name: 'callCountOther', + type: { + name: 'Number' + } + }, + call_count_total: { + required: false, + serialized_name: 'callCountTotal', + type: { + name: 'Number' + } + }, + bandwidth: { + required: false, + serialized_name: 'bandwidth', + type: { + name: 'Number' + } + }, + cache_hit_count: { + required: false, + serialized_name: 'cacheHitCount', + type: { + name: 'Number' + } + }, + cache_miss_count: { + required: false, + serialized_name: 'cacheMissCount', + type: { + name: 'Number' + } + }, + api_time_avg: { + required: false, + serialized_name: 'apiTimeAvg', + type: { + name: 'Double' + } + }, + api_time_min: { + required: false, + serialized_name: 'apiTimeMin', + type: { + name: 'Double' + } + }, + api_time_max: { + required: false, + serialized_name: 'apiTimeMax', + type: { + name: 'Double' + } + }, + service_time_avg: { + required: false, + serialized_name: 'serviceTimeAvg', + type: { + name: 'Double' + } + }, + service_time_min: { + required: false, + serialized_name: 'serviceTimeMin', + type: { + name: 'Double' + } + }, + service_time_max: { + required: false, + serialized_name: 'serviceTimeMax', + type: { + name: 'Double' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb new file mode 100644 index 0000000000..9e0ce31e70 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/representation_contract.rb @@ -0,0 +1,99 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Operation request/response representation details. + # + class RepresentationContract + + include MsRestAzure + + # @return [String] Specifies a registered or custom content type for this + # representation, e.g. application/xml. + attr_accessor :content_type + + # @return [String] An example of the representation. + attr_accessor :sample + + # @return [String] Schema identifier. Applicable only if 'contentType' + # value is neither 'application/x-www-form-urlencoded' nor + # 'multipart/form-data'. + attr_accessor :schema_id + + # @return [String] Type name defined by the schema. Applicable only if + # 'contentType' value is neither 'application/x-www-form-urlencoded' nor + # 'multipart/form-data'. + attr_accessor :type_name + + # @return [Array] Collection of form parameters. + # Required if 'contentType' value is either + # 'application/x-www-form-urlencoded' or 'multipart/form-data'.. + attr_accessor :form_parameters + + + # + # Mapper for RepresentationContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RepresentationContract', + type: { + name: 'Composite', + class_name: 'RepresentationContract', + model_properties: { + content_type: { + required: true, + serialized_name: 'contentType', + type: { + name: 'String' + } + }, + sample: { + required: false, + serialized_name: 'sample', + type: { + name: 'String' + } + }, + schema_id: { + required: false, + serialized_name: 'schemaId', + type: { + name: 'String' + } + }, + type_name: { + required: false, + serialized_name: 'typeName', + type: { + name: 'String' + } + }, + form_parameters: { + required: false, + serialized_name: 'formParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb new file mode 100644 index 0000000000..65f2d8c2c4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_contract.rb @@ -0,0 +1,101 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Operation request details. + # + class RequestContract + + include MsRestAzure + + # @return [String] Operation request description. + attr_accessor :description + + # @return [Array] Collection of operation request + # query parameters. + attr_accessor :query_parameters + + # @return [Array] Collection of operation request + # headers. + attr_accessor :headers + + # @return [Array] Collection of operation request + # representations. + attr_accessor :representations + + + # + # Mapper for RequestContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RequestContract', + type: { + name: 'Composite', + class_name: 'RequestContract', + model_properties: { + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + query_parameters: { + required: false, + serialized_name: 'queryParameters', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + }, + headers: { + required: false, + serialized_name: 'headers', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + }, + representations: { + required: false, + serialized_name: 'representations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'RepresentationContractElementType', + type: { + name: 'Composite', + class_name: 'RepresentationContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb new file mode 100644 index 0000000000..429439f7e3 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_collection.rb @@ -0,0 +1,62 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Report records list representation. + # + class RequestReportCollection + + include MsRestAzure + + # @return [Array] Page values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + + # + # Mapper for RequestReportCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RequestReportCollection', + type: { + name: 'Composite', + class_name: 'RequestReportCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'RequestReportRecordContractElementType', + type: { + name: 'Composite', + class_name: 'RequestReportRecordContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb new file mode 100644 index 0000000000..7447d7cfe6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/request_report_record_contract.rb @@ -0,0 +1,226 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Request Report data. + # + class RequestReportRecordContract + + include MsRestAzure + + # @return [String] API identifier path. /apis/{apiId} + attr_accessor :api_id + + # @return [String] Operation identifier path. + # /apis/{apiId}/operations/{operationId} + attr_accessor :operation_id + + # @return [String] Product identifier path. /products/{productId} + attr_accessor :product_id + + # @return [String] User identifier path. /users/{userId} + attr_accessor :user_id + + # @return [String] The HTTP method associated with this request.. + attr_accessor :method + + # @return [String] The full URL associated with this request. + attr_accessor :url + + # @return [String] The client IP address associated with this request. + attr_accessor :ip_address + + # @return [String] The HTTP status code received by the gateway as a + # result of forwarding this request to the backend. + attr_accessor :backend_response_code + + # @return [Integer] The HTTP status code returned by the gateway. + attr_accessor :response_code + + # @return [Integer] The size of the response returned by the gateway. + attr_accessor :response_size + + # @return [DateTime] The date and time when this request was received by + # the gateway in ISO 8601 format. + attr_accessor :timestamp + + # @return [String] Specifies if response cache was involved in generating + # the response. If the value is none, the cache was not used. If the + # value is hit, cached response was returned. If the value is miss, the + # cache was used but lookup resulted in a miss and request was fullfilled + # by the backend. + attr_accessor :cache + + # @return [Float] The total time it took to process this request. + attr_accessor :api_time + + # @return [Float] he time it took to forward this request to the backend + # and get the response back. + attr_accessor :service_time + + # @return [String] Azure region where the gateway that processed this + # request is located. + attr_accessor :api_region + + # @return [String] Subscription identifier path. + # /subscriptions/{subscriptionId} + attr_accessor :subscription_id + + # @return [String] Request Identifier. + attr_accessor :request_id + + # @return [Integer] The size of this request.. + attr_accessor :request_size + + + # + # Mapper for RequestReportRecordContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'RequestReportRecordContract', + type: { + name: 'Composite', + class_name: 'RequestReportRecordContract', + model_properties: { + api_id: { + required: false, + serialized_name: 'apiId', + type: { + name: 'String' + } + }, + operation_id: { + required: false, + serialized_name: 'operationId', + type: { + name: 'String' + } + }, + product_id: { + required: false, + read_only: true, + serialized_name: 'productId', + type: { + name: 'String' + } + }, + user_id: { + required: false, + read_only: true, + serialized_name: 'userId', + type: { + name: 'String' + } + }, + method: { + required: false, + serialized_name: 'method', + type: { + name: 'String' + } + }, + url: { + required: false, + serialized_name: 'url', + type: { + name: 'String' + } + }, + ip_address: { + required: false, + serialized_name: 'ipAddress', + type: { + name: 'String' + } + }, + backend_response_code: { + required: false, + serialized_name: 'backendResponseCode', + type: { + name: 'String' + } + }, + response_code: { + required: false, + serialized_name: 'responseCode', + type: { + name: 'Number' + } + }, + response_size: { + required: false, + serialized_name: 'responseSize', + type: { + name: 'Number' + } + }, + timestamp: { + required: false, + serialized_name: 'timestamp', + type: { + name: 'DateTime' + } + }, + cache: { + required: false, + serialized_name: 'cache', + type: { + name: 'String' + } + }, + api_time: { + required: false, + serialized_name: 'apiTime', + type: { + name: 'Double' + } + }, + service_time: { + required: false, + serialized_name: 'serviceTime', + type: { + name: 'Double' + } + }, + api_region: { + required: false, + serialized_name: 'apiRegion', + type: { + name: 'String' + } + }, + subscription_id: { + required: false, + serialized_name: 'subscriptionId', + type: { + name: 'String' + } + }, + request_id: { + required: false, + serialized_name: 'requestId', + type: { + name: 'String' + } + }, + request_size: { + required: false, + serialized_name: 'requestSize', + type: { + name: 'Number' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb new file mode 100644 index 0000000000..14518126ec --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/resource.rb @@ -0,0 +1,67 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The Resource definition. + # + class Resource + + include MsRestAzure + + # @return [String] Resource ID. + attr_accessor :id + + # @return [String] Resource name. + attr_accessor :name + + # @return [String] Resource type for API Management resource. + attr_accessor :type + + + # + # Mapper for Resource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Resource', + type: { + name: 'Composite', + class_name: 'Resource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb new file mode 100644 index 0000000000..e3aa211c5c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/response_contract.rb @@ -0,0 +1,92 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Operation response details. + # + class ResponseContract + + include MsRestAzure + + # @return [Integer] Operation response HTTP status code. + attr_accessor :status_code + + # @return [String] Operation response description. + attr_accessor :description + + # @return [Array] Collection of operation + # response representations. + attr_accessor :representations + + # @return [Array] Collection of operation response + # headers. + attr_accessor :headers + + + # + # Mapper for ResponseContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ResponseContract', + type: { + name: 'Composite', + class_name: 'ResponseContract', + model_properties: { + status_code: { + required: true, + serialized_name: 'statusCode', + type: { + name: 'Number' + } + }, + description: { + required: false, + serialized_name: 'description', + type: { + name: 'String' + } + }, + representations: { + required: false, + serialized_name: 'representations', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'RepresentationContractElementType', + type: { + name: 'Composite', + class_name: 'RepresentationContract' + } + } + } + }, + headers: { + required: false, + serialized_name: 'headers', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ParameterContractElementType', + type: { + name: 'Composite', + class_name: 'ParameterContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb new file mode 100644 index 0000000000..0796f9df36 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/save_configuration_parameter.rb @@ -0,0 +1,57 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Save Tenant Configuration operation. + # + class SaveConfigurationParameter + + include MsRestAzure + + # @return [String] The name of the Git branch in which to commit the + # current configuration snapshot. + attr_accessor :branch + + # @return [Boolean] The value if true, the current configuration database + # is committed to the Git repository, even if the Git repository has + # newer changes that would be overwritten. + attr_accessor :force + + + # + # Mapper for SaveConfigurationParameter class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SaveConfigurationParameter', + type: { + name: 'Composite', + class_name: 'SaveConfigurationParameter', + model_properties: { + branch: { + required: true, + serialized_name: 'branch', + type: { + name: 'String' + } + }, + force: { + required: false, + serialized_name: 'force', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb new file mode 100644 index 0000000000..954ea6f8a9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_collection.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # The response of the list schema operation. + # + class SchemaCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Api Schema Contract value. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [SchemaCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for SchemaCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SchemaCollection', + type: { + name: 'Composite', + class_name: 'SchemaCollection', + model_properties: { + value: { + required: false, + read_only: true, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SchemaContractElementType', + type: { + name: 'Composite', + class_name: 'SchemaContract' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb new file mode 100644 index 0000000000..add8269098 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/schema_contract.rb @@ -0,0 +1,81 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Schema Contract details. + # + class SchemaContract < Resource + + include MsRestAzure + + # @return [String] Must be a valid a media type used in a Content-Type + # header as defined in the RFC 2616. Media type of the schema document + # (e.g. application/json, application/xml). + attr_accessor :content_type + + # @return [String] Json escaped string defining the document representing + # the Schema. + attr_accessor :value + + + # + # Mapper for SchemaContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SchemaContract', + type: { + name: 'Composite', + class_name: 'SchemaContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + content_type: { + required: true, + serialized_name: 'properties.contentType', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'properties.document.value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb new file mode 100644 index 0000000000..d6f53fd8f7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/sku_type.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for SkuType + # + module SkuType + Developer = "Developer" + Standard = "Standard" + Premium = "Premium" + Basic = "Basic" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb new file mode 100644 index 0000000000..affa74dc0a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/soap_api_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for SoapApiType + # + module SoapApiType + SoapToRest = "http" + SoapPassThrough = "soap" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/state.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/state.rb new file mode 100644 index 0000000000..2c46c301bb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/state.rb @@ -0,0 +1,19 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for State + # + module State + Proposed = "proposed" + Open = "open" + Removed = "removed" + Resolved = "resolved" + Closed = "closed" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb new file mode 100644 index 0000000000..b0de4dd604 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Subscriptions list representation. + # + class SubscriptionCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [SubscriptionCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for SubscriptionCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubscriptionCollection', + type: { + name: 'Composite', + class_name: 'SubscriptionCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SubscriptionContractElementType', + type: { + name: 'Composite', + class_name: 'SubscriptionContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb new file mode 100644 index 0000000000..2b26ee2af7 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_contract.rb @@ -0,0 +1,228 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Subscription details. + # + class SubscriptionContract < Resource + + include MsRestAzure + + # @return [String] The user resource identifier of the subscription + # owner. The value is a valid relative URL in the format of /users/{uid} + # where {uid} is a user identifier. + attr_accessor :user_id + + # @return [String] The product resource identifier of the subscribed + # product. The value is a valid relative URL in the format of + # /products/{productId} where {productId} is a product identifier. + attr_accessor :product_id + + # @return [String] The name of the subscription, or null if the + # subscription has no name. + attr_accessor :display_name + + # @return [SubscriptionState] Subscription state. Possible states are * + # active – the subscription is active, * suspended – the subscription is + # blocked, and the subscriber cannot call any APIs of the product, * + # submitted – the subscription request has been made by the developer, + # but has not yet been approved or rejected, * rejected – the + # subscription request has been denied by an administrator, * cancelled – + # the subscription has been cancelled by the developer or administrator, + # * expired – the subscription reached its expiration date and was + # deactivated. Possible values include: 'suspended', 'active', 'expired', + # 'submitted', 'rejected', 'cancelled' + attr_accessor :state + + # @return [DateTime] Subscription creation date. The date conforms to the + # following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 + # standard. + # + attr_accessor :created_date + + # @return [DateTime] Subscription activation date. The setting is for + # audit purposes only and the subscription is not automatically + # activated. The subscription lifecycle can be managed by using the + # `state` property. The date conforms to the following format: + # `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + # + attr_accessor :start_date + + # @return [DateTime] Subscription expiration date. The setting is for + # audit purposes only and the subscription is not automatically expired. + # The subscription lifecycle can be managed by using the `state` + # property. The date conforms to the following format: + # `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + # + attr_accessor :expiration_date + + # @return [DateTime] Date when subscription was cancelled or expired. The + # setting is for audit purposes only and the subscription is not + # automatically cancelled. The subscription lifecycle can be managed by + # using the `state` property. The date conforms to the following format: + # `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + # + attr_accessor :end_date + + # @return [DateTime] Upcoming subscription expiration notification date. + # The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + # specified by the ISO 8601 standard. + # + attr_accessor :notification_date + + # @return [String] Subscription primary key. + attr_accessor :primary_key + + # @return [String] Subscription secondary key. + attr_accessor :secondary_key + + # @return [String] Optional subscription comment added by an + # administrator. + attr_accessor :state_comment + + + # + # Mapper for SubscriptionContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubscriptionContract', + type: { + name: 'Composite', + class_name: 'SubscriptionContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + user_id: { + required: true, + serialized_name: 'properties.userId', + type: { + name: 'String' + } + }, + product_id: { + required: true, + serialized_name: 'properties.productId', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 100, + MinLength: 0 + }, + type: { + name: 'String' + } + }, + state: { + required: true, + serialized_name: 'properties.state', + type: { + name: 'Enum', + module: 'SubscriptionState' + } + }, + created_date: { + required: false, + read_only: true, + serialized_name: 'properties.createdDate', + type: { + name: 'DateTime' + } + }, + start_date: { + required: false, + serialized_name: 'properties.startDate', + type: { + name: 'DateTime' + } + }, + expiration_date: { + required: false, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + end_date: { + required: false, + serialized_name: 'properties.endDate', + type: { + name: 'DateTime' + } + }, + notification_date: { + required: false, + serialized_name: 'properties.notificationDate', + type: { + name: 'DateTime' + } + }, + primary_key: { + required: true, + serialized_name: 'properties.primaryKey', + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + secondary_key: { + required: true, + serialized_name: 'properties.secondaryKey', + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + state_comment: { + required: false, + serialized_name: 'properties.stateComment', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb new file mode 100644 index 0000000000..9560f58d49 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_create_parameters.rb @@ -0,0 +1,121 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Subscription create details. + # + class SubscriptionCreateParameters + + include MsRestAzure + + # @return [String] User (user id path) for whom subscription is being + # created in form /users/{uid} + attr_accessor :user_id + + # @return [String] Product (product id path) for which subscription is + # being created in form /products/{productid} + attr_accessor :product_id + + # @return [String] Subscription name. + attr_accessor :display_name + + # @return [String] Primary subscription key. If not specified during + # request key will be generated automatically. + attr_accessor :primary_key + + # @return [String] Secondary subscription key. If not specified during + # request key will be generated automatically. + attr_accessor :secondary_key + + # @return [SubscriptionState] Initial subscription state. If no value is + # specified, subscription is created with Submitted state. Possible + # states are * active – the subscription is active, * suspended – the + # subscription is blocked, and the subscriber cannot call any APIs of the + # product, * submitted – the subscription request has been made by the + # developer, but has not yet been approved or rejected, * rejected – the + # subscription request has been denied by an administrator, * cancelled – + # the subscription has been cancelled by the developer or administrator, + # * expired – the subscription reached its expiration date and was + # deactivated. Possible values include: 'suspended', 'active', 'expired', + # 'submitted', 'rejected', 'cancelled' + attr_accessor :state + + + # + # Mapper for SubscriptionCreateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubscriptionCreateParameters', + type: { + name: 'Composite', + class_name: 'SubscriptionCreateParameters', + model_properties: { + user_id: { + required: true, + serialized_name: 'properties.userId', + type: { + name: 'String' + } + }, + product_id: { + required: true, + serialized_name: 'properties.productId', + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + primary_key: { + required: false, + serialized_name: 'properties.primaryKey', + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + secondary_key: { + required: false, + serialized_name: 'properties.secondaryKey', + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'Enum', + module: 'SubscriptionState' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb new file mode 100644 index 0000000000..95422e01ca --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_key_parameter_names_contract.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Subscription key parameter names details. + # + class SubscriptionKeyParameterNamesContract + + include MsRestAzure + + # @return [String] Subscription key header name. + attr_accessor :header + + # @return [String] Subscription key query string parameter name. + attr_accessor :query + + + # + # Mapper for SubscriptionKeyParameterNamesContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubscriptionKeyParameterNamesContract', + type: { + name: 'Composite', + class_name: 'SubscriptionKeyParameterNamesContract', + model_properties: { + header: { + required: false, + serialized_name: 'header', + type: { + name: 'String' + } + }, + query: { + required: false, + serialized_name: 'query', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb new file mode 100644 index 0000000000..c406f3bd17 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_state.rb @@ -0,0 +1,20 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for SubscriptionState + # + module SubscriptionState + Suspended = "suspended" + Active = "active" + Expired = "expired" + Submitted = "submitted" + Rejected = "rejected" + Cancelled = "cancelled" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb new file mode 100644 index 0000000000..3cb1e6853f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscription_update_parameters.rb @@ -0,0 +1,137 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Subscription update details. + # + class SubscriptionUpdateParameters + + include MsRestAzure + + # @return [String] User identifier path: /users/{uid} + attr_accessor :user_id + + # @return [String] Product identifier path: /products/{productId} + attr_accessor :product_id + + # @return [DateTime] Subscription expiration date. The setting is for + # audit purposes only and the subscription is not automatically expired. + # The subscription lifecycle can be managed by using the `state` + # property. The date conforms to the following format: + # `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + attr_accessor :expiration_date + + # @return [String] Subscription name. + attr_accessor :display_name + + # @return [String] Primary subscription key. + attr_accessor :primary_key + + # @return [String] Secondary subscription key. + attr_accessor :secondary_key + + # @return [SubscriptionState] Subscription state. Possible states are * + # active – the subscription is active, * suspended – the subscription is + # blocked, and the subscriber cannot call any APIs of the product, * + # submitted – the subscription request has been made by the developer, + # but has not yet been approved or rejected, * rejected – the + # subscription request has been denied by an administrator, * cancelled – + # the subscription has been cancelled by the developer or administrator, + # * expired – the subscription reached its expiration date and was + # deactivated. Possible values include: 'suspended', 'active', 'expired', + # 'submitted', 'rejected', 'cancelled' + attr_accessor :state + + # @return [String] Comments describing subscription state change by the + # administrator. + attr_accessor :state_comment + + + # + # Mapper for SubscriptionUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubscriptionUpdateParameters', + type: { + name: 'Composite', + class_name: 'SubscriptionUpdateParameters', + model_properties: { + user_id: { + required: false, + serialized_name: 'properties.userId', + type: { + name: 'String' + } + }, + product_id: { + required: false, + serialized_name: 'properties.productId', + type: { + name: 'String' + } + }, + expiration_date: { + required: false, + serialized_name: 'properties.expirationDate', + type: { + name: 'DateTime' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + type: { + name: 'String' + } + }, + primary_key: { + required: false, + serialized_name: 'properties.primaryKey', + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + secondary_key: { + required: false, + serialized_name: 'properties.secondaryKey', + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + type: { + name: 'Enum', + module: 'SubscriptionState' + } + }, + state_comment: { + required: false, + serialized_name: 'properties.stateComment', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb new file mode 100644 index 0000000000..9d5f0ab2e5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/subscriptions_delegation_settings_properties.rb @@ -0,0 +1,45 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Subscriptions delegation settings properties. + # + class SubscriptionsDelegationSettingsProperties + + include MsRestAzure + + # @return [Boolean] Enable or disable delegation for subscriptions. + attr_accessor :enabled + + + # + # Mapper for SubscriptionsDelegationSettingsProperties class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SubscriptionsDelegationSettingsProperties', + type: { + name: 'Composite', + class_name: 'SubscriptionsDelegationSettingsProperties', + model_properties: { + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb new file mode 100644 index 0000000000..e0cff8cd09 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Tag list representation. + # + class TagCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [TagCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for TagCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagCollection', + type: { + name: 'Composite', + class_name: 'TagCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TagContractElementType', + type: { + name: 'Composite', + class_name: 'TagContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb new file mode 100644 index 0000000000..97c972b80b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_contract.rb @@ -0,0 +1,72 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Tag Contract details. + # + class TagContract < Resource + + include MsRestAzure + + # @return [String] Tag name. + attr_accessor :display_name + + + # + # Mapper for TagContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagContract', + type: { + name: 'Composite', + class_name: 'TagContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 160, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb new file mode 100644 index 0000000000..ae49014735 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_create_update_parameters.rb @@ -0,0 +1,48 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to Create/Update Tag operations. + # + class TagCreateUpdateParameters + + include MsRestAzure + + # @return [String] Tag name. + attr_accessor :display_name + + + # + # Mapper for TagCreateUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagCreateUpdateParameters', + type: { + name: 'Composite', + class_name: 'TagCreateUpdateParameters', + model_properties: { + display_name: { + required: true, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 160, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb new file mode 100644 index 0000000000..8f5654062c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged TagDescription list representation. + # + class TagDescriptionCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [TagDescriptionCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for TagDescriptionCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagDescriptionCollection', + type: { + name: 'Composite', + class_name: 'TagDescriptionCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TagDescriptionContractElementType', + type: { + name: 'Composite', + class_name: 'TagDescriptionContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb new file mode 100644 index 0000000000..cbea7509c5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_contract.rb @@ -0,0 +1,106 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Contract details. + # + class TagDescriptionContract < Resource + + include MsRestAzure + + # @return [String] Description of the Tag. + attr_accessor :description + + # @return [String] Absolute URL of external resources describing the tag. + attr_accessor :external_docs_url + + # @return [String] Description of the external resources describing the + # tag. + attr_accessor :external_docs_description + + # @return [String] Tag name. + attr_accessor :display_name + + + # + # Mapper for TagDescriptionContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagDescriptionContract', + type: { + name: 'Composite', + class_name: 'TagDescriptionContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + external_docs_url: { + required: false, + serialized_name: 'properties.externalDocsUrl', + constraints: { + MaxLength: 2000 + }, + type: { + name: 'String' + } + }, + external_docs_description: { + required: false, + serialized_name: 'properties.externalDocsDescription', + type: { + name: 'String' + } + }, + display_name: { + required: false, + serialized_name: 'properties.displayName', + constraints: { + MaxLength: 160, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb new file mode 100644 index 0000000000..6c02fac247 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_description_create_parameters.rb @@ -0,0 +1,68 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Create TagDescription operation. + # + class TagDescriptionCreateParameters + + include MsRestAzure + + # @return [String] Description of the Tag. + attr_accessor :description + + # @return [String] Absolute URL of external resources describing the tag. + attr_accessor :external_docs_url + + # @return [String] Description of the external resources describing the + # tag. + attr_accessor :external_docs_description + + + # + # Mapper for TagDescriptionCreateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagDescriptionCreateParameters', + type: { + name: 'Composite', + class_name: 'TagDescriptionCreateParameters', + model_properties: { + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + external_docs_url: { + required: false, + serialized_name: 'properties.externalDocsUrl', + constraints: { + MaxLength: 2000 + }, + type: { + name: 'String' + } + }, + external_docs_description: { + required: false, + serialized_name: 'properties.externalDocsDescription', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb new file mode 100644 index 0000000000..2da0f24471 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_collection.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Tag list representation. + # + class TagResourceCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [TagResourceCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for TagResourceCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagResourceCollection', + type: { + name: 'Composite', + class_name: 'TagResourceCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'TagResourceContractElementType', + type: { + name: 'Composite', + class_name: 'TagResourceContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb new file mode 100644 index 0000000000..3e6e981762 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_resource_contract.rb @@ -0,0 +1,81 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # TagResource contract properties. + # + class TagResourceContract + + include MsRestAzure + + # @return [TagTagResourceContractProperties] Tag associated with the + # resource. + attr_accessor :tag + + # @return [ApiTagResourceContractProperties] Api associated with the tag. + attr_accessor :api + + # @return [OperationTagResourceContractProperties] Operation associated + # with the tag. + attr_accessor :operation + + # @return [ProductTagResourceContractProperties] Product associated with + # the tag. + attr_accessor :product + + + # + # Mapper for TagResourceContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagResourceContract', + type: { + name: 'Composite', + class_name: 'TagResourceContract', + model_properties: { + tag: { + required: true, + serialized_name: 'tag', + type: { + name: 'Composite', + class_name: 'TagTagResourceContractProperties' + } + }, + api: { + required: false, + serialized_name: 'api', + type: { + name: 'Composite', + class_name: 'ApiTagResourceContractProperties' + } + }, + operation: { + required: false, + serialized_name: 'operation', + type: { + name: 'Composite', + class_name: 'OperationTagResourceContractProperties' + } + }, + product: { + required: false, + serialized_name: 'product', + type: { + name: 'Composite', + class_name: 'ProductTagResourceContractProperties' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb new file mode 100644 index 0000000000..ec10306a00 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tag_tag_resource_contract_properties.rb @@ -0,0 +1,58 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Contract defining the Tag property in the Tag Resource Contract + # + class TagTagResourceContractProperties + + include MsRestAzure + + # @return [String] Tag identifier + attr_accessor :id + + # @return [String] Tag Name + attr_accessor :name + + + # + # Mapper for TagTagResourceContractProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TagTagResourceContractProperties', + type: { + name: 'Composite', + class_name: 'TagTagResourceContractProperties', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + constraints: { + MaxLength: 160, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb new file mode 100644 index 0000000000..af6f9c9a63 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/template_name.rb @@ -0,0 +1,28 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for TemplateName + # + module TemplateName + ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage" + AccountClosedDeveloper = "accountClosedDeveloper" + QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage" + NewDeveloperNotificationMessage = "newDeveloperNotificationMessage" + EmailChangeIdentityDefault = "emailChangeIdentityDefault" + InviteUserNotificationMessage = "inviteUserNotificationMessage" + NewCommentNotificationMessage = "newCommentNotificationMessage" + ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault" + NewIssueNotificationMessage = "newIssueNotificationMessage" + PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage" + PasswordResetIdentityDefault = "passwordResetIdentityDefault" + PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage" + RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage" + RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb new file mode 100644 index 0000000000..1d0132ed30 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/tenant_configuration_sync_state_contract.rb @@ -0,0 +1,113 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Tenant Configuration Synchronization State. + # + class TenantConfigurationSyncStateContract + + include MsRestAzure + + # @return [String] The name of Git branch. + attr_accessor :branch + + # @return [String] The latest commit Id. + attr_accessor :commit_id + + # @return [Boolean] value indicating if last sync was save (true) or + # deploy (false) operation. + attr_accessor :is_export + + # @return [Boolean] value indicating if last synchronization was later + # than the configuration change. + attr_accessor :is_synced + + # @return [Boolean] value indicating whether Git configuration access is + # enabled. + attr_accessor :is_git_enabled + + # @return [DateTime] The date of the latest synchronization. The date + # conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + # by the ISO 8601 standard. + # + attr_accessor :sync_date + + # @return [DateTime] The date of the latest configuration change. The + # date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + # specified by the ISO 8601 standard. + # + attr_accessor :configuration_change_date + + + # + # Mapper for TenantConfigurationSyncStateContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TenantConfigurationSyncStateContract', + type: { + name: 'Composite', + class_name: 'TenantConfigurationSyncStateContract', + model_properties: { + branch: { + required: false, + serialized_name: 'branch', + type: { + name: 'String' + } + }, + commit_id: { + required: false, + serialized_name: 'commitId', + type: { + name: 'String' + } + }, + is_export: { + required: false, + serialized_name: 'isExport', + type: { + name: 'Boolean' + } + }, + is_synced: { + required: false, + serialized_name: 'isSynced', + type: { + name: 'Boolean' + } + }, + is_git_enabled: { + required: false, + serialized_name: 'isGitEnabled', + type: { + name: 'Boolean' + } + }, + sync_date: { + required: false, + serialized_name: 'syncDate', + type: { + name: 'DateTime' + } + }, + configuration_change_date: { + required: false, + serialized_name: 'configurationChangeDate', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb new file mode 100644 index 0000000000..056d42ccc2 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/terms_of_service_properties.rb @@ -0,0 +1,64 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Terms of service contract properties. + # + class TermsOfServiceProperties + + include MsRestAzure + + # @return [String] A terms of service text. + attr_accessor :text + + # @return [Boolean] Display terms of service during a sign-up process. + attr_accessor :enabled + + # @return [Boolean] Ask user for consent to the terms of service. + attr_accessor :consent_required + + + # + # Mapper for TermsOfServiceProperties class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TermsOfServiceProperties', + type: { + name: 'Composite', + class_name: 'TermsOfServiceProperties', + model_properties: { + text: { + required: false, + serialized_name: 'text', + type: { + name: 'String' + } + }, + enabled: { + required: false, + serialized_name: 'enabled', + type: { + name: 'Boolean' + } + }, + consent_required: { + required: false, + serialized_name: 'consentRequired', + type: { + name: 'Boolean' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb new file mode 100644 index 0000000000..a446f20628 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/token_body_parameter_contract.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # OAuth acquire token request body parameter (www-url-form-encoded). + # + class TokenBodyParameterContract + + include MsRestAzure + + # @return [String] body parameter name. + attr_accessor :name + + # @return [String] body parameter value. + attr_accessor :value + + + # + # Mapper for TokenBodyParameterContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TokenBodyParameterContract', + type: { + name: 'Composite', + class_name: 'TokenBodyParameterContract', + model_properties: { + name: { + required: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + value: { + required: true, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb new file mode 100644 index 0000000000..48f0165f4d --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_collection.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Paged Users list representation. + # + class UserCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] Page values. + attr_accessor :value + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [UserCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for UserCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserCollection', + type: { + name: 'Composite', + class_name: 'UserCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserContractElementType', + type: { + name: 'Composite', + class_name: 'UserContract' + } + } + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb new file mode 100644 index 0000000000..3a8473120c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_contract.rb @@ -0,0 +1,165 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # User details. + # + class UserContract < Resource + + include MsRestAzure + + # @return [UserState] Account state. Specifies whether the user is active + # or not. Blocked users are unable to sign into the developer portal or + # call any APIs of subscribed products. Default state is Active. Possible + # values include: 'active', 'blocked', 'pending', 'deleted'. Default + # value: 'active' . + attr_accessor :state + + # @return [String] Optional note about a user set by the administrator. + attr_accessor :note + + # @return [Array] Collection of user identities. + attr_accessor :identities + + # @return [String] First name. + attr_accessor :first_name + + # @return [String] Last name. + attr_accessor :last_name + + # @return [String] Email address. + attr_accessor :email + + # @return [DateTime] Date of user registration. The date conforms to the + # following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 + # standard. + # + attr_accessor :registration_date + + # @return [Array] Collection of groups user is + # part of. + attr_accessor :groups + + + # + # Mapper for UserContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserContract', + type: { + name: 'Composite', + class_name: 'UserContract', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + state: { + required: false, + serialized_name: 'properties.state', + default_value: 'active', + type: { + name: 'String' + } + }, + note: { + required: false, + serialized_name: 'properties.note', + type: { + name: 'String' + } + }, + identities: { + required: false, + read_only: true, + serialized_name: 'properties.identities', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserIdentityContractElementType', + type: { + name: 'Composite', + class_name: 'UserIdentityContract' + } + } + } + }, + first_name: { + required: false, + serialized_name: 'properties.firstName', + type: { + name: 'String' + } + }, + last_name: { + required: false, + serialized_name: 'properties.lastName', + type: { + name: 'String' + } + }, + email: { + required: false, + serialized_name: 'properties.email', + type: { + name: 'String' + } + }, + registration_date: { + required: false, + serialized_name: 'properties.registrationDate', + type: { + name: 'DateTime' + } + }, + groups: { + required: false, + read_only: true, + serialized_name: 'properties.groups', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'GroupContractPropertiesElementType', + type: { + name: 'Composite', + class_name: 'GroupContractProperties' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb new file mode 100644 index 0000000000..5208790cd3 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_create_parameters.rb @@ -0,0 +1,144 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # User create details. + # + class UserCreateParameters + + include MsRestAzure + + # @return [UserState] Account state. Specifies whether the user is active + # or not. Blocked users are unable to sign into the developer portal or + # call any APIs of subscribed products. Default state is Active. Possible + # values include: 'active', 'blocked', 'pending', 'deleted'. Default + # value: 'active' . + attr_accessor :state + + # @return [String] Optional note about a user set by the administrator. + attr_accessor :note + + # @return [Array] Collection of user identities. + attr_accessor :identities + + # @return [String] Email address. Must not be empty and must be unique + # within the service instance. + attr_accessor :email + + # @return [String] First name. + attr_accessor :first_name + + # @return [String] Last name. + attr_accessor :last_name + + # @return [String] User Password. If no value is provided, a default + # password is generated. + attr_accessor :password + + # @return [Confirmation] Determines the type of confirmation e-mail that + # will be sent to the newly created user. Possible values include: + # 'signup', 'invite' + attr_accessor :confirmation + + + # + # Mapper for UserCreateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserCreateParameters', + type: { + name: 'Composite', + class_name: 'UserCreateParameters', + model_properties: { + state: { + required: false, + serialized_name: 'properties.state', + default_value: 'active', + type: { + name: 'String' + } + }, + note: { + required: false, + serialized_name: 'properties.note', + type: { + name: 'String' + } + }, + identities: { + required: false, + read_only: true, + serialized_name: 'properties.identities', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserIdentityContractElementType', + type: { + name: 'Composite', + class_name: 'UserIdentityContract' + } + } + } + }, + email: { + required: true, + serialized_name: 'properties.email', + constraints: { + MaxLength: 254, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + first_name: { + required: true, + serialized_name: 'properties.firstName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + last_name: { + required: true, + serialized_name: 'properties.lastName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + confirmation: { + required: false, + serialized_name: 'properties.confirmation', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb new file mode 100644 index 0000000000..db6f755ad0 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_entity_base_parameters.rb @@ -0,0 +1,78 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # User Entity Base Parameters set. + # + class UserEntityBaseParameters + + include MsRestAzure + + # @return [UserState] Account state. Specifies whether the user is active + # or not. Blocked users are unable to sign into the developer portal or + # call any APIs of subscribed products. Default state is Active. Possible + # values include: 'active', 'blocked', 'pending', 'deleted'. Default + # value: 'active' . + attr_accessor :state + + # @return [String] Optional note about a user set by the administrator. + attr_accessor :note + + # @return [Array] Collection of user identities. + attr_accessor :identities + + + # + # Mapper for UserEntityBaseParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserEntityBaseParameters', + type: { + name: 'Composite', + class_name: 'UserEntityBaseParameters', + model_properties: { + state: { + required: false, + serialized_name: 'state', + default_value: 'active', + type: { + name: 'String' + } + }, + note: { + required: false, + serialized_name: 'note', + type: { + name: 'String' + } + }, + identities: { + required: false, + read_only: true, + serialized_name: 'identities', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserIdentityContractElementType', + type: { + name: 'Composite', + class_name: 'UserIdentityContract' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb new file mode 100644 index 0000000000..233c86b922 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_collection.rb @@ -0,0 +1,104 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # List of Users Identity list representation. + # + class UserIdentityCollection + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] User Identity values. + attr_accessor :value + + # @return [Integer] Total record count number across all pages. + attr_accessor :count + + # @return [String] Next page link if any. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [UserIdentityCollection] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for UserIdentityCollection class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserIdentityCollection', + type: { + name: 'Composite', + class_name: 'UserIdentityCollection', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserIdentityContractElementType', + type: { + name: 'Composite', + class_name: 'UserIdentityContract' + } + } + } + }, + count: { + required: false, + serialized_name: 'count', + type: { + name: 'Number' + } + }, + next_link: { + required: false, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb new file mode 100644 index 0000000000..f256e54465 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_identity_contract.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # User identity details. + # + class UserIdentityContract + + include MsRestAzure + + # @return [String] Identity provider name. + attr_accessor :provider + + # @return [String] Identifier value within provider. + attr_accessor :id + + + # + # Mapper for UserIdentityContract class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserIdentityContract', + type: { + name: 'Composite', + class_name: 'UserIdentityContract', + model_properties: { + provider: { + required: false, + serialized_name: 'provider', + type: { + name: 'String' + } + }, + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb new file mode 100644 index 0000000000..25f4c3f04f --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_state.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for UserState + # + module UserState + Active = "active" + Blocked = "blocked" + Pending = "pending" + Deleted = "deleted" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb new file mode 100644 index 0000000000..7be0c8836a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_parameters.rb @@ -0,0 +1,61 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Parameters supplied to the Get User Token operation. + # + class UserTokenParameters + + include MsRestAzure + + # @return [KeyType] The Key to be used to generate token for user. + # Possible values include: 'primary', 'secondary'. Default value: + # 'primary' . + attr_accessor :key_type + + # @return [DateTime] The Expiry time of the Token. Maximum token expiry + # time is set to 30 days. The date conforms to the following format: + # `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + # + attr_accessor :expiry + + + # + # Mapper for UserTokenParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserTokenParameters', + type: { + name: 'Composite', + class_name: 'UserTokenParameters', + model_properties: { + key_type: { + required: true, + serialized_name: 'keyType', + default_value: 'primary', + type: { + name: 'Enum', + module: 'KeyType' + } + }, + expiry: { + required: true, + serialized_name: 'expiry', + type: { + name: 'DateTime' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb new file mode 100644 index 0000000000..1008e294aa --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_token_result.rb @@ -0,0 +1,44 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Get User Token response details. + # + class UserTokenResult + + include MsRestAzure + + # @return [String] Shared Access Authorization token for the User. + attr_accessor :value + + + # + # Mapper for UserTokenResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserTokenResult', + type: { + name: 'Composite', + class_name: 'UserTokenResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb new file mode 100644 index 0000000000..87825d2ccf --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/user_update_parameters.rb @@ -0,0 +1,131 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # User update parameters. + # + class UserUpdateParameters + + include MsRestAzure + + # @return [UserState] Account state. Specifies whether the user is active + # or not. Blocked users are unable to sign into the developer portal or + # call any APIs of subscribed products. Default state is Active. Possible + # values include: 'active', 'blocked', 'pending', 'deleted'. Default + # value: 'active' . + attr_accessor :state + + # @return [String] Optional note about a user set by the administrator. + attr_accessor :note + + # @return [Array] Collection of user identities. + attr_accessor :identities + + # @return [String] Email address. Must not be empty and must be unique + # within the service instance. + attr_accessor :email + + # @return [String] User Password. + attr_accessor :password + + # @return [String] First name. + attr_accessor :first_name + + # @return [String] Last name. + attr_accessor :last_name + + + # + # Mapper for UserUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserUpdateParameters', + type: { + name: 'Composite', + class_name: 'UserUpdateParameters', + model_properties: { + state: { + required: false, + serialized_name: 'properties.state', + default_value: 'active', + type: { + name: 'String' + } + }, + note: { + required: false, + serialized_name: 'properties.note', + type: { + name: 'String' + } + }, + identities: { + required: false, + read_only: true, + serialized_name: 'properties.identities', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'UserIdentityContractElementType', + type: { + name: 'Composite', + class_name: 'UserIdentityContract' + } + } + } + }, + email: { + required: false, + serialized_name: 'properties.email', + constraints: { + MaxLength: 254, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + password: { + required: false, + serialized_name: 'properties.password', + type: { + name: 'String' + } + }, + first_name: { + required: false, + serialized_name: 'properties.firstName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + }, + last_name: { + required: false, + serialized_name: 'properties.lastName', + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb new file mode 100644 index 0000000000..29c47369d8 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/versioning_scheme.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for VersioningScheme + # + module VersioningScheme + Segment = "Segment" + Query = "Query" + Header = "Header" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb new file mode 100644 index 0000000000..9e441a2336 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_configuration.rb @@ -0,0 +1,72 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Configuration of a virtual network to which API Management service is + # deployed. + # + class VirtualNetworkConfiguration + + include MsRestAzure + + # @return [String] The virtual network ID. This is typically a GUID. + # Expect a null GUID by default. + attr_accessor :vnetid + + # @return [String] The name of the subnet. + attr_accessor :subnetname + + # @return [String] The full resource ID of a subnet in a virtual network + # to deploy the API Management service in. + attr_accessor :subnet_resource_id + + + # + # Mapper for VirtualNetworkConfiguration class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'VirtualNetworkConfiguration', + type: { + name: 'Composite', + class_name: 'VirtualNetworkConfiguration', + model_properties: { + vnetid: { + required: false, + read_only: true, + serialized_name: 'vnetid', + type: { + name: 'String' + } + }, + subnetname: { + required: false, + read_only: true, + serialized_name: 'subnetname', + type: { + name: 'String' + } + }, + subnet_resource_id: { + required: false, + serialized_name: 'subnetResourceId', + constraints: { + Pattern: '^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$' + }, + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb new file mode 100644 index 0000000000..9fedb56f67 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/virtual_network_type.rb @@ -0,0 +1,17 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Defines values for VirtualNetworkType + # + module VirtualNetworkType + None = "None" + External = "External" + Internal = "Internal" + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb new file mode 100644 index 0000000000..aadfc5dd86 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/models/x509certificate_name.rb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + module Models + # + # Properties of server X509Names. + # + class X509CertificateName + + include MsRestAzure + + # @return [String] Common Name of the Certificate. + attr_accessor :name + + # @return [String] Thumbprint for the Issuer of the Certificate. + attr_accessor :issuer_certificate_thumbprint + + + # + # Mapper for X509CertificateName class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'X509CertificateName', + type: { + name: 'Composite', + class_name: 'X509CertificateName', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + issuer_certificate_thumbprint: { + required: false, + serialized_name: 'issuerCertificateThumbprint', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb new file mode 100644 index 0000000000..d0a58ba7dc --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/module_definition.rb @@ -0,0 +1,9 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure end +module Azure::ApiManagement end +module Azure::ApiManagement::Mgmt end +module Azure::ApiManagement::Mgmt::V2018_01_01_preview end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb new file mode 100644 index 0000000000..816acceb57 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/network_status.rb @@ -0,0 +1,243 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class NetworkStatus + include MsRestAzure + + # + # Creates and initializes a new instance of the NetworkStatus class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the Connectivity Status to the external resources on which the Api + # Management service depends from inside the Cloud Service. This also returns + # the DNS Servers as visible to the CloudService. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the Connectivity Status to the external resources on which the Api + # Management service depends from inside the Cloud Service. This also returns + # the DNS Servers as visible to the CloudService. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the Connectivity Status to the external resources on which the Api + # Management service depends from inside the Cloud Service. This also returns + # the DNS Servers as visible to the CloudService. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'NetworkStatusContractByLocationElementType', + type: { + name: 'Composite', + class_name: 'NetworkStatusContractByLocation' + } + } + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the Connectivity Status to the external resources on which the Api + # Management service depends from inside the Cloud Service. This also returns + # the DNS Servers as visible to the CloudService. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param location_name [String] Location in which the API Management service is + # deployed. This is one of the Azure Regions like West US, East US, South + # Central US. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NetworkStatusContract] operation results. + # + def list_by_location(resource_group_name, service_name, location_name, custom_headers = nil) + response = list_by_location_async(resource_group_name, service_name, location_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the Connectivity Status to the external resources on which the Api + # Management service depends from inside the Cloud Service. This also returns + # the DNS Servers as visible to the CloudService. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param location_name [String] Location in which the API Management service is + # deployed. This is one of the Azure Regions like West US, East US, South + # Central US. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_location_with_http_info(resource_group_name, service_name, location_name, custom_headers = nil) + list_by_location_async(resource_group_name, service_name, location_name, custom_headers).value! + end + + # + # Gets the Connectivity Status to the external resources on which the Api + # Management service depends from inside the Cloud Service. This also returns + # the DNS Servers as visible to the CloudService. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param location_name [String] Location in which the API Management service is + # deployed. This is one of the Azure Regions like West US, East US, South + # Central US. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_location_async(resource_group_name, service_name, location_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'location_name is nil' if location_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name,'locationName' => location_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::NetworkStatusContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb new file mode 100644 index 0000000000..bcb11edbc5 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification.rb @@ -0,0 +1,454 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Notification + include MsRestAzure + + # + # Creates and initializes a new instance of the Notification class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, top, skip, custom_headers).value! + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::NotificationCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the details of the Notification specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationContract] operation results. + # + def get(resource_group_name, service_name, notification_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, notification_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the Notification specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, notification_name, custom_headers = nil) + get_async(resource_group_name, service_name, notification_name, custom_headers).value! + end + + # + # Gets the details of the Notification specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, notification_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::NotificationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationContract] operation results. + # + def create_or_update(resource_group_name, service_name, notification_name, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, notification_name, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates an Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, notification_name, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, notification_name, if_match, custom_headers).value! + end + + # + # Updates an Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, notification_name, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::NotificationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::NotificationCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [NotificationCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb new file mode 100644 index 0000000000..2974b71010 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_email.rb @@ -0,0 +1,458 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class NotificationRecipientEmail + include MsRestAzure + + # + # Creates and initializes a new instance of the NotificationRecipientEmail class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the list of the Notification Recipient Emails subscribed to a + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RecipientEmailCollection] operation results. + # + def list_by_notification(resource_group_name, service_name, notification_name, custom_headers = nil) + response = list_by_notification_async(resource_group_name, service_name, notification_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the list of the Notification Recipient Emails subscribed to a + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_notification_with_http_info(resource_group_name, service_name, notification_name, custom_headers = nil) + list_by_notification_async(resource_group_name, service_name, notification_name, custom_headers).value! + end + + # + # Gets the list of the Notification Recipient Emails subscribed to a + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_notification_async(resource_group_name, service_name, notification_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RecipientEmailCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Determine if Notification Recipient Email subscribed to the notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, notification_name, email, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, notification_name, email, custom_headers).value! + response.body unless response.nil? + end + + # + # Determine if Notification Recipient Email subscribed to the notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, notification_name, email, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, notification_name, email, custom_headers).value! + end + + # + # Determine if Notification Recipient Email subscribed to the notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, notification_name, email, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, 'email is nil' if email.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'email' => email,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Adds the Email address to the list of Recipients for the Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RecipientEmailContract] operation results. + # + def create_or_update(resource_group_name, service_name, notification_name, email, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, notification_name, email, custom_headers).value! + response.body unless response.nil? + end + + # + # Adds the Email address to the list of Recipients for the Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, notification_name, email, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, notification_name, email, custom_headers).value! + end + + # + # Adds the Email address to the list of Recipients for the Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, notification_name, email, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, 'email is nil' if email.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'email' => email,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RecipientEmailContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RecipientEmailContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Removes the email from the list of Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, notification_name, email, custom_headers = nil) + response = delete_async(resource_group_name, service_name, notification_name, email, custom_headers).value! + nil + end + + # + # Removes the email from the list of Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, notification_name, email, custom_headers = nil) + delete_async(resource_group_name, service_name, notification_name, email, custom_headers).value! + end + + # + # Removes the email from the list of Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param email [String] Email identifier. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, notification_name, email, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, 'email is nil' if email.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'email' => email,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb new file mode 100644 index 0000000000..ee353dae08 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb @@ -0,0 +1,470 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class NotificationRecipientUser + include MsRestAzure + + # + # Creates and initializes a new instance of the NotificationRecipientUser class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the list of the Notification Recipient User subscribed to the + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RecipientUserCollection] operation results. + # + def list_by_notification(resource_group_name, service_name, notification_name, custom_headers = nil) + response = list_by_notification_async(resource_group_name, service_name, notification_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the list of the Notification Recipient User subscribed to the + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_notification_with_http_info(resource_group_name, service_name, notification_name, custom_headers = nil) + list_by_notification_async(resource_group_name, service_name, notification_name, custom_headers).value! + end + + # + # Gets the list of the Notification Recipient User subscribed to the + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_notification_async(resource_group_name, service_name, notification_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RecipientUserCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Determine if the Notification Recipient User is subscribed to the + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, notification_name, uid, custom_headers).value! + response.body unless response.nil? + end + + # + # Determine if the Notification Recipient User is subscribed to the + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, notification_name, uid, custom_headers).value! + end + + # + # Determine if the Notification Recipient User is subscribed to the + # notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Adds the API Management User to the list of Recipients for the Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RecipientUserContract] operation results. + # + def create_or_update(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, notification_name, uid, custom_headers).value! + response.body unless response.nil? + end + + # + # Adds the API Management User to the list of Recipients for the Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, notification_name, uid, custom_headers).value! + end + + # + # Adds the API Management User to the list of Recipients for the Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RecipientUserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RecipientUserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Removes the API Management user from the list of Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + response = delete_async(resource_group_name, service_name, notification_name, uid, custom_headers).value! + nil + end + + # + # Removes the API Management user from the list of Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + delete_async(resource_group_name, service_name, notification_name, uid, custom_headers).value! + end + + # + # Removes the API Management user from the list of Notification. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param notification_name [NotificationName] Notification Name Identifier. + # Possible values include: 'RequestPublisherNotificationMessage', + # 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', + # 'BCC', 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + # 'QuotaLimitApproachingPublisherNotificationMessage' + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, notification_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'notification_name is nil' if notification_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'notificationName' => notification_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb new file mode 100644 index 0000000000..0f1fa295ae --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/open_id_connect_provider.rb @@ -0,0 +1,774 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class OpenIdConnectProvider + include MsRestAzure + + # + # Creates and initializes a new instance of the OpenIdConnectProvider class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all OpenID Connect Providers. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all OpenID Connect Providers. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists all OpenID Connect Providers. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenIdConnectProviderCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the openIdConnectProvider specified + # by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, opid, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, opid, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the openIdConnectProvider specified + # by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, opid, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, opid, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the openIdConnectProvider specified + # by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, opid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'opid is nil' if opid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'opid' => opid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets specific OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OpenidConnectProviderContract] operation results. + # + def get(resource_group_name, service_name, opid, custom_headers = nil) + response = get_async(resource_group_name, service_name, opid, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets specific OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, opid, custom_headers = nil) + get_async(resource_group_name, service_name, opid, custom_headers).value! + end + + # + # Gets specific OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, opid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'opid is nil' if opid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'opid' => opid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenidConnectProviderContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates the OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param parameters [OpenidConnectProviderContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OpenidConnectProviderContract] operation results. + # + def create_or_update(resource_group_name, service_name, opid, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates the OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param parameters [OpenidConnectProviderContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, opid, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates the OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param parameters [OpenidConnectProviderContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, opid, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'opid is nil' if opid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenidConnectProviderContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'opid' => opid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenidConnectProviderContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenidConnectProviderContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the specific OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param parameters [OpenidConnectProviderUpdateContract] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the specific OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param parameters [OpenidConnectProviderUpdateContract] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers).value! + end + + # + # Updates the specific OpenID Connect Provider. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param parameters [OpenidConnectProviderUpdateContract] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, opid, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'opid is nil' if opid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenidConnectProviderUpdateContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'opid' => opid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific OpenID Connect Provider of the API Management service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, opid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, opid, if_match, custom_headers).value! + nil + end + + # + # Deletes specific OpenID Connect Provider of the API Management service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, opid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, opid, if_match, custom_headers).value! + end + + # + # Deletes specific OpenID Connect Provider of the API Management service + # instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param opid [String] Identifier of the OpenID Connect Provider. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, opid, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'opid is nil' if opid.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'opid' => opid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all OpenID Connect Providers. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OpenIdConnectProviderCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all OpenID Connect Providers. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all OpenID Connect Providers. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OpenIdConnectProviderCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all OpenID Connect Providers. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OpenIdConnectProviderCollection] which provide lazy access to pages + # of the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb new file mode 100644 index 0000000000..b2c91a6d96 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/operation_operations.rb @@ -0,0 +1,306 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class OperationOperations + include MsRestAzure + + # + # Creates and initializes a new instance of the OperationOperations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of operations associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_tags(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_tags_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of operations associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_tags_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_tags_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of operations associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_tags_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of operations associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagResourceCollection] operation results. + # + def list_by_tags_next(next_page_link, custom_headers = nil) + response = list_by_tags_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of operations associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_tags_next_with_http_info(next_page_link, custom_headers = nil) + list_by_tags_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of operations associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_tags_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of operations associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagResourceCollection] which provide lazy access to pages of the + # response. + # + def list_by_tags_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_tags_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_tags_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb new file mode 100644 index 0000000000..567aa030a6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy.rb @@ -0,0 +1,508 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Policy + include MsRestAzure + + # + # Creates and initializes a new instance of the Policy class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all the Global Policy definitions of the Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param scope [PolicyScopeContract] Policy scope. Possible values include: + # 'Tenant', 'Product', 'Api', 'Operation', 'All' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyCollection] operation results. + # + def list_by_service(resource_group_name, service_name, scope = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all the Global Policy definitions of the Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param scope [PolicyScopeContract] Policy scope. Possible values include: + # 'Tenant', 'Product', 'Api', 'Operation', 'All' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, scope = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! + end + + # + # Lists all the Global Policy definitions of the Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param scope [PolicyScopeContract] Policy scope. Possible values include: + # 'Tenant', 'Product', 'Api', 'Operation', 'All' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, scope = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'scope' => scope,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the Global policy definition in the + # Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the Global policy definition in the + # Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the Global policy definition in the + # Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get the Global policy definition of the Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the Global policy definition of the Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Get the Global policy definition of the Api Management service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + policy_id = 'policy' + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates the global policy configuration of the Api Management + # service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PolicyContract] The policy contents to apply. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates the global policy configuration of the Api Management + # service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PolicyContract] The policy contents to apply. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Creates or updates the global policy configuration of the Api Management + # service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PolicyContract] The policy contents to apply. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + policy_id = 'policy' + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the global policy configuration of the Api Management Service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, if_match, custom_headers).value! + nil + end + + # + # Deletes the global policy configuration of the Api Management Service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, if_match, custom_headers).value! + end + + # + # Deletes the global policy configuration of the Api Management Service. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + policy_id = 'policy' + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb new file mode 100644 index 0000000000..d19ebb4641 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/policy_snippets.rb @@ -0,0 +1,122 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class PolicySnippets + include MsRestAzure + + # + # Creates and initializes a new instance of the PolicySnippets class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all policy snippets. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param scope [PolicyScopeContract] Policy scope. Possible values include: + # 'Tenant', 'Product', 'Api', 'Operation', 'All' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicySnippetsCollection] operation results. + # + def list_by_service(resource_group_name, service_name, scope = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all policy snippets. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param scope [PolicyScopeContract] Policy scope. Possible values include: + # 'Tenant', 'Product', 'Api', 'Operation', 'All' + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, scope = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, scope, custom_headers).value! + end + + # + # Lists all policy snippets. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param scope [PolicyScopeContract] Policy scope. Possible values include: + # 'Tenant', 'Product', 'Api', 'Operation', 'All' + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, scope = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policySnippets' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'scope' => scope,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicySnippetsCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb new file mode 100644 index 0000000000..14e54ac639 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product.rb @@ -0,0 +1,824 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Product + include MsRestAzure + + # + # Creates and initializes a new instance of the Product class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of products in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_groups [Boolean] When set to true, the response contains an + # array of groups that have visibility to the product. The default is false. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of products in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_groups [Boolean] When set to true, the response contains an + # array of groups that have visibility to the product. The default is false. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers).value! + end + + # + # Lists a collection of products in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_groups [Boolean] When set to true, the response contains an + # array of groups that have visibility to the product. The default is false. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'expandGroups' => expand_groups,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the product specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, product_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the product specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, product_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the product specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, product_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the product specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProductContract] operation results. + # + def get(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, product_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the product specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_async(resource_group_name, service_name, product_id, custom_headers).value! + end + + # + # Gets the details of the product specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, product_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [ProductContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProductContract] operation results. + # + def create_or_update(resource_group_name, service_name, product_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [ProductContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [ProductContract] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Update product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [ProductUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Update product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [ProductUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! + end + + # + # Update product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [ProductUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Delete product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_subscriptions [Boolean] Delete existing subscriptions + # associated with the product or not. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions, custom_headers).value! + nil + end + + # + # Delete product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_subscriptions [Boolean] Delete existing subscriptions + # associated with the product or not. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions, custom_headers).value! + end + + # + # Delete product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_subscriptions [Boolean] Delete existing subscriptions + # associated with the product or not. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, product_id, if_match, delete_subscriptions = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'deleteSubscriptions' => delete_subscriptions,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of products in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProductCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of products in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of products in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ProductCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of products in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param expand_groups [Boolean] When set to true, the response contains an + # array of groups that have visibility to the product. The default is false. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ProductCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, expand_groups = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, expand_groups, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb new file mode 100644 index 0000000000..11d19cb4d1 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_api.rb @@ -0,0 +1,614 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ProductApi + include MsRestAzure + + # + # Creates and initializes a new instance of the ProductApi class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of the APIs associated with a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_product(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of the APIs associated with a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of the APIs associated with a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Checks that API entity specified by identifier is associated with the Product + # entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Checks that API entity specified by identifier is associated with the Product + # entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! + end + + # + # Checks that API entity specified by identifier is associated with the Product + # entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Adds an API to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiContract] operation results. + # + def create_or_update(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Adds an API to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! + end + + # + # Adds an API to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified API from the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! + nil + end + + # + # Deletes the specified API from the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, api_id, custom_headers).value! + end + + # + # Deletes the specified API from the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, product_id, api_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of the APIs associated with a product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiCollection] operation results. + # + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of the APIs associated with a product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of the APIs associated with a product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ApiCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of the APIs associated with a product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApiCollection] which provide lazy access to pages of the response. + # + def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_product_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb new file mode 100644 index 0000000000..7051f85323 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_group.rb @@ -0,0 +1,603 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ProductGroup + include MsRestAzure + + # + # Creates and initializes a new instance of the ProductGroup class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_product(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + end + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Checks that Group entity specified by identifier is associated with the + # Product entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Boolean] operation results. + # + def check_entity_exists(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = check_entity_exists_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Checks that Group entity specified by identifier is associated with the + # Product entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_entity_exists_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + check_entity_exists_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! + end + + # + # Checks that Group entity specified by identifier is associated with the + # Product entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_entity_exists_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 404 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.body = (status_code == 204) + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Adds the association between the specified developer group with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupContract] operation results. + # + def create_or_update(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Adds the association between the specified developer group with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! + end + + # + # Adds the association between the specified developer group with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the association between the specified group and product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! + nil + end + + # + # Deletes the association between the specified group and product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, group_id, custom_headers).value! + end + + # + # Deletes the association between the specified group and product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param group_id [String] Group identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, product_id, group_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'group_id is nil' if group_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'groupId' => group_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupCollection] operation results. + # + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! + end + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists the collection of developer groups associated with the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | type | eq, ne | N/A + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupCollection] which provide lazy access to pages of the response. + # + def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_product_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb new file mode 100644 index 0000000000..8f0de63f7e --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_policy.rb @@ -0,0 +1,538 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ProductPolicy + include MsRestAzure + + # + # Creates and initializes a new instance of the ProductPolicy class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Get the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyCollection] operation results. + # + def list_by_product(resource_group_name, service_name, product_id, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, custom_headers).value! + end + + # + # Get the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_async(resource_group_name, service_name, product_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'productId' => product_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Get the ETag of the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, product_id, custom_headers).value! + nil + end + + # + # Get the ETag of the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, product_id, custom_headers).value! + end + + # + # Get the ETag of the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, product_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + policy_id = 'policy' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'productId' => product_id,'policyId' => policy_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def get(resource_group_name, service_name, product_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, product_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, product_id, custom_headers = nil) + get_async(resource_group_name, service_name, product_id, custom_headers).value! + end + + # + # Get the policy configuration at the Product level. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, product_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + policy_id = 'policy' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'productId' => product_id,'policyId' => policy_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates policy configuration for the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PolicyContract] operation results. + # + def create_or_update(resource_group_name, service_name, product_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates policy configuration for the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, product_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates policy configuration for the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param parameters [PolicyContract] The policy contents to apply. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, product_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + policy_id = 'policy' + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PolicyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the policy configuration at the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, product_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, product_id, if_match, custom_headers).value! + nil + end + + # + # Deletes the policy configuration at the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, product_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, product_id, if_match, custom_headers).value! + end + + # + # Deletes the policy configuration at the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, product_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + policy_id = 'policy' + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'policyId' => policy_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb new file mode 100644 index 0000000000..67e3592726 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/product_subscriptions.rb @@ -0,0 +1,302 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class ProductSubscriptions + include MsRestAzure + + # + # Creates and initializes a new instance of the ProductSubscriptions class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists the collection of subscriptions to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists the collection of subscriptions to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + end + + # + # Lists the collection of subscriptions to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists the collection of subscriptions to the specified product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists the collection of subscriptions to the specified product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists the collection of subscriptions to the specified product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists the collection of subscriptions to the specified product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionCollection] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb new file mode 100644 index 0000000000..882e883091 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/property.rb @@ -0,0 +1,771 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Property + include MsRestAzure + + # + # Creates and initializes a new instance of the Property class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|-------------------------------------------------------| + # | tags | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith, any, all | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|-------------------------------------------------------| + # | tags | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith, any, all | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|-------------------------------------------------------| + # | tags | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith, any, all | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the property specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, prop_id, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, prop_id, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the property specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, prop_id, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, prop_id, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the property specified by its + # identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, prop_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'prop_id is nil' if prop_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'propId' => prop_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the property specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PropertyContract] operation results. + # + def get(resource_group_name, service_name, prop_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, prop_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the property specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, prop_id, custom_headers = nil) + get_async(resource_group_name, service_name, prop_id, custom_headers).value! + end + + # + # Gets the details of the property specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, prop_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'prop_id is nil' if prop_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'propId' => prop_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates a property. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param parameters [PropertyContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PropertyContract] operation results. + # + def create_or_update(resource_group_name, service_name, prop_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates a property. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param parameters [PropertyContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, prop_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! + end + + # + # Creates or updates a property. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param parameters [PropertyContract] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, prop_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'prop_id is nil' if prop_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyContract.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'propId' => prop_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the specific property. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param parameters [PropertyUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the specific property. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param parameters [PropertyUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the specific property. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param parameters [PropertyUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, prop_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'prop_id is nil' if prop_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'propId' => prop_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific property from the the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers).value! + nil + end + + # + # Deletes specific property from the the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers).value! + end + + # + # Deletes specific property from the the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param prop_id [String] Identifier of the property. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, prop_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'prop_id is nil' if prop_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'propId' => prop_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PropertyCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PropertyCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of properties defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported functions + # | + # |-------|------------------------|-------------------------------------------------------| + # | tags | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith, any, all | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PropertyCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb new file mode 100644 index 0000000000..5ff97bae9a --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_counter_keys.rb @@ -0,0 +1,256 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class QuotaByCounterKeys + include MsRestAzure + + # + # Creates and initializes a new instance of the QuotaByCounterKeys class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of current quota counter periods associated with the + # counter-key configured in the policy on the specified service instance. The + # api does not support paging yet. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [QuotaCounterCollection] operation results. + # + def list_by_service(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of current quota counter periods associated with the + # counter-key configured in the policy on the specified service instance. The + # api does not support paging yet. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers).value! + end + + # + # Lists a collection of current quota counter periods associated with the + # counter-key configured in the policy on the specified service instance. The + # api does not support paging yet. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, quota_counter_key, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name,'quotaCounterKey' => quota_counter_key}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::QuotaCounterCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates all the quota counter values specified with the existing quota + # counter key to a value in the specified service instance. This should be used + # for reset of the quota counter values. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param parameters [QuotaCounterValueContractProperties] The value of the + # quota counter to be applied to all quota counter periods. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers).value! + nil + end + + # + # Updates all the quota counter values specified with the existing quota + # counter key to a value in the specified service instance. This should be used + # for reset of the quota counter values. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param parameters [QuotaCounterValueContractProperties] The value of the + # quota counter to be applied to all quota counter periods. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers).value! + end + + # + # Updates all the quota counter values specified with the existing quota + # counter key to a value in the specified service instance. This should be used + # for reset of the quota counter values. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param parameters [QuotaCounterValueContractProperties] The value of the + # quota counter to be applied to all quota counter periods. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, quota_counter_key, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::QuotaCounterValueContractProperties.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'quotaCounterKey' => quota_counter_key,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb new file mode 100644 index 0000000000..91a8260741 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/quota_by_period_keys.rb @@ -0,0 +1,255 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class QuotaByPeriodKeys + include MsRestAzure + + # + # Creates and initializes a new instance of the QuotaByPeriodKeys class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the value of the quota counter associated with the counter-key in the + # policy for the specific period in service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param quota_period_key [String] Quota period key identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [QuotaCounterContract] operation results. + # + def get(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + response = get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the value of the quota counter associated with the counter-key in the + # policy for the specific period in service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param quota_period_key [String] Quota period key identifier. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers).value! + end + + # + # Gets the value of the quota counter associated with the counter-key in the + # policy for the specific period in service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param quota_period_key [String] Quota period key identifier. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, quota_counter_key, quota_period_key, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? + fail ArgumentError, 'quota_period_key is nil' if quota_period_key.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'serviceName' => service_name,'quotaCounterKey' => quota_counter_key,'quotaPeriodKey' => quota_period_key}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::QuotaCounterContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates an existing quota counter value in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param quota_period_key [String] Quota period key identifier. + # @param parameters [QuotaCounterValueContractProperties] The value of the + # Quota counter to be applied on the specified period. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + response = update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers).value! + nil + end + + # + # Updates an existing quota counter value in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param quota_period_key [String] Quota period key identifier. + # @param parameters [QuotaCounterValueContractProperties] The value of the + # Quota counter to be applied on the specified period. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers).value! + end + + # + # Updates an existing quota counter value in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param quota_counter_key [String] Quota counter key identifier.This is the + # result of expression defined in counter-key attribute of the quota-by-key + # policy.For Example, if you specify counter-key="boo" in the policy, then it’s + # accessible by "boo" counter key. But if it’s defined as + # counter-key="@("b"+"a")" then it will be accessible by "ba" key + # @param quota_period_key [String] Quota period key identifier. + # @param parameters [QuotaCounterValueContractProperties] The value of the + # Quota counter to be applied on the specified period. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, quota_counter_key, quota_period_key, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'quota_counter_key is nil' if quota_counter_key.nil? + fail ArgumentError, 'quota_period_key is nil' if quota_period_key.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::QuotaCounterValueContractProperties.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'quotaCounterKey' => quota_counter_key,'quotaPeriodKey' => quota_period_key,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb new file mode 100644 index 0000000000..169015b5e9 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/regions.rb @@ -0,0 +1,225 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Regions + include MsRestAzure + + # + # Creates and initializes a new instance of the Regions class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all azure regions in which the service exists. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, custom_headers) + first_page.get_all_items + end + + # + # Lists all azure regions in which the service exists. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Lists all azure regions in which the service exists. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RegionListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all azure regions in which the service exists. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RegionListResult] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all azure regions in which the service exists. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all azure regions in which the service exists. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RegionListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all azure regions in which the service exists. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RegionListResult] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb new file mode 100644 index 0000000000..d5a2c52abb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/reports.rb @@ -0,0 +1,1635 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Reports + include MsRestAzure + + # + # Creates and initializes a new instance of the Reports class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists report records by API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_api(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_with_http_info(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_async(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'filter is nil' if filter.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_user(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_user_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_user_with_http_info(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + list_by_user_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_user_async(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'filter is nil' if filter.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by API Operations. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_operation(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_operation_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by API Operations. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_operation_with_http_info(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + list_by_operation_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by API Operations. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_operation_async(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'filter is nil' if filter.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_product(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_with_http_info(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_async(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'filter is nil' if filter.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by GeoGraphy. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_geo(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_geo_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by GeoGraphy. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_geo_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_geo_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by GeoGraphy. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_geo_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_subscription(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_subscription_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_subscription_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_subscription_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_subscription_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by Time. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param interval [Duration] By time interval. Interval must be multiple of 15 + # minutes and may not be zero. The value should be in ISO 8601 format + # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to + # convert TimeSpan to a valid interval string: XmlConvert.ToString(new + # TimeSpan(hours, minutes, secconds)) + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_time(resource_group_name, service_name, interval, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_time_as_lazy(resource_group_name, service_name, interval, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists report records by Time. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param interval [Duration] By time interval. Interval must be multiple of 15 + # minutes and may not be zero. The value should be in ISO 8601 format + # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to + # convert TimeSpan to a valid interval string: XmlConvert.ToString(new + # TimeSpan(hours, minutes, secconds)) + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_time_with_http_info(resource_group_name, service_name, interval, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_time_async(resource_group_name, service_name, interval, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by Time. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param interval [Duration] By time interval. Interval must be multiple of 15 + # minutes and may not be zero. The value should be in ISO 8601 format + # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to + # convert TimeSpan to a valid interval string: XmlConvert.ToString(new + # TimeSpan(hours, minutes, secconds)) + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_time_async(resource_group_name, service_name, interval, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'interval is nil' if interval.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'interval' => interval,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by Request. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [RequestReportCollection] operation results. + # + def list_by_request(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + response = list_by_request_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by Request. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_request_with_http_info(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + list_by_request_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists report records by Request. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_request_async(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'filter is nil' if filter.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::RequestReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by User. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_user_next(next_page_link, custom_headers = nil) + response = list_by_user_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by User. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_user_next_with_http_info(next_page_link, custom_headers = nil) + list_by_user_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by User. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_user_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by API Operations. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_operation_next(next_page_link, custom_headers = nil) + response = list_by_operation_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by API Operations. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_operation_next_with_http_info(next_page_link, custom_headers = nil) + list_by_operation_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by API Operations. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_operation_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by Product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by Product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by Product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by GeoGraphy. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_geo_next(next_page_link, custom_headers = nil) + response = list_by_geo_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by GeoGraphy. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_geo_next_with_http_info(next_page_link, custom_headers = nil) + list_by_geo_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by GeoGraphy. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_geo_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_subscription_next(next_page_link, custom_headers = nil) + response = list_by_subscription_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) + list_by_subscription_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_subscription_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by Time. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] operation results. + # + def list_by_time_next(next_page_link, custom_headers = nil) + response = list_by_time_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists report records by Time. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_time_next_with_http_info(next_page_link, custom_headers = nil) + list_by_time_next_async(next_page_link, custom_headers).value! + end + + # + # Lists report records by Time. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_time_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::ReportCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists report records by API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_api_as_lazy(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_api_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists report records by User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_user_as_lazy(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + response = list_by_user_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_user_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists report records by API Operations. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_operation_as_lazy(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + response = list_by_operation_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_operation_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists report records by Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_product_as_lazy(resource_group_name, service_name, filter, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_product_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists report records by GeoGraphy. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_geo_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_geo_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_geo_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists report records by subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_subscription_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_subscription_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_subscription_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists report records by Time. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param interval [Duration] By time interval. Interval must be multiple of 15 + # minutes and may not be zero. The value should be in ISO 8601 format + # (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to + # convert TimeSpan to a valid interval string: XmlConvert.ToString(new + # TimeSpan(hours, minutes, secconds)) + # @param filter [String] The filter to apply on the operation. + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ReportCollection] which provide lazy access to pages of the + # response. + # + def list_by_time_as_lazy(resource_group_name, service_name, interval, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_time_async(resource_group_name, service_name, interval, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_time_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb new file mode 100644 index 0000000000..0f5db139c4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_in_settings.rb @@ -0,0 +1,404 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class SignInSettings + include MsRestAzure + + # + # Creates and initializes a new instance of the SignInSettings class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the entity state (Etag) version of the SignInSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the SignInSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the SignInSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PortalSigninSettings] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Get Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSigninSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Update Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSigninSettings] Update Sign-In settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + nil + end + + # + # Update Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSigninSettings] Update Sign-In settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + end + + # + # Update Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSigninSettings] Update Sign-In settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSigninSettings.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Create or Update Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSigninSettings] Create or update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PortalSigninSettings] operation results. + # + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or Update Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSigninSettings] Create or update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Create or Update Sign-In settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSigninSettings] Create or update parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSigninSettings.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSigninSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb new file mode 100644 index 0000000000..62368124eb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/sign_up_settings.rb @@ -0,0 +1,404 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class SignUpSettings + include MsRestAzure + + # + # Creates and initializes a new instance of the SignUpSettings class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the entity state (Etag) version of the SignUpSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the SignUpSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the SignUpSettings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PortalSignupSettings] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Get Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSignupSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Update Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSignupSettings] Update Sign-Up settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + nil + end + + # + # Update Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSignupSettings] Update Sign-Up settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + end + + # + # Update Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSignupSettings] Update Sign-Up settings. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSignupSettings.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Create or Update Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSignupSettings] Create or update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [PortalSignupSettings] operation results. + # + def create_or_update(resource_group_name, service_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Create or Update Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSignupSettings] Create or update parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # Create or Update Sign-Up settings. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [PortalSignupSettings] Create or update parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSignupSettings.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::PortalSignupSettings.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb new file mode 100644 index 0000000000..5da9eeb3f6 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb @@ -0,0 +1,1025 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Subscription + include MsRestAzure + + # + # Creates and initializes a new instance of the Subscription class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all subscriptions of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all subscriptions of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists all subscriptions of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the apimanagement subscription + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, sid, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, sid, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the apimanagement subscription + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, sid, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the apimanagement subscription + # specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, sid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the specified Subscription entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionContract] operation results. + # + def get(resource_group_name, service_name, sid, custom_headers = nil) + response = get_async(resource_group_name, service_name, sid, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the specified Subscription entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + get_async(resource_group_name, service_name, sid, custom_headers).value! + end + + # + # Gets the specified Subscription entity. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, sid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates the subscription of specified user to the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param parameters [SubscriptionCreateParameters] Create parameters. + # @param notify [Boolean] Notify change in Subscription State. + # - If false, do not send any email notification for change of state of + # subscription + # - If true, send email notification of change of state of subscription + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionContract] operation results. + # + def create_or_update(resource_group_name, service_name, sid, parameters, notify = nil, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, sid, parameters, notify, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates the subscription of specified user to the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param parameters [SubscriptionCreateParameters] Create parameters. + # @param notify [Boolean] Notify change in Subscription State. + # - If false, do not send any email notification for change of state of + # subscription + # - If true, send email notification of change of state of subscription + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, sid, parameters, notify = nil, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, sid, parameters, notify, if_match, custom_headers).value! + end + + # + # Creates or updates the subscription of specified user to the specified + # product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param parameters [SubscriptionCreateParameters] Create parameters. + # @param notify [Boolean] Notify change in Subscription State. + # - If false, do not send any email notification for change of state of + # subscription + # - If true, send email notification of change of state of subscription + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, sid, parameters, notify = nil, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCreateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'notify' => notify,'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of a subscription specificied by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param parameters [SubscriptionUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param notify [Boolean] Notify change in Subscription State. + # - If false, do not send any email notification for change of state of + # subscription + # - If true, send email notification of change of state of subscription + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, sid, parameters, if_match, notify = nil, custom_headers = nil) + response = update_async(resource_group_name, service_name, sid, parameters, if_match, notify, custom_headers).value! + nil + end + + # + # Updates the details of a subscription specificied by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param parameters [SubscriptionUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param notify [Boolean] Notify change in Subscription State. + # - If false, do not send any email notification for change of state of + # subscription + # - If true, send email notification of change of state of subscription + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, notify = nil, custom_headers = nil) + update_async(resource_group_name, service_name, sid, parameters, if_match, notify, custom_headers).value! + end + + # + # Updates the details of a subscription specificied by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param parameters [SubscriptionUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param notify [Boolean] Notify change in Subscription State. + # - If false, do not send any email notification for change of state of + # subscription + # - If true, send email notification of change of state of subscription + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, sid, parameters, if_match, notify = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'notify' => notify,'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes the specified subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, sid, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, sid, if_match, custom_headers).value! + nil + end + + # + # Deletes the specified subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, sid, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, sid, if_match, custom_headers).value! + end + + # + # Deletes the specified subscription. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, sid, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Regenerates primary key of existing subscription of the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers).value! + nil + end + + # + # Regenerates primary key of existing subscription of the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def regenerate_primary_key_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers).value! + end + + # + # Regenerates primary key of existing subscription of the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Regenerates secondary key of existing subscription of the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def regenerate_secondary_key(resource_group_name, service_name, sid, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers).value! + nil + end + + # + # Regenerates secondary key of existing subscription of the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, sid, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers).value! + end + + # + # Regenerates secondary key of existing subscription of the API Management + # service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param sid [String] Subscription entity Identifier. The entity represents the + # association between a user and a product in API Management. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def regenerate_secondary_key_async(resource_group_name, service_name, sid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'sid is nil' if sid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'sid' => sid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all subscriptions of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all subscriptions of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all subscriptions of the API Management service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all subscriptions of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionCollection] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb new file mode 100644 index 0000000000..7a9ba744c2 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb @@ -0,0 +1,2878 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class Tag + include MsRestAzure + + # + # Creates and initializes a new instance of the Tag class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of tags defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of tags defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of tags defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_state(resource_group_name, service_name, tag_id, custom_headers = nil) + response = get_entity_state_async(resource_group_name, service_name, tag_id, custom_headers).value! + nil + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_state_with_http_info(resource_group_name, service_name, tag_id, custom_headers = nil) + get_entity_state_async(resource_group_name, service_name, tag_id, custom_headers).value! + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_state_async(resource_group_name, service_name, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def get(resource_group_name, service_name, tag_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, tag_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, tag_id, custom_headers = nil) + get_async(resource_group_name, service_name, tag_id, custom_headers).value! + end + + # + # Gets the details of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates a tag. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagCreateUpdateParameters] Create parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def create_or_update(resource_group_name, service_name, tag_id, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, tag_id, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a tag. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagCreateUpdateParameters] Create parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, tag_id, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, tag_id, parameters, custom_headers).value! + end + + # + # Creates a tag. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagCreateUpdateParameters] Create parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, tag_id, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCreateUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagCreateUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagCreateUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagCreateUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, tag_id, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCreateUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific tag of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, tag_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, tag_id, if_match, custom_headers).value! + nil + end + + # + # Deletes specific tag of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, tag_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, tag_id, if_match, custom_headers).value! + end + + # + # Deletes specific tag of the API Management service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, tag_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all Tags associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_api(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all Tags associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all Tags associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_state_by_api(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + response = get_entity_state_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + nil + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_state_by_api_with_http_info(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + get_entity_state_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_state_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get tag associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def get_by_api(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + response = get_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get tag associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_by_api_with_http_info(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + get_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + end + + # + # Get tag associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_by_api_async(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Assign tag to the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def assign_to_api(resource_group_name, service_name, api_id, tag_id, if_match = nil, custom_headers = nil) + response = assign_to_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Assign tag to the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def assign_to_api_with_http_info(resource_group_name, service_name, api_id, tag_id, if_match = nil, custom_headers = nil) + assign_to_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers).value! + end + + # + # Assign tag to the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def assign_to_api_async(resource_group_name, service_name, api_id, tag_id, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Detach the tag from the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def detach_from_api(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers = nil) + response = detach_from_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers).value! + nil + end + + # + # Detach the tag from the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def detach_from_api_with_http_info(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers = nil) + detach_from_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers).value! + end + + # + # Detach the tag from the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def detach_from_api_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all Tags associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_operation(resource_group_name, service_name, api_id, operation_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_operation_as_lazy(resource_group_name, service_name, api_id, operation_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all Tags associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_operation_async(resource_group_name, service_name, api_id, operation_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all Tags associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_operation_async(resource_group_name, service_name, api_id, operation_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_state_by_operation(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers = nil) + response = get_entity_state_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers).value! + nil + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_state_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers = nil) + get_entity_state_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers).value! + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_state_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get tag associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def get_by_operation(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers = nil) + response = get_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get tag associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_by_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers = nil) + get_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers).value! + end + + # + # Get tag associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_by_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Assign tag to the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def assign_to_operation(resource_group_name, service_name, api_id, operation_id, tag_id, if_match = nil, custom_headers = nil) + response = assign_to_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Assign tag to the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def assign_to_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, if_match = nil, custom_headers = nil) + assign_to_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers).value! + end + + # + # Assign tag to the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def assign_to_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Detach the tag from the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def detach_from_operation(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers = nil) + response = detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers).value! + nil + end + + # + # Detach the tag from the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def detach_from_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers = nil) + detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers).value! + end + + # + # Detach the tag from the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'operationId' => operation_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all Tags associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_product(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_product_as_lazy(resource_group_name, service_name, product_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all Tags associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all Tags associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_async(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_state_by_product(resource_group_name, service_name, product_id, tag_id, custom_headers = nil) + response = get_entity_state_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers).value! + nil + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_state_by_product_with_http_info(resource_group_name, service_name, product_id, tag_id, custom_headers = nil) + get_entity_state_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers).value! + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_state_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get tag associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def get_by_product(resource_group_name, service_name, product_id, tag_id, custom_headers = nil) + response = get_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get tag associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_by_product_with_http_info(resource_group_name, service_name, product_id, tag_id, custom_headers = nil) + get_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers).value! + end + + # + # Get tag associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_by_product_async(resource_group_name, service_name, product_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Assign tag to the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagContract] operation results. + # + def assign_to_product(resource_group_name, service_name, product_id, tag_id, if_match = nil, custom_headers = nil) + response = assign_to_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Assign tag to the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def assign_to_product_with_http_info(resource_group_name, service_name, product_id, tag_id, if_match = nil, custom_headers = nil) + assign_to_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers).value! + end + + # + # Assign tag to the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def assign_to_product_async(resource_group_name, service_name, product_id, tag_id, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Detach the tag from the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def detach_from_product(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers = nil) + response = detach_from_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers).value! + nil + end + + # + # Detach the tag from the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def detach_from_product_with_http_info(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers = nil) + detach_from_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers).value! + end + + # + # Detach the tag from the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def detach_from_product_async(resource_group_name, service_name, product_id, tag_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'product_id is nil' if product_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'productId' => product_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists a collection of tags defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of tags defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of tags defined within a service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all Tags associated with the API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] operation results. + # + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all Tags associated with the API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all Tags associated with the API. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all Tags associated with the Operation. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] operation results. + # + def list_by_operation_next(next_page_link, custom_headers = nil) + response = list_by_operation_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all Tags associated with the Operation. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_operation_next_with_http_info(next_page_link, custom_headers = nil) + list_by_operation_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all Tags associated with the Operation. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_operation_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all Tags associated with the Product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] operation results. + # + def list_by_product_next(next_page_link, custom_headers = nil) + response = list_by_product_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all Tags associated with the Product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_product_next_with_http_info(next_page_link, custom_headers = nil) + list_by_product_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all Tags associated with the Product. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_product_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of tags defined within a service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] which provide lazy access to pages of the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists all Tags associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] which provide lazy access to pages of the response. + # + def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_api_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists all Tags associated with the Operation. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param operation_id [String] Operation identifier within an API. Must be + # unique in the current API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] which provide lazy access to pages of the response. + # + def list_by_operation_as_lazy(resource_group_name, service_name, api_id, operation_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_operation_async(resource_group_name, service_name, api_id, operation_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_operation_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Lists all Tags associated with the Product. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param product_id [String] Product identifier. Must be unique in the current + # API Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagCollection] which provide lazy access to pages of the response. + # + def list_by_product_as_lazy(resource_group_name, service_name, product_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_product_async(resource_group_name, service_name, product_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_product_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb new file mode 100644 index 0000000000..1bb72e0029 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_description.rb @@ -0,0 +1,739 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class TagDescription + include MsRestAzure + + # + # Creates and initializes a new instance of the TagDescription class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_api(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_api_as_lazy(resource_group_name, service_name, api_id, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_with_http_info(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + end + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_async(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagDescriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_state(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + response = get_entity_state_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + nil + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_state_with_http_info(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + get_entity_state_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + end + + # + # Gets the entity state version of the tag specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_state_async(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Get tag associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagDescriptionContract] operation results. + # + def get(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + response = get_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Get tag associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + get_async(resource_group_name, service_name, api_id, tag_id, custom_headers).value! + end + + # + # Get tag associated with the API. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, api_id, tag_id, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagDescriptionContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Create/Update tag fescription in scope of the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagDescriptionCreateParameters] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagDescriptionContract] operation results. + # + def create_or_update(resource_group_name, service_name, api_id, tag_id, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, api_id, tag_id, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Create/Update tag fescription in scope of the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagDescriptionCreateParameters] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, api_id, tag_id, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, api_id, tag_id, parameters, if_match, custom_headers).value! + end + + # + # Create/Update tag fescription in scope of the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param parameters [TagDescriptionCreateParameters] Create parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, api_id, tag_id, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagDescriptionCreateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagDescriptionContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagDescriptionContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Delete tag description for the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers = nil) + response = delete_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers).value! + nil + end + + # + # Delete tag description for the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers = nil) + delete_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers).value! + end + + # + # Delete tag description for the Api. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param tag_id [String] Tag identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, api_id, tag_id, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'api_id is nil' if api_id.nil? + fail ArgumentError, 'tag_id is nil' if tag_id.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'apiId' => api_id,'tagId' => tag_id,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagDescriptionCollection] operation results. + # + def list_by_api_next(next_page_link, custom_headers = nil) + response = list_by_api_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_api_next_with_http_info(next_page_link, custom_headers = nil) + list_by_api_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_api_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagDescriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all Tags descriptions in scope of API. Model similar to swagger - + # tagDescription is defined on API level but tag may be assigned to the + # Operations + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param api_id [String] API revision identifier. Must be unique in the current + # API Management service instance. Non-current revision has ;rev=n as a suffix + # where n is the revision number. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagDescriptionCollection] which provide lazy access to pages of the + # response. + # + def list_by_api_as_lazy(resource_group_name, service_name, api_id, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_api_async(resource_group_name, service_name, api_id, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_api_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb new file mode 100644 index 0000000000..4ca92e500b --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag_resource.rb @@ -0,0 +1,349 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class TagResource + include MsRestAzure + + # + # Creates and initializes a new instance of the TagResource class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of resources associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of resources associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of resources associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of resources associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagResourceCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of resources associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of resources associated with tags. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TagResourceCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of resources associated with tags. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | aid | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | terms | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | isCurrent | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TagResourceCollection] which provide lazy access to pages of the + # response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb new file mode 100644 index 0000000000..457bc23cc4 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access.rb @@ -0,0 +1,387 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class TenantAccess + include MsRestAzure + + # + # Creates and initializes a new instance of the TenantAccess class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Get tenant access information details. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AccessInformationContract] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Get tenant access information details. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Get tenant access information details. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + access_name = 'access' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'accessName' => access_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AccessInformationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Update tenant access information details. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [AccessInformationUpdateParameters] Parameters supplied to + # retrieve the Tenant Access Information. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + nil + end + + # + # Update tenant access information details. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [AccessInformationUpdateParameters] Parameters supplied to + # retrieve the Tenant Access Information. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, parameters, if_match, custom_headers).value! + end + + # + # Update tenant access information details. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [AccessInformationUpdateParameters] Parameters supplied to + # retrieve the Tenant Access Information. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + access_name = 'access' + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AccessInformationUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'accessName' => access_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Regenerate primary access key. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def regenerate_primary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Regenerate primary access key. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Regenerate primary access key. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def regenerate_primary_key_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + access_name = 'access' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'accessName' => access_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Regenerate secondary access key. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def regenerate_secondary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Regenerate secondary access key. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Regenerate secondary access key. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + access_name = 'access' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'accessName' => access_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb new file mode 100644 index 0000000000..8d4e30884c --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_access_git.rb @@ -0,0 +1,279 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class TenantAccessGit + include MsRestAzure + + # + # Creates and initializes a new instance of the TenantAccessGit class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Gets the Git access configuration for the tenant. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [AccessInformationContract] operation results. + # + def get(resource_group_name, service_name, custom_headers = nil) + response = get_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the Git access configuration for the tenant. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the Git access configuration for the tenant. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + access_name = 'access' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'accessName' => access_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::AccessInformationContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Regenerate primary access key for GIT. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def regenerate_primary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Regenerate primary access key for GIT. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def regenerate_primary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_primary_key_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Regenerate primary access key for GIT. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def regenerate_primary_key_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + access_name = 'access' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'accessName' => access_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Regenerate secondary access key for GIT. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def regenerate_secondary_key(resource_group_name, service_name, custom_headers = nil) + response = regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! + nil + end + + # + # Regenerate secondary access key for GIT. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def regenerate_secondary_key_with_http_info(resource_group_name, service_name, custom_headers = nil) + regenerate_secondary_key_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Regenerate secondary access key for GIT. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def regenerate_secondary_key_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + access_name = 'access' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'accessName' => access_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb new file mode 100644 index 0000000000..92fbedf980 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tenant_configuration.rb @@ -0,0 +1,597 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class TenantConfiguration + include MsRestAzure + + # + # Creates and initializes a new instance of the TenantConfiguration class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # This operation applies changes from the specified Git branch to the + # configuration database. This is a long running operation and could take + # several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Deploy Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResultContract] operation results. + # + def deploy(resource_group_name, service_name, parameters, custom_headers = nil) + response = deploy_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Deploy Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def deploy_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationResultContract.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # This operation creates a commit with the current configuration snapshot to + # the specified branch in the repository. This is a long running operation and + # could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [SaveConfigurationParameter] Save Configuration parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResultContract] operation results. + # + def save(resource_group_name, service_name, parameters, custom_headers = nil) + response = save_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [SaveConfigurationParameter] Save Configuration parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def save_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_save_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationResultContract.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # This operation validates the changes in the specified Git branch. This is a + # long running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Validate Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResultContract] operation results. + # + def validate(resource_group_name, service_name, parameters, custom_headers = nil) + response = validate_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Validate Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def validate_async(resource_group_name, service_name, parameters, custom_headers = nil) + # Send request + promise = begin_validate_async(resource_group_name, service_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationResultContract.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets the status of the most recent synchronization between the configuration + # database and the Git repository. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [TenantConfigurationSyncStateContract] operation results. + # + def get_sync_state(resource_group_name, service_name, custom_headers = nil) + response = get_sync_state_async(resource_group_name, service_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the status of the most recent synchronization between the configuration + # database and the Git repository. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_sync_state_with_http_info(resource_group_name, service_name, custom_headers = nil) + get_sync_state_async(resource_group_name, service_name, custom_headers).value! + end + + # + # Gets the status of the most recent synchronization between the configuration + # database and the Git repository. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_sync_state_async(resource_group_name, service_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + configuration_name = 'configuration' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'configurationName' => configuration_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::TenantConfigurationSyncStateContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # This operation applies changes from the specified Git branch to the + # configuration database. This is a long running operation and could take + # several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Deploy Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResultContract] operation results. + # + def begin_deploy(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_deploy_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # This operation applies changes from the specified Git branch to the + # configuration database. This is a long running operation and could take + # several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Deploy Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_deploy_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_deploy_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # This operation applies changes from the specified Git branch to the + # configuration database. This is a long running operation and could take + # several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Deploy Configuration + # parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_deploy_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + configuration_name = 'configuration' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DeployConfigurationParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'configurationName' => configuration_name}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationResultContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # This operation creates a commit with the current configuration snapshot to + # the specified branch in the repository. This is a long running operation and + # could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [SaveConfigurationParameter] Save Configuration parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResultContract] operation results. + # + def begin_save(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_save_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # This operation creates a commit with the current configuration snapshot to + # the specified branch in the repository. This is a long running operation and + # could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [SaveConfigurationParameter] Save Configuration parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_save_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_save_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # This operation creates a commit with the current configuration snapshot to + # the specified branch in the repository. This is a long running operation and + # could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [SaveConfigurationParameter] Save Configuration parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_save_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + configuration_name = 'configuration' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SaveConfigurationParameter.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'configurationName' => configuration_name}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationResultContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # This operation validates the changes in the specified Git branch. This is a + # long running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Validate Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationResultContract] operation results. + # + def begin_validate(resource_group_name, service_name, parameters, custom_headers = nil) + response = begin_validate_async(resource_group_name, service_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # This operation validates the changes in the specified Git branch. This is a + # long running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Validate Configuration + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_validate_with_http_info(resource_group_name, service_name, parameters, custom_headers = nil) + begin_validate_async(resource_group_name, service_name, parameters, custom_headers).value! + end + + # + # This operation validates the changes in the specified Git branch. This is a + # long running operation and could take several minutes to complete. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param parameters [DeployConfigurationParameters] Validate Configuration + # parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_validate_async(resource_group_name, service_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + configuration_name = 'configuration' + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::DeployConfigurationParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id,'configurationName' => configuration_name}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::OperationResultContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb new file mode 100644 index 0000000000..d1805c5590 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user.rb @@ -0,0 +1,1049 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class User + include MsRestAzure + + # + # Creates and initializes a new instance of the User class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists a collection of registered users in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_by_service(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_by_service_as_lazy(resource_group_name, service_name, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists a collection of registered users in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_with_http_info(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + end + + # + # Lists a collection of registered users in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_async(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the entity state (Etag) version of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def get_entity_tag(resource_group_name, service_name, uid, custom_headers = nil) + response = get_entity_tag_async(resource_group_name, service_name, uid, custom_headers).value! + nil + end + + # + # Gets the entity state (Etag) version of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_entity_tag_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + get_entity_tag_async(resource_group_name, service_name, uid, custom_headers).value! + end + + # + # Gets the entity state (Etag) version of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_entity_tag_async(resource_group_name, service_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:head, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Gets the details of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserContract] operation results. + # + def get(resource_group_name, service_name, uid, custom_headers = nil) + response = get_async(resource_group_name, service_name, uid, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the details of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + get_async(resource_group_name, service_name, uid, custom_headers).value! + end + + # + # Gets the details of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, service_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or Updates a user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserCreateParameters] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserContract] operation results. + # + def create_or_update(resource_group_name, service_name, uid, parameters, if_match = nil, custom_headers = nil) + response = create_or_update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or Updates a user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserCreateParameters] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def create_or_update_with_http_info(resource_group_name, service_name, uid, parameters, if_match = nil, custom_headers = nil) + create_or_update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! + end + + # + # Creates or Updates a user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserCreateParameters] Create or update parameters. + # @param if_match [String] ETag of the Entity. Not required when creating an + # entity, but required when updating an entity. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_or_update_async(resource_group_name, service_name, uid, parameters, if_match = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserCreateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserContract.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates the details of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def update(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + response = update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! + nil + end + + # + # Updates the details of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers).value! + end + + # + # Updates the details of the user specified by its identifier. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserUpdateParameters] Update parameters. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, service_name, uid, parameters, if_match, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Deletes specific user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_subscriptions [Boolean] Whether to delete user's subscription + # or not. + # @param notify [Boolean] Send an Account Closed Email notification to the + # User. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def delete(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, notify = nil, custom_headers = nil) + response = delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions, notify, custom_headers).value! + nil + end + + # + # Deletes specific user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_subscriptions [Boolean] Whether to delete user's subscription + # or not. + # @param notify [Boolean] Send an Account Closed Email notification to the + # User. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def delete_with_http_info(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, notify = nil, custom_headers = nil) + delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions, notify, custom_headers).value! + end + + # + # Deletes specific user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param if_match [String] ETag of the Entity. ETag should match the current + # entity state from the header response of the GET request or it should be * + # for unconditional update. + # @param delete_subscriptions [Boolean] Whether to delete user's subscription + # or not. + # @param notify [Boolean] Send an Account Closed Email notification to the + # User. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def delete_async(resource_group_name, service_name, uid, if_match, delete_subscriptions = nil, notify = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, 'if_match is nil' if if_match.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['If-Match'] = if_match unless if_match.nil? + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'deleteSubscriptions' => delete_subscriptions,'notify' => notify,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 204 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Retrieves a redirection URL containing an authentication token for signing a + # given user into the developer portal. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GenerateSsoUrlResult] operation results. + # + def generate_sso_url(resource_group_name, service_name, uid, custom_headers = nil) + response = generate_sso_url_async(resource_group_name, service_name, uid, custom_headers).value! + response.body unless response.nil? + end + + # + # Retrieves a redirection URL containing an authentication token for signing a + # given user into the developer portal. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def generate_sso_url_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + generate_sso_url_async(resource_group_name, service_name, uid, custom_headers).value! + end + + # + # Retrieves a redirection URL containing an authentication token for signing a + # given user into the developer portal. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def generate_sso_url_async(resource_group_name, service_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/generateSsoUrl' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GenerateSsoUrlResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets the Shared Access Authorization Token for the User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserTokenParameters] Create Authorization Token + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserTokenResult] operation results. + # + def get_shared_access_token(resource_group_name, service_name, uid, parameters, custom_headers = nil) + response = get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets the Shared Access Authorization Token for the User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserTokenParameters] Create Authorization Token + # parameters. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_shared_access_token_with_http_info(resource_group_name, service_name, uid, parameters, custom_headers = nil) + get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers).value! + end + + # + # Gets the Shared Access Authorization Token for the User. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param parameters [UserTokenParameters] Create Authorization Token + # parameters. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_shared_access_token_async(resource_group_name, service_name, uid, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserTokenParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/token' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserTokenResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of registered users in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserCollection] operation results. + # + def list_by_service_next(next_page_link, custom_headers = nil) + response = list_by_service_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists a collection of registered users in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_service_next_with_http_info(next_page_link, custom_headers = nil) + list_by_service_next_async(next_page_link, custom_headers).value! + end + + # + # Lists a collection of registered users in the specified service instance. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_service_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists a collection of registered users in the specified service instance. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param filter [String] | Field | Supported operators | + # Supported functions | + # |------------------|------------------------|-----------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | firstName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | lastName | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | email | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # | state | eq | N/A + # | + # | registrationDate | ge, le, eq, ne, gt, lt | N/A + # | + # | note | ge, le, eq, ne, gt, lt | substringof, contains, + # startswith, endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserCollection] which provide lazy access to pages of the response. + # + def list_by_service_as_lazy(resource_group_name, service_name, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_by_service_async(resource_group_name, service_name, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_by_service_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb new file mode 100644 index 0000000000..1d0eebc173 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_group.rb @@ -0,0 +1,277 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class UserGroup + include MsRestAzure + + # + # Creates and initializes a new instance of the UserGroup class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all user groups. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, uid, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists all user groups. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! + end + + # + # Lists all user groups. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/groups' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all user groups. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all user groups. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all user groups. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::GroupCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all user groups. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |-------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [GroupCollection] which provide lazy access to pages of the response. + # + def list_as_lazy(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb new file mode 100644 index 0000000000..b413cdf3cb --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_identities.rb @@ -0,0 +1,234 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class UserIdentities + include MsRestAzure + + # + # Creates and initializes a new instance of the UserIdentities class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists all user identities. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, uid, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, uid, custom_headers) + first_page.get_all_items + end + + # + # Lists all user identities. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, uid, custom_headers = nil) + list_async(resource_group_name, service_name, uid, custom_headers).value! + end + + # + # Lists all user identities. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, uid, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/identities' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserIdentityCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all user identities. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserIdentityCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists all user identities. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists all user identities. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::UserIdentityCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists all user identities. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [UserIdentityCollection] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, service_name, uid, custom_headers = nil) + response = list_async(resource_group_name, service_name, uid, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb new file mode 100644 index 0000000000..9c4f4ddb48 --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/user_subscription.rb @@ -0,0 +1,302 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + # + # ApiManagement Client + # + class UserSubscription + include MsRestAzure + + # + # Creates and initializes a new instance of the UserSubscription class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [ApiManagementClient] reference to the ApiManagementClient + attr_reader :client + + # + # Lists the collection of subscriptions of the specified user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, service_name, uid, filter, top, skip, custom_headers) + first_page.get_all_items + end + + # + # Lists the collection of subscriptions of the specified user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + list_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! + end + + # + # Lists the collection of subscriptions of the specified user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'service_name is nil' if service_name.nil? + fail ArgumentError, 'uid is nil' if uid.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/subscriptions' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'serviceName' => service_name,'uid' => uid,'subscriptionId' => @client.subscription_id}, + query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists the collection of subscriptions of the specified user. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionCollection] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Lists the collection of subscriptions of the specified user. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Lists the collection of subscriptions of the specified user. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ApiManagement::Mgmt::V2018_01_01_preview::Models::SubscriptionCollection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Lists the collection of subscriptions of the specified user. + # + # @param resource_group_name [String] The name of the resource group. + # @param service_name [String] The name of the API Management service. + # @param uid [String] User identifier. Must be unique in the current API + # Management service instance. + # @param filter [String] | Field | Supported operators | Supported + # functions | + # |--------------|------------------------|---------------------------------------------| + # | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | userId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | productId | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + # endswith | + # | state | eq | + # | + # @param top [Integer] Number of records to return. + # @param skip [Integer] Number of records to skip. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [SubscriptionCollection] which provide lazy access to pages of the + # response. + # + def list_as_lazy(resource_group_name, service_name, uid, filter = nil, top = nil, skip = nil, custom_headers = nil) + response = list_async(resource_group_name, service_name, uid, filter, top, skip, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/version.rb b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/version.rb new file mode 100644 index 0000000000..f87ec32dbe --- /dev/null +++ b/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ApiManagement::Mgmt::V2018_01_01_preview + VERSION = '0.17.0' +end diff --git a/management/azure_mgmt_api_management/lib/azure_mgmt_api_management.rb b/management/azure_mgmt_api_management/lib/azure_mgmt_api_management.rb index 49a1dc87d2..665e83ebc8 100644 --- a/management/azure_mgmt_api_management/lib/azure_mgmt_api_management.rb +++ b/management/azure_mgmt_api_management/lib/azure_mgmt_api_management.rb @@ -2,9 +2,10 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -require '2018-06-01-preview/generated/azure_mgmt_api_management' -require '2018-01-01-preview/generated/azure_mgmt_api_management' -require '2016-10-10/generated/azure_mgmt_api_management' require '2016-07-07/generated/azure_mgmt_api_management' require '2017-03-01/generated/azure_mgmt_api_management' +require '2018-06-01-preview/generated/azure_mgmt_api_management' +require '2018-01-01/generated/azure_mgmt_api_management' +require '2016-10-10/generated/azure_mgmt_api_management' +require '2018-01-01-preview/generated/azure_mgmt_api_management' require 'profiles/latest/apimanagement_latest_profile_client' diff --git a/management/azure_mgmt_api_management/lib/profiles/latest/modules/apimanagement_profile_module.rb b/management/azure_mgmt_api_management/lib/profiles/latest/modules/apimanagement_profile_module.rb index d79d0a95e7..d78e939e1a 100644 --- a/management/azure_mgmt_api_management/lib/profiles/latest/modules/apimanagement_profile_module.rb +++ b/management/azure_mgmt_api_management/lib/profiles/latest/modules/apimanagement_profile_module.rb @@ -6,6 +6,7 @@ module Azure::ApiManagement::Profiles::Latest module Mgmt + Group = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Group Policy = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Policy PolicySnippets = Azure::ApiManagement::Mgmt::V2018_06_01_preview::PolicySnippets Regions = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Regions @@ -28,7 +29,6 @@ module Mgmt ApiManagementService = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiManagementService Diagnostic = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Diagnostic EmailTemplate = Azure::ApiManagement::Mgmt::V2018_06_01_preview::EmailTemplate - Group = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Group GroupUser = Azure::ApiManagement::Mgmt::V2018_06_01_preview::GroupUser IdentityProvider = Azure::ApiManagement::Mgmt::V2018_06_01_preview::IdentityProvider Logger = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Logger @@ -51,10 +51,10 @@ module Mgmt Reports = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Reports Subscription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Subscription TagResource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TagResource - Tag = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Tag TagDescription = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TagDescription OperationOperations = Azure::ApiManagement::Mgmt::V2018_06_01_preview::OperationOperations TenantAccess = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantAccess + Tag = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Tag TenantAccessGit = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantAccessGit TenantConfiguration = Azure::ApiManagement::Mgmt::V2018_06_01_preview::TenantConfiguration User = Azure::ApiManagement::Mgmt::V2018_06_01_preview::User @@ -65,6 +65,86 @@ module Mgmt ApiExport = Azure::ApiManagement::Mgmt::V2018_06_01_preview::ApiExport module Models + TagResourceContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract + RegistrationDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties + BackendBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters + QuotaCounterValueContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties + ParameterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract + ProductUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters + AuthorizationServerContractBaseProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties + PropertyEntityBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters + SamplingSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings + SubscriptionCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection + PropertyUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters + PolicyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract + ApiContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties + ApiContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract + ApiReleaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract + OperationContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract + SchemaContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract + IssueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract + IssueCommentContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract + IssueAttachmentContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentContract + DiagnosticContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract + ProductTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductTagResourceContractProperties + ApiTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiTagResourceContractProperties + ProductContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductContract + AuthorizationServerContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContract + AuthorizationServerUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerUpdateContract + BackendContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendContract + BackendReconnectContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendReconnectContract + CertificateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateContract + ApiManagementServiceResource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceResource + ApiManagementServiceUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateParameters + EmailTemplateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateContract + GroupContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContract + UserContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserContract + IdentityProviderContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderContract + LoggerContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract + NotificationContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationContract + RecipientUserContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserContract + RecipientEmailContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract + OpenidConnectProviderContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract + PortalSigninSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings + PortalSignupSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings + PortalDelegationSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings + SubscriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract + PropertyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract + TagContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract + TagDescriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract + ApiVersionSetContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContract + PolicyContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat + Protocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol + ContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat + SoapApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType + ApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType + SamplingType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType + AlwaysLog = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog + ProductState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState + GrantType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType + AuthorizationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod + ClientAuthenticationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod + BearerTokenSendingMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod + BackendProtocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol + HostnameType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType + SkuType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + VirtualNetworkType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType + NameAvailabilityReason = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason + GroupType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType + Confirmation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation + UserState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserState + IdentityProviderType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType + LoggerType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType + ConnectivityStatusType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType + SubscriptionState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + AsyncOperationStatus = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus + KeyType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType + VersioningScheme = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme + TemplateName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName + NotificationName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationName + PolicyScopeContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyScopeContract + ExportFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat + State = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State ApiManagementServiceListResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult ErrorFieldContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ErrorFieldContract ApiManagementServiceGetSsoTokenResult = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceGetSsoTokenResult @@ -197,93 +277,13 @@ module Models QuotaCounterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterContract IssueCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCollection SubscriptionsDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionsDelegationSettingsProperties - TagResourceContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract - RegistrationDelegationSettingsProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties - BackendBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters - QuotaCounterValueContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties - ParameterContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract - ProductUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters - AuthorizationServerContractBaseProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties - PropertyEntityBaseParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters - SamplingSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings - SubscriptionCollection = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection - PropertyUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters - PolicyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract - ApiContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties - ApiContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract - ApiReleaseContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract - OperationContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract - SchemaContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract - IssueContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract - IssueCommentContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract - IssueAttachmentContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentContract - DiagnosticContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract - ProductTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductTagResourceContractProperties - ApiTagResourceContractProperties = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiTagResourceContractProperties - ProductContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductContract - AuthorizationServerContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContract - AuthorizationServerUpdateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerUpdateContract - BackendContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendContract - BackendReconnectContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendReconnectContract - CertificateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateContract - ApiManagementServiceResource = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceResource - ApiManagementServiceUpdateParameters = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateParameters - EmailTemplateContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateContract - GroupContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContract - UserContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserContract - IdentityProviderContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderContract - LoggerContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract - NotificationContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationContract - RecipientUserContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserContract - RecipientEmailContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract - OpenidConnectProviderContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract - PortalSigninSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings - PortalSignupSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings - PortalDelegationSettings = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings - SubscriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract - PropertyContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract - TagContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract - TagDescriptionContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract - ApiVersionSetContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContract - PolicyContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat - Protocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol - ContentFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat - SoapApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType - ApiType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType - State = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State - SamplingType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType - AlwaysLog = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog - ProductState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState - GrantType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType - AuthorizationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod - ClientAuthenticationMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod - BearerTokenSendingMethod = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod - BackendProtocol = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol - HostnameType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType - SkuType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType - VirtualNetworkType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType - NameAvailabilityReason = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason - GroupType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType - Confirmation = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation - UserState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserState - IdentityProviderType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType - LoggerType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType - ConnectivityStatusType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType - SubscriptionState = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState - AsyncOperationStatus = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus - KeyType = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType - VersioningScheme = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme - TemplateName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName - NotificationName = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationName - PolicyScopeContract = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyScopeContract - ExportFormat = Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat end # # ApiManagementManagementClass # class ApiManagementManagementClass - attr_reader :policy, :policy_snippets, :regions, :api, :api_revisions, :api_release, :api_operation, :api_operation_policy, :api_product, :api_policy, :api_schema, :api_diagnostic, :api_issue, :api_issue_comment, :api_issue_attachment, :authorization_server, :backend, :certificate, :api_management_operations, :api_management_service, :diagnostic, :email_template, :group, :group_user, :identity_provider, :logger, :notification, :notification_recipient_user, :notification_recipient_email, :network_status, :open_id_connect_provider, :sign_in_settings, :sign_up_settings, :delegation_settings, :product, :product_api, :product_group, :product_subscriptions, :product_policy, :property, :quota_by_counter_keys, :quota_by_period_keys, :reports, :subscription, :tag_resource, :tag, :tag_description, :operation_operations, :tenant_access, :tenant_access_git, :tenant_configuration, :user, :user_group, :user_subscription, :user_identities, :api_version_set, :api_export, :configurable, :base_url, :options, :model_classes + attr_reader :group, :policy, :policy_snippets, :regions, :api, :api_revisions, :api_release, :api_operation, :api_operation_policy, :api_product, :api_policy, :api_schema, :api_diagnostic, :api_issue, :api_issue_comment, :api_issue_attachment, :authorization_server, :backend, :certificate, :api_management_operations, :api_management_service, :diagnostic, :email_template, :group_user, :identity_provider, :logger, :notification, :notification_recipient_user, :notification_recipient_email, :network_status, :open_id_connect_provider, :sign_in_settings, :sign_up_settings, :delegation_settings, :product, :product_api, :product_group, :product_subscriptions, :product_policy, :property, :quota_by_counter_keys, :quota_by_period_keys, :reports, :subscription, :tag_resource, :tag_description, :operation_operations, :tenant_access, :tag, :tenant_access_git, :tenant_configuration, :user, :user_group, :user_subscription, :user_identities, :api_version_set, :api_export, :configurable, :base_url, :options, :model_classes def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @@ -303,6 +303,7 @@ def initialize(options = {}) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) + @group = @client_0.group @policy = @client_0.policy @policy_snippets = @client_0.policy_snippets @regions = @client_0.regions @@ -325,7 +326,6 @@ def initialize(options = {}) @api_management_service = @client_0.api_management_service @diagnostic = @client_0.diagnostic @email_template = @client_0.email_template - @group = @client_0.group @group_user = @client_0.group_user @identity_provider = @client_0.identity_provider @logger = @client_0.logger @@ -348,10 +348,10 @@ def initialize(options = {}) @reports = @client_0.reports @subscription = @client_0.subscription @tag_resource = @client_0.tag_resource - @tag = @client_0.tag @tag_description = @client_0.tag_description @operation_operations = @client_0.operation_operations @tenant_access = @client_0.tenant_access + @tag = @client_0.tag @tenant_access_git = @client_0.tenant_access_git @tenant_configuration = @client_0.tenant_configuration @user = @client_0.user @@ -368,18 +368,258 @@ def add_telemetry(client) profile_information = 'Profiles/Latest/ApiManagement/Mgmt' client.add_user_agent_information(profile_information) end - - def method_missing(method, *args) - if @client_0.respond_to?method - @client_0.send(method, *args) - else - super - end + + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + + end + + class ModelClasses + def tag_resource_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract + end + def registration_delegation_settings_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties + end + def backend_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters + end + def quota_counter_value_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties + end + def parameter_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract + end + def product_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters + end + def authorization_server_contract_base_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties + end + def property_entity_base_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters + end + def sampling_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings + end + def subscription_collection + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection + end + def property_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters + end + def policy_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract + end + def api_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties + end + def api_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract + end + def api_release_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract + end + def operation_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract + end + def schema_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract + end + def issue_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract + end + def issue_comment_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract + end + def issue_attachment_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentContract + end + def diagnostic_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract + end + def product_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductTagResourceContractProperties + end + def api_tag_resource_contract_properties + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiTagResourceContractProperties + end + def product_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductContract + end + def authorization_server_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContract + end + def authorization_server_update_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerUpdateContract + end + def backend_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendContract + end + def backend_reconnect_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendReconnectContract + end + def certificate_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateContract + end + def api_management_service_resource + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceResource + end + def api_management_service_update_parameters + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateParameters + end + def email_template_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateContract + end + def group_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContract + end + def user_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserContract + end + def identity_provider_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderContract + end + def logger_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract + end + def notification_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationContract + end + def recipient_user_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserContract + end + def recipient_email_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract + end + def openid_connect_provider_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract + end + def portal_signin_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings + end + def portal_signup_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings + end + def portal_delegation_settings + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings + end + def subscription_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract + end + def property_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract + end + def tag_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract + end + def tag_description_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract + end + def api_version_set_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContract + end + def policy_content_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat + end + def protocol + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol + end + def content_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat + end + def soap_api_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType + end + def api_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType + end + def sampling_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType + end + def always_log + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog + end + def product_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState + end + def grant_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType + end + def authorization_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod + end + def client_authentication_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod + end + def bearer_token_sending_method + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod + end + def backend_protocol + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol + end + def hostname_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType + end + def sku_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType + end + def virtual_network_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType + end + def name_availability_reason + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason + end + def group_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType + end + def confirmation + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation + end + def user_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserState + end + def identity_provider_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType + end + def logger_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType + end + def connectivity_status_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType + end + def subscription_state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState + end + def async_operation_status + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus + end + def key_type + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType + end + def versioning_scheme + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme + end + def template_name + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName + end + def notification_name + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationName + end + def policy_scope_contract + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyScopeContract + end + def export_format + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat + end + def state + Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State end - - end - - class ModelClasses def api_management_service_list_result Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceListResult end @@ -776,246 +1016,6 @@ def issue_collection def subscriptions_delegation_settings_properties Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionsDelegationSettingsProperties end - def tag_resource_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagResourceContract - end - def registration_delegation_settings_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RegistrationDelegationSettingsProperties - end - def backend_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendBaseParameters - end - def quota_counter_value_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::QuotaCounterValueContractProperties - end - def parameter_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ParameterContract - end - def product_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductUpdateParameters - end - def authorization_server_contract_base_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContractBaseProperties - end - def property_entity_base_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyEntityBaseParameters - end - def sampling_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingSettings - end - def subscription_collection - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionCollection - end - def property_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyUpdateParameters - end - def policy_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContract - end - def api_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContractProperties - end - def api_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiContract - end - def api_release_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiReleaseContract - end - def operation_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OperationContract - end - def schema_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SchemaContract - end - def issue_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueContract - end - def issue_comment_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueCommentContract - end - def issue_attachment_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IssueAttachmentContract - end - def diagnostic_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::DiagnosticContract - end - def product_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductTagResourceContractProperties - end - def api_tag_resource_contract_properties - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiTagResourceContractProperties - end - def product_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductContract - end - def authorization_server_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerContract - end - def authorization_server_update_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationServerUpdateContract - end - def backend_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendContract - end - def backend_reconnect_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendReconnectContract - end - def certificate_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::CertificateContract - end - def api_management_service_resource - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceResource - end - def api_management_service_update_parameters - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiManagementServiceUpdateParameters - end - def email_template_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::EmailTemplateContract - end - def group_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupContract - end - def user_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserContract - end - def identity_provider_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderContract - end - def logger_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerContract - end - def notification_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationContract - end - def recipient_user_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientUserContract - end - def recipient_email_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::RecipientEmailContract - end - def openid_connect_provider_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::OpenidConnectProviderContract - end - def portal_signin_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSigninSettings - end - def portal_signup_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalSignupSettings - end - def portal_delegation_settings - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PortalDelegationSettings - end - def subscription_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionContract - end - def property_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PropertyContract - end - def tag_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagContract - end - def tag_description_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TagDescriptionContract - end - def api_version_set_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiVersionSetContract - end - def policy_content_format - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyContentFormat - end - def protocol - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Protocol - end - def content_format - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ContentFormat - end - def soap_api_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SoapApiType - end - def api_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiType - end - def state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::State - end - def sampling_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SamplingType - end - def always_log - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AlwaysLog - end - def product_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ProductState - end - def grant_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GrantType - end - def authorization_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AuthorizationMethod - end - def client_authentication_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ClientAuthenticationMethod - end - def bearer_token_sending_method - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BearerTokenSendingMethod - end - def backend_protocol - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::BackendProtocol - end - def hostname_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::HostnameType - end - def sku_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SkuType - end - def virtual_network_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VirtualNetworkType - end - def name_availability_reason - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NameAvailabilityReason - end - def group_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::GroupType - end - def confirmation - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::Confirmation - end - def user_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::UserState - end - def identity_provider_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::IdentityProviderType - end - def logger_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::LoggerType - end - def connectivity_status_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ConnectivityStatusType - end - def subscription_state - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::SubscriptionState - end - def async_operation_status - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::AsyncOperationStatus - end - def key_type - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::KeyType - end - def versioning_scheme - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::VersioningScheme - end - def template_name - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::TemplateName - end - def notification_name - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::NotificationName - end - def policy_scope_contract - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::PolicyScopeContract - end - def export_format - Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ExportFormat - end end end end